package fake
import "k8s.io/kubernetes/pkg/scheduler/internal/cache/fake"
Index ¶
- type Cache
- func (c *Cache) AddCSINode(csiNode *storagev1beta1.CSINode) error
- func (c *Cache) AddNode(node *v1.Node) error
- func (c *Cache) AddPod(pod *v1.Pod) error
- func (c *Cache) AssumePod(pod *v1.Pod) error
- func (c *Cache) FilteredList(filter algorithm.PodFilter, selector labels.Selector) ([]*v1.Pod, error)
- func (c *Cache) FinishBinding(pod *v1.Pod) error
- func (c *Cache) ForgetPod(pod *v1.Pod) error
- func (c *Cache) GetCSINodeInfo(nodeName string) (*storagev1beta1.CSINode, error)
- func (c *Cache) GetNodeInfo(nodeName string) (*v1.Node, error)
- func (c *Cache) GetPod(pod *v1.Pod) (*v1.Pod, error)
- func (c *Cache) IsAssumedPod(pod *v1.Pod) (bool, error)
- func (c *Cache) List(s labels.Selector) ([]*v1.Pod, error)
- func (c *Cache) ListNodes() []*v1.Node
- func (c *Cache) NodeTree() *internalcache.NodeTree
- func (c *Cache) RemoveCSINode(csiNode *storagev1beta1.CSINode) error
- func (c *Cache) RemoveNode(node *v1.Node) error
- func (c *Cache) RemovePod(pod *v1.Pod) error
- func (c *Cache) Snapshot() *internalcache.Snapshot
- func (c *Cache) UpdateCSINode(oldCSINode, newCSINode *storagev1beta1.CSINode) error
- func (c *Cache) UpdateNode(oldNode, newNode *v1.Node) error
- func (c *Cache) UpdateNodeInfoSnapshot(nodeSnapshot *schedulernodeinfo.Snapshot) error
- func (c *Cache) UpdatePod(oldPod, newPod *v1.Pod) error
Types ¶
type Cache ¶
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 ¶
func (c *Cache) AddCSINode(csiNode *storagev1beta1.CSINode) error
AddCSINode is a fake method for testing.
func (*Cache) AddNode ¶
AddNode is a fake method for testing.
func (*Cache) AddPod ¶
AddPod is a fake method for testing.
func (*Cache) AssumePod ¶
AssumePod is a fake method for testing.
func (*Cache) FilteredList ¶
func (c *Cache) FilteredList(filter algorithm.PodFilter, selector labels.Selector) ([]*v1.Pod, error)
FilteredList is a fake method for testing.
func (*Cache) FinishBinding ¶
FinishBinding is a fake method for testing.
func (*Cache) ForgetPod ¶
ForgetPod is a fake method for testing.
func (*Cache) GetCSINodeInfo ¶
func (c *Cache) GetCSINodeInfo(nodeName string) (*storagev1beta1.CSINode, error)
GetCSINodeInfo is a fake method for testing.
func (*Cache) GetNodeInfo ¶
GetNodeInfo is a fake method for testing.
func (*Cache) GetPod ¶
GetPod is a fake method for testing.
func (*Cache) IsAssumedPod ¶
IsAssumedPod is a fake method for testing.
func (*Cache) List ¶
List is a fake method for testing.
func (*Cache) ListNodes ¶
ListNodes is a fake method for testing.
func (*Cache) NodeTree ¶
func (c *Cache) NodeTree() *internalcache.NodeTree
NodeTree is a fake method for testing.
func (*Cache) RemoveCSINode ¶
func (c *Cache) RemoveCSINode(csiNode *storagev1beta1.CSINode) error
RemoveCSINode is a fake method for testing.
func (*Cache) RemoveNode ¶
RemoveNode is a fake method for testing.
func (*Cache) RemovePod ¶
RemovePod is a fake method for testing.
func (*Cache) Snapshot ¶
func (c *Cache) Snapshot() *internalcache.Snapshot
Snapshot is a fake method for testing
func (*Cache) UpdateCSINode ¶
func (c *Cache) UpdateCSINode(oldCSINode, newCSINode *storagev1beta1.CSINode) error
UpdateCSINode is a fake method for testing.
func (*Cache) UpdateNode ¶
UpdateNode is a fake method for testing.
func (*Cache) UpdateNodeInfoSnapshot ¶
func (c *Cache) UpdateNodeInfoSnapshot(nodeSnapshot *schedulernodeinfo.Snapshot) error
UpdateNodeInfoSnapshot is a fake method for testing.
func (*Cache) UpdatePod ¶
UpdatePod is a fake method for testing.
Source Files ¶
fake_cache.go
- Version
- v1.16.6
- Published
- Jan 17, 2020
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.