Documentation
¶
Index ¶
- func PluginFactoryProxy(extendHandle ExtendedHandle, factoryFn frameworkruntime.PluginFactory) frameworkruntime.PluginFactory
- type ExtendedHandle
- type Option
- func WithKoordinatorClientSet(koordinatorClientSet koordinatorclientset.Interface) Option
- func WithKoordinatorSharedInformerFactory(informerFactory koordinatorinformers.SharedInformerFactory) Option
- func WithNodeResourceTopologySharedInformerFactory(informerFactory nrtinformers.SharedInformerFactory) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginFactoryProxy ¶
func PluginFactoryProxy(extendHandle ExtendedHandle, factoryFn frameworkruntime.PluginFactory) frameworkruntime.PluginFactory
PluginFactoryProxy is used to proxy the call to the PluginFactory function and pass in the ExtendedHandle for the custom plugin
Types ¶
type ExtendedHandle ¶
type ExtendedHandle interface { framework.Handle KoordinatorClientSet() koordinatorclientset.Interface }
ExtendedHandle extends the k8s scheduling framework Handle interface to facilitate plugins to access Koordinator's resources and states.
func NewExtendedHandle ¶
func NewExtendedHandle(options ...Option) ExtendedHandle
type Option ¶ added in v0.5.0
type Option func(*extendedHandleOptions)
func WithKoordinatorClientSet ¶ added in v0.5.0
func WithKoordinatorClientSet(koordinatorClientSet koordinatorclientset.Interface) Option
func WithKoordinatorSharedInformerFactory ¶ added in v0.5.0
func WithKoordinatorSharedInformerFactory(informerFactory koordinatorinformers.SharedInformerFactory) Option
func WithNodeResourceTopologySharedInformerFactory ¶ added in v0.5.0
func WithNodeResourceTopologySharedInformerFactory(informerFactory nrtinformers.SharedInformerFactory) Option
Click to show internal directories.
Click to hide internal directories.