fake

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (c *Cache) AddNode(logger klog.Logger, node *v1.Node) *framework.NodeInfo

AddNode is a fake method for testing.

func (*Cache) AddPod

func (c *Cache) AddPod(logger klog.Logger, pod *v1.Pod) error

AddPod is a fake method for testing.

func (*Cache) AssumePod

func (c *Cache) AssumePod(logger klog.Logger, pod *v1.Pod) error

AssumePod is a fake method for testing.

func (*Cache) Dump added in v1.18.0

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

Dump is a fake method for testing.

func (*Cache) FinishBinding

func (c *Cache) FinishBinding(logger klog.Logger, pod *v1.Pod) error

FinishBinding is a fake method for testing.

func (*Cache) ForgetPod

func (c *Cache) ForgetPod(logger klog.Logger, pod *v1.Pod) error

ForgetPod is a fake method for testing.

func (*Cache) GetPod

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

GetPod is a fake method for testing.

func (*Cache) IsAssumedPod

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

IsAssumedPod is a fake method for testing.

func (*Cache) NodeCount added in v1.20.0

func (c *Cache) NodeCount() int

NodeCount is a fake method for testing.

func (*Cache) PodCount added in v1.18.9

func (c *Cache) PodCount() (int, error)

PodCount is a fake method for testing.

func (*Cache) RemoveNode

func (c *Cache) RemoveNode(logger klog.Logger, node *v1.Node) error

RemoveNode is a fake method for testing.

func (*Cache) RemovePod

func (c *Cache) RemovePod(logger klog.Logger, pod *v1.Pod) error

RemovePod is a fake method for testing.

func (*Cache) UpdateNode

func (c *Cache) UpdateNode(logger klog.Logger, oldNode, newNode *v1.Node) *framework.NodeInfo

UpdateNode is a fake method for testing.

func (*Cache) UpdatePod

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

UpdatePod is a fake method for testing.

func (*Cache) UpdateSnapshot added in v1.18.0

func (c *Cache) UpdateSnapshot(logger klog.Logger, snapshot *internalcache.Snapshot) error

UpdateSnapshot is a fake method for testing.

Jump to

Keyboard shortcuts

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