placement

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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(qualifiedName util.QualifiedName, 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(qualifiedName util.QualifiedName, clusterNames []string) (selectedClusters, unselectedClusters []string, err error)
}

func NewNamespacePlacementPlugin

func NewNamespacePlacementPlugin(client util.ResourceClient, targetNamespace string, triggerFunc func(pkgruntime.Object)) PlacementPlugin

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)) PlacementPlugin

type ResourcePlacementPlugin

type ResourcePlacementPlugin struct {
	// contains filtered or unexported fields
}

func (*ResourcePlacementPlugin) ComputePlacement

func (p *ResourcePlacementPlugin) ComputePlacement(qualifiedName util.QualifiedName, 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{})

Jump to

Keyboard shortcuts

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