Documentation ¶
Index ¶
- func NewOrderedPluginRegistry() framework.PluginList
- func NewOrderedUnitPluginRegistry() framework.PluginOrder
- func NewPluginsRegistry(registry Registry, pluginArgs map[string]*schedulerconfig.PluginConfig, ...) (framework.PluginMap, error)
- func NewUnitPluginsRegistry(registry UnitRegistry, pluginArgs map[string]*schedulerconfig.PluginConfig, ...) framework.PluginMap
- type PluginFactory
- type Registry
- type UnitPluginFactory
- type UnitRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrderedPluginRegistry ¶
func NewOrderedPluginRegistry() framework.PluginList
NewOrderedPluginRegistry builds the registry with all the filter plugins. If a filter plugin is not in the registry, it will be ignored. So a new plugin having Filter method need be added to the registry.
func NewOrderedUnitPluginRegistry ¶
func NewOrderedUnitPluginRegistry() framework.PluginOrder
NewOrderedPluginRegistry builds the registry with all the filter plugins. If a filter plugin is not in the registry, it will be ignored. So a new plugin having Filter method need be added to the registry.
func NewPluginsRegistry ¶
func NewPluginsRegistry(registry Registry, pluginArgs map[string]*schedulerconfig.PluginConfig, fh handle.PodFrameworkHandle) (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
func NewUnitPluginsRegistry ¶
func NewUnitPluginsRegistry( registry UnitRegistry, pluginArgs map[string]*schedulerconfig.PluginConfig, handler handle.UnitFrameworkHandle, ) framework.PluginMap
Types ¶
type PluginFactory ¶
type PluginFactory = func(configuration runtime.Object, handle handle.PodFrameworkHandle) (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
type UnitPluginFactory ¶
type UnitPluginFactory = func(configuration runtime.Object, handle handle.UnitFrameworkHandle) (framework.Plugin, error)
UnitPluginFactory is a function that builds a plugin.
type UnitRegistry ¶
type UnitRegistry map[string]UnitPluginFactory
UnitRegistry 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 NewUnitInTreeRegistry ¶
func NewUnitInTreeRegistry() UnitRegistry