Documentation
¶
Overview ¶
generated by go-extpoints -- DO NOT EDIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginProviders = &pluginProviderExt{ newExtensionPoint(new(PluginProvider)), }
Functions ¶
func NewPluginManager ¶
func NewPluginManager(pluginsToLoad []string, options PluginOptions) (plugins.Plugin, error)
NewPluginManager loads the list of plugins it is given and returns a single Plugin implementation that wraps all of the plugins.
func RegisterExtension ¶
func UnregisterExtension ¶
Types ¶
type PluginOptions ¶
type PluginOptions struct {
// contains filtered or unexported fields
}
PluginOptions is a wrapper for the arguments/options given when instantiating a Plugin using PluginProvider.
We wrap all arguments so that we can add additional properties without breaking source compatibility with older plugins.
type PluginProvider ¶
type PluginProvider func(options PluginOptions) (plugins.Plugin, error)
The PluginProvider interface must be implemented and registered by anyone implementing a Plugin.
If an implementor can determine that a plugin isn't available at compile-time it is preferred not to register the plugin.
Click to show internal directories.
Click to hide internal directories.