package fake
import "k8s.io/kubernetes/pkg/scheduler/backend/cache/fake"
Index ¶
- type Cache
- func (c *Cache) AddNode(logger klog.Logger, node *v1.Node) *framework.NodeInfo
- func (c *Cache) AddPod(logger klog.Logger, pod *v1.Pod) error
- func (c *Cache) AssumePod(logger klog.Logger, pod *v1.Pod) error
- func (c *Cache) Dump() *internalcache.Dump
- func (c *Cache) FinishBinding(logger klog.Logger, pod *v1.Pod) error
- func (c *Cache) ForgetPod(logger klog.Logger, pod *v1.Pod) error
- func (c *Cache) GetPod(pod *v1.Pod) (*v1.Pod, error)
- func (c *Cache) IsAssumedPod(pod *v1.Pod) (bool, error)
- func (c *Cache) NodeCount() int
- func (c *Cache) PodCount() (int, error)
- func (c *Cache) RemoveNode(logger klog.Logger, node *v1.Node) error
- func (c *Cache) RemovePod(logger klog.Logger, pod *v1.Pod) error
- func (c *Cache) UpdateNode(logger klog.Logger, oldNode, newNode *v1.Node) *framework.NodeInfo
- func (c *Cache) UpdatePod(logger klog.Logger, oldPod, newPod *v1.Pod) error
- func (c *Cache) UpdateSnapshot(logger klog.Logger, snapshot *internalcache.Snapshot) 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) 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) Dump ¶
func (c *Cache) Dump() *internalcache.Dump
Dump 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) GetPod ¶
GetPod is a fake method for testing.
func (*Cache) IsAssumedPod ¶
IsAssumedPod is a fake method for testing.
func (*Cache) NodeCount ¶
NodeCount is a fake method for testing.
func (*Cache) PodCount ¶
PodCount 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) UpdateNode ¶
UpdateNode is a fake method for testing.
func (*Cache) UpdatePod ¶
UpdatePod is a fake method for testing.
func (*Cache) UpdateSnapshot ¶
func (c *Cache) UpdateSnapshot(logger klog.Logger, snapshot *internalcache.Snapshot) error
UpdateSnapshot is a fake method for testing.
Source Files ¶
fake_cache.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 hours ago –
Tools for package owners.