Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespacePlacementPlugin ¶
type NamespacePlacementPlugin struct {
// contains filtered or unexported fields
}
func (*NamespacePlacementPlugin) ComputePlacement ¶
func (p *NamespacePlacementPlugin) ComputePlacement(key string, clusterNames []string) (selectedClusters, unselectedClusters []string, err error)
func (*NamespacePlacementPlugin) HasSynced ¶
func (p *NamespacePlacementPlugin) HasSynced() bool
func (*NamespacePlacementPlugin) Run ¶
func (p *NamespacePlacementPlugin) Run(stopCh <-chan struct{})
type PlacementPlugin ¶
type PlacementPlugin interface { Run(stopCh <-chan struct{}) HasSynced() bool ComputePlacement(key string, clusterNames []string) (selectedClusters, unselectedClusters []string, err error) }
func NewNamespacePlacementPlugin ¶
func NewNamespacePlacementPlugin(client util.ResourceClient, triggerFunc func(pkgruntime.Object)) PlacementPlugin
func NewResourcePlacementPlugin ¶
func NewResourcePlacementPlugin(client util.ResourceClient, triggerFunc func(pkgruntime.Object)) PlacementPlugin
type ResourcePlacementPlugin ¶
type ResourcePlacementPlugin struct {
// contains filtered or unexported fields
}
func (*ResourcePlacementPlugin) ComputePlacement ¶
func (p *ResourcePlacementPlugin) ComputePlacement(key string, clusterNames []string) (selectedClusters, unselectedClusters []string, err error)
func (*ResourcePlacementPlugin) HasSynced ¶
func (p *ResourcePlacementPlugin) HasSynced() bool
func (*ResourcePlacementPlugin) Run ¶
func (p *ResourcePlacementPlugin) Run(stopCh <-chan struct{})
Click to show internal directories.
Click to hide internal directories.