plugins

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterQOSExtPlugin

func RegisterQOSExtPlugin(feature featuregate.Feature, featureSpec featuregate.FeatureSpec,
	plugin ExtensionPlugin) error

func SetupPlugins

func SetupPlugins(client clientset.Interface, metricCache metriccache.MetricCache, statesInformer statesinformer.StatesInformer)

func StartPlugins

func StartPlugins(cfg *QOSExtensionConfig, stopCh <-chan struct{}) error

Types

type ExtensionPlugin

type ExtensionPlugin interface {
	InitFlags(fs *flag.FlagSet)
	Setup(client clientset.Interface, metricCache metriccache.MetricCache, statesInformer statesinformer.StatesInformer)
	Run(stopCh <-chan struct{})
}

type QOSExtensionConfig

type QOSExtensionConfig struct {
	FeatureGates map[string]bool
}

func (*QOSExtensionConfig) InitFlags

func (c *QOSExtensionConfig) InitFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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