schedulercache

package
v1.6.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCache

type FakeCache struct {
	AssumeFunc func(*v1.Pod)
}

FakeCache is used for testing

func (*FakeCache) AddNode

func (f *FakeCache) AddNode(node *v1.Node) error

func (*FakeCache) AddPod

func (f *FakeCache) AddPod(pod *v1.Pod) error

func (*FakeCache) AssumePod

func (f *FakeCache) AssumePod(pod *v1.Pod) error

func (*FakeCache) FinishBinding added in v1.6.0

func (f *FakeCache) FinishBinding(pod *v1.Pod) error

func (*FakeCache) ForgetPod added in v1.4.0

func (f *FakeCache) ForgetPod(pod *v1.Pod) error

func (*FakeCache) List

func (f *FakeCache) List(s labels.Selector) ([]*v1.Pod, error)

func (*FakeCache) RemoveNode

func (f *FakeCache) RemoveNode(node *v1.Node) error

func (*FakeCache) RemovePod

func (f *FakeCache) RemovePod(pod *v1.Pod) error

func (*FakeCache) UpdateNode

func (f *FakeCache) UpdateNode(oldNode, newNode *v1.Node) error

func (*FakeCache) UpdateNodeNameToInfoMap added in v1.4.0

func (f *FakeCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error

func (*FakeCache) UpdatePod

func (f *FakeCache) UpdatePod(oldPod, newPod *v1.Pod) error

type PodsToCache

type PodsToCache []*v1.Pod

PodsToCache is used for testing

func (PodsToCache) AddNode

func (p PodsToCache) AddNode(node *v1.Node) error

func (PodsToCache) AddPod

func (p PodsToCache) AddPod(pod *v1.Pod) error

func (PodsToCache) AssumePod

func (p PodsToCache) AssumePod(pod *v1.Pod) error

func (PodsToCache) ForgetPod added in v1.4.0

func (p PodsToCache) ForgetPod(pod *v1.Pod) error

func (PodsToCache) List

func (p PodsToCache) List(s labels.Selector) (selected []*v1.Pod, err error)

func (PodsToCache) RemoveNode

func (p PodsToCache) RemoveNode(node *v1.Node) error

func (PodsToCache) RemovePod

func (p PodsToCache) RemovePod(pod *v1.Pod) error

func (PodsToCache) UpdateNode

func (p PodsToCache) UpdateNode(oldNode, newNode *v1.Node) error

func (PodsToCache) UpdateNodeNameToInfoMap added in v1.4.0

func (p PodsToCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error

func (PodsToCache) UpdatePod

func (p PodsToCache) UpdatePod(oldPod, newPod *v1.Pod) error

Jump to

Keyboard shortcuts

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