Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlacementPlugin ¶
type PlacementPlugin interface { Run(stopCh <-chan struct{}) HasSynced() bool ComputePlacement(qualifiedName util.QualifiedName, clusters []*fedv1a1.FederatedCluster) (selectedClusters, unselectedClusters []string, err error) }
func NewNamespacedPlacementPlugin ¶ added in v0.0.2
func NewNamespacedPlacementPlugin(resourceClient, namespaceClient util.ResourceClient, targetNamespace string, triggerFunc func(pkgruntime.Object)) PlacementPlugin
func NewResourcePlacementPlugin ¶
func NewResourcePlacementPlugin(client util.ResourceClient, targetNamespace string, triggerFunc func(pkgruntime.Object), defaultAll bool) PlacementPlugin
type ResourcePlacementPlugin ¶
type ResourcePlacementPlugin struct {
// contains filtered or unexported fields
}
func (*ResourcePlacementPlugin) ComputePlacement ¶
func (p *ResourcePlacementPlugin) ComputePlacement(qualifiedName util.QualifiedName, clusters []*fedv1a1.FederatedCluster) (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.