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 ¶
func Dir ¶
func Dir() string
Dir returns the directory to use for plugin discovery, which may be customized by the environment.
func IsErrNotUnixSocket ¶ added in v0.3.0
IsErrNotUnixSocket returns true if the error is due to the file not being a valid unix socket.
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.