schedulercache

package
v0.0.0-...-53c5426 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 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(*api.Pod)
}

FakeCache is used for testing

func (*FakeCache) AddPod

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

func (*FakeCache) AssumePodIfBindSucceed

func (f *FakeCache) AssumePodIfBindSucceed(pod *api.Pod, bind func() bool) error

func (*FakeCache) GetNodeNameToInfoMap

func (f *FakeCache) GetNodeNameToInfoMap() (map[string]*schedulercache.NodeInfo, error)

func (*FakeCache) List

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

func (*FakeCache) RemovePod

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

func (*FakeCache) UpdatePod

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

type PodsToCache

type PodsToCache []*api.Pod

PodsToCache is used for testing

func (PodsToCache) AddPod

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

func (PodsToCache) AssumePodIfBindSucceed

func (p PodsToCache) AssumePodIfBindSucceed(pod *api.Pod, bind func() bool) error

func (PodsToCache) GetNodeNameToInfoMap

func (p PodsToCache) GetNodeNameToInfoMap() (map[string]*schedulercache.NodeInfo, error)

func (PodsToCache) List

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

func (PodsToCache) RemovePod

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

func (PodsToCache) UpdatePod

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

Jump to

Keyboard shortcuts

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