Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PluginDirEnvVar is the environment variable that may be used to customize the plugin discovery path.
PluginDirEnvVar = "INFRAKIT_PLUGINS_DIR"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugins ¶
type Plugins interface { // Find looks up the plugin by name. The name can be of the form $lookup[/$subtype]. See GetLookupAndType(). Find(name plugin.Name) (*plugin.Endpoint, error) List() (map[string]*plugin.Endpoint, error) }
Plugins provides access to plugin discovery.
func NewPluginDiscovery ¶
NewPluginDiscovery creates a plugin discovery based on the environment configuration.
func NewPluginDiscoveryWithDirectory ¶
NewPluginDiscoveryWithDirectory creates a plugin discovery based on the directory given.
Click to show internal directories.
Click to hide internal directories.