Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( name string, builderFunc PluginBuilder, pluginType interface{}, exampleArg runtime.Object, pluginArgValidator PluginArgValidator, pluginArgDefaulter PluginArgDefaulter, registry Registry, )
Types ¶
type PluginArgDefaulter ¶
type PluginArgValidator ¶
type PluginBuilder ¶
type PluginBuilder = func(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
type PluginUtilities ¶
type PluginUtilities struct { PluginBuilder PluginBuilder PluginType interface{} // Just an example instance of this PluginArg so we can avoid having // to deal with reflect Types PluginArgInstance runtime.Object PluginArgValidator PluginArgValidator PluginArgDefaulter PluginArgDefaulter }
type Registry ¶
type Registry map[string]PluginUtilities
var PluginRegistry Registry
func NewRegistry ¶
func NewRegistry() Registry
Click to show internal directories.
Click to hide internal directories.