Documentation ¶
Index ¶
- type FakeCache
- func (f *FakeCache) AddNode(node *api.Node) error
- func (f *FakeCache) AddPod(pod *api.Pod) error
- func (f *FakeCache) AssumePod(pod *api.Pod) error
- func (f *FakeCache) ForgetPod(pod *api.Pod) error
- func (f *FakeCache) List(s labels.Selector) ([]*api.Pod, error)
- func (f *FakeCache) RemoveNode(node *api.Node) error
- func (f *FakeCache) RemovePod(pod *api.Pod) error
- func (f *FakeCache) UpdateNode(oldNode, newNode *api.Node) error
- func (f *FakeCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error
- func (f *FakeCache) UpdatePod(oldPod, newPod *api.Pod) error
- type PodsToCache
- func (p PodsToCache) AddNode(node *api.Node) error
- func (p PodsToCache) AddPod(pod *api.Pod) error
- func (p PodsToCache) AssumePod(pod *api.Pod) error
- func (p PodsToCache) ForgetPod(pod *api.Pod) error
- func (p PodsToCache) List(s labels.Selector) (selected []*api.Pod, err error)
- func (p PodsToCache) RemoveNode(node *api.Node) error
- func (p PodsToCache) RemovePod(pod *api.Pod) error
- func (p PodsToCache) UpdateNode(oldNode, newNode *api.Node) error
- func (p PodsToCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error
- func (p PodsToCache) UpdatePod(oldPod, newPod *api.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCache ¶
FakeCache is used for testing
func (*FakeCache) UpdateNodeNameToInfoMap ¶ added in v1.4.1
func (f *FakeCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error
type PodsToCache ¶
PodsToCache is used for testing
func (PodsToCache) RemoveNode ¶
func (p PodsToCache) RemoveNode(node *api.Node) error
func (PodsToCache) UpdateNode ¶
func (p PodsToCache) UpdateNode(oldNode, newNode *api.Node) error
func (PodsToCache) UpdateNodeNameToInfoMap ¶ added in v1.4.1
func (p PodsToCache) UpdateNodeNameToInfoMap(infoMap map[string]*schedulercache.NodeInfo) error
Click to show internal directories.
Click to hide internal directories.