Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginDependency ¶
type PluginDependency struct {
RestConfig *rest.Config
RestMapper meta.RESTMapper
KubeFactory informers.SharedInformerFactory
KarmadaFactory externalversions.SharedInformerFactory
MinRequestTimeout time.Duration
Store store.Store
}
PluginDependency holds dependency for plugins. It will be passed to PluginFactory when initializing Plugin.
type PluginFactory ¶
type PluginFactory func(dep PluginDependency) (framework.Plugin, error)
PluginFactory is the function to create a plugin.
type Registry ¶
type Registry []PluginFactory
Registry is a collection of all available plugins. The framework uses a registry to enable and initialize configured plugins. All plugins must be in the registry before initializing the framework.
func (*Registry) Register ¶
func (r *Registry) Register(factory PluginFactory)
Register adds a new plugin to the registry.
Click to show internal directories.
Click to hide internal directories.