placement

package
v0.0.1-test-fake Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: Apache-2.0 Imports: 6 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(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{})

Jump to

Keyboard shortcuts

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