framework

package
v0.0.0-...-6111fc0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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