Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPluginsRegistry ¶
func NewPluginsRegistry(registry Registry, pluginArgs map[string]*config.PluginConfig, fh handle.BinderFrameworkHandle) (framework.PluginMap, error)
NewPluginsRegistry returns a registry instance having all plugins, where profile shows which plugins to use in default, registry indicates how to initialize each plugin
Types ¶
type PluginFactory ¶
type PluginFactory = func(configuration runtime.Object, pfh handle.BinderFrameworkHandle) (framework.Plugin, error)
PluginFactory is a function that builds a plugin.
type Registry ¶
type Registry map[string]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 NewInTreePreemptionRegistry ¶
func NewInTreePreemptionRegistry() Registry
func NewInTreeRegistry ¶
func NewInTreeRegistry() Registry
NewInTreeRegistry builds the registry with all the in-tree plugins. A scheduler that runs out of tree plugins can register additional plugins through the WithFrameworkOutOfTreeRegistry option. For Godel Scheduler all in tree plugins are enabled