cache

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirectoryCache = &pluginDirCache{
	directories: map[string]PluginDir{},
}

Functions

func Exec

func Exec(execpath string, config json.RawMessage, r io.Reader, w io.Writer, args ...string) ([]byte, error)

Types

type ConstraintRegistry

type ConstraintRegistry[T any, K registry.Key[K]] struct {
	// contains filtered or unexported fields
}

func NewConstraintRegistry

func NewConstraintRegistry[T internal.Element[K], K registry.Key[K]](list []T) *ConstraintRegistry[T, K]

func (*ConstraintRegistry[T, K]) Lookup

func (r *ConstraintRegistry[T, K]) Lookup(key K) []*T

func (*ConstraintRegistry[T, K]) LookupFor

func (r *ConstraintRegistry[T, K]) LookupFor(name string, key K) []*T

type Plugin

type Plugin = *pluginImpl

func NewPlugin

func NewPlugin(name string, path string, desc *internal.Descriptor, errmsg string) Plugin

type PluginDir

type PluginDir = *pluginDirImpl

func Get

func Get(path string) PluginDir

func NewDir

func NewDir(path string) PluginDir

type PluginDirCache

type PluginDirCache = *pluginDirCache

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL