Documentation ¶
Index ¶
- func NewNodeFilterPlugins(config map[string]PluginConfig) []framework.NodeFilterPlugin
- func NewNodeScorePlugins(config map[string]PluginConfig) []framework.NodeScorePlugin
- func NewVMIDPlugins(config map[string]PluginConfig) []framework.VMIDPlugin
- type PluginConfig
- type PluginConfigs
- type PluginRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeFilterPlugins ¶
func NewNodeFilterPlugins(config map[string]PluginConfig) []framework.NodeFilterPlugin
func NewNodeScorePlugins ¶
func NewNodeScorePlugins(config map[string]PluginConfig) []framework.NodeScorePlugin
func NewVMIDPlugins ¶
func NewVMIDPlugins(config map[string]PluginConfig) []framework.VMIDPlugin
Types ¶
type PluginConfig ¶
type PluginConfigs ¶
type PluginConfigs struct { FilterPlugins map[string]PluginConfig `yaml:"filters,omitempty"` ScorePlugins map[string]PluginConfig `yaml:"scores,omitempty"` VMIDPlugins map[string]PluginConfig `yaml:"vmids,omitempty"` }
func GetPluginConfigFromFile ¶
func GetPluginConfigFromFile(path string) (PluginConfigs, error)
Read config file and unmarshal it to PluginConfig type
type PluginRegistry ¶
type PluginRegistry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(configs PluginConfigs) PluginRegistry
func (*PluginRegistry) FilterPlugins ¶
func (r *PluginRegistry) FilterPlugins() []framework.NodeFilterPlugin
func (*PluginRegistry) ScorePlugins ¶
func (r *PluginRegistry) ScorePlugins() []framework.NodeScorePlugin
func (*PluginRegistry) VMIDPlugins ¶
func (r *PluginRegistry) VMIDPlugins() []framework.VMIDPlugin
Click to show internal directories.
Click to hide internal directories.