framework

package
v0.0.0-...-dcfb068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

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 framework.SchedulerFrameworkHandle) (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 framework.SchedulerUnitFrameworkHandle,
) framework.PluginMap

Types

type PluginFactory

type PluginFactory = func(configuration runtime.Object, handle framework.SchedulerFrameworkHandle) (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 framework.SchedulerUnitFrameworkHandle) (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL