Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AddNode(node *v1.Node) error
- func (c *Cache) AddPod(pod *v1.Pod) error
- func (c *Cache) AddPool(pool *v1alpha1.Pool) error
- func (c *Cache) AssumePod(pod *v1.Pod) error
- func (c *Cache) BorrowPool(fromPoolName string, pod *v1.Pod) string
- func (c *Cache) DeserveAllPools() 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) GetPod(pod *v1.Pod) (*v1.Pod, error)
- func (c *Cache) GetPool(poolName string) (*info.PoolInfo, error)
- func (c *Cache) GetPoolContainsNode(nodeName string) *info.PoolInfo
- func (c *Cache) IsAssumedPod(pod *v1.Pod) (bool, error)
- func (c *Cache) List(s labels.Selector) ([]*v1.Pod, error)
- func (c *Cache) Metrics()
- func (c *Cache) NodeInfoSnapshot(poolName string) *info.NodeInfoSnapshot
- func (c *Cache) NodeTree(poolName string) *info.NodeTree
- func (c *Cache) NumNodes() int
- func (c *Cache) NumPools() int
- func (c *Cache) Pools() map[string]*info.PoolInfo
- func (c *Cache) RemoveNode(node *v1.Node) error
- func (c *Cache) RemovePod(pod *v1.Pod) error
- func (c *Cache) RemovePool(pool *v1alpha1.Pool) error
- func (c *Cache) Snapshot() *info.Snapshot
- func (c *Cache) TotalAllocatableResource() *info.Resource
- func (c *Cache) UpdateNode(oldNode, newNode *v1.Node) error
- func (c *Cache) UpdateNodeInfoSnapshot(poolName string) error
- func (c *Cache) UpdatePod(oldPod, newPod *v1.Pod) error
- func (c *Cache) UpdatePool(oldPool, newPool *v1alpha1.Pool) error
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) BorrowPool ¶ added in v0.1.3
func (*Cache) DeserveAllPools ¶
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) GetPoolContainsNode ¶
func (*Cache) IsAssumedPod ¶
IsAssumedPod is a fake method for testing.
func (*Cache) NodeInfoSnapshot ¶
func (c *Cache) NodeInfoSnapshot(poolName string) *info.NodeInfoSnapshot
func (*Cache) RemoveNode ¶
RemoveNode is a fake method for testing.
func (*Cache) TotalAllocatableResource ¶
func (*Cache) UpdateNode ¶
UpdateNode is a fake method for testing.
func (*Cache) UpdateNodeInfoSnapshot ¶
UpdateNodeInfoSnapshot is a fake method for testing.
Click to show internal directories.
Click to hide internal directories.