placement

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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)
	GetPlacement(key string) (*unstructured.Unstructured, error)
}

func NewNamespacedPlacementPlugin added in v0.0.2

func NewNamespacedPlacementPlugin(resourceClient, namespaceClient util.ResourceClient, targetNamespace string, resourceTriggerFunc, namespaceTriggerFunc func(pkgruntime.Object)) PlacementPlugin

func NewResourcePlacementPlugin

func NewResourcePlacementPlugin(client util.ResourceClient, targetNamespace string, triggerFunc func(pkgruntime.Object)) 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) GetPlacement added in v0.0.5

func (*ResourcePlacementPlugin) HasSynced

func (p *ResourcePlacementPlugin) HasSynced() bool

func (*ResourcePlacementPlugin) Run

func (p *ResourcePlacementPlugin) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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