kubernetes: k8s.io/kubernetes/pkg/scheduler/internal/cache/fake Index | Files

package fake

import "k8s.io/kubernetes/pkg/scheduler/internal/cache/fake"

Index

Package Files

fake_cache.go

type Cache Uses

type Cache struct {
    AssumeFunc       func(*v1.Pod)
    ForgetFunc       func(*v1.Pod)
    IsAssumedPodFunc func(*v1.Pod) bool
    GetPodFunc       func(*v1.Pod) *v1.Pod
}

Cache is used for testing

func (*Cache) AddCSINode Uses

func (c *Cache) AddCSINode(csiNode *storagev1beta1.CSINode) error

AddCSINode is a fake method for testing.

func (*Cache) AddNode Uses

func (c *Cache) AddNode(node *v1.Node) error

AddNode is a fake method for testing.

func (*Cache) AddPod Uses

func (c *Cache) AddPod(pod *v1.Pod) error

AddPod is a fake method for testing.

func (*Cache) AssumePod Uses

func (c *Cache) AssumePod(pod *v1.Pod) error

AssumePod is a fake method for testing.

func (*Cache) FilteredList Uses

func (c *Cache) FilteredList(filter algorithm.PodFilter, selector labels.Selector) ([]*v1.Pod, error)

FilteredList is a fake method for testing.

func (*Cache) FinishBinding Uses

func (c *Cache) FinishBinding(pod *v1.Pod) error

FinishBinding is a fake method for testing.

func (*Cache) ForgetPod Uses

func (c *Cache) ForgetPod(pod *v1.Pod) error

ForgetPod is a fake method for testing.

func (*Cache) GetNodeInfo Uses

func (c *Cache) GetNodeInfo(nodeName string) (*v1.Node, error)

GetNodeInfo is a fake method for testing.

func (*Cache) GetPod Uses

func (c *Cache) GetPod(pod *v1.Pod) (*v1.Pod, error)

GetPod is a fake method for testing.

func (*Cache) IsAssumedPod Uses

func (c *Cache) IsAssumedPod(pod *v1.Pod) (bool, error)

IsAssumedPod is a fake method for testing.

func (*Cache) List Uses

func (c *Cache) List(s labels.Selector) ([]*v1.Pod, error)

List is a fake method for testing.

func (*Cache) NodeTree Uses

func (c *Cache) NodeTree() *internalcache.NodeTree

NodeTree is a fake method for testing.

func (*Cache) RemoveCSINode Uses

func (c *Cache) RemoveCSINode(csiNode *storagev1beta1.CSINode) error

RemoveCSINode is a fake method for testing.

func (*Cache) RemoveNode Uses

func (c *Cache) RemoveNode(node *v1.Node) error

RemoveNode is a fake method for testing.

func (*Cache) RemovePod Uses

func (c *Cache) RemovePod(pod *v1.Pod) error

RemovePod is a fake method for testing.

func (*Cache) Snapshot Uses

func (c *Cache) Snapshot() *internalcache.Snapshot

Snapshot is a fake method for testing

func (*Cache) UpdateCSINode Uses

func (c *Cache) UpdateCSINode(oldCSINode, newCSINode *storagev1beta1.CSINode) error

UpdateCSINode is a fake method for testing.

func (*Cache) UpdateNode Uses

func (c *Cache) UpdateNode(oldNode, newNode *v1.Node) error

UpdateNode is a fake method for testing.

func (*Cache) UpdateNodeInfoSnapshot Uses

func (c *Cache) UpdateNodeInfoSnapshot(nodeSnapshot *internalcache.NodeInfoSnapshot) error

UpdateNodeInfoSnapshot is a fake method for testing.

func (*Cache) UpdatePod Uses

func (c *Cache) UpdatePod(oldPod, newPod *v1.Pod) error

UpdatePod is a fake method for testing.

Package fake imports 5 packages (graph). Updated 2019-07-11. Refresh now. Tools for package owners.