unitstatusstore

package
v0.0.0-...-bc30bd0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name commonstore.StoreName = "UnitStatusStore"

Variables

This section is empty.

Functions

func GetUnitKeyFromPodGroup

func GetUnitKeyFromPodGroup(key string) string

func NewCache

func NewCache(handler commoncache.CacheHandler) commonstore.Store

func NewSnapshot

func NewSnapshot(handler commoncache.CacheHandler) commonstore.Store

Types

type UnitStatusStore

type UnitStatusStore struct {
	commonstore.BaseStore

	Store *unitstatus.UnitStatusMap // Only be used in Cache.
	// contains filtered or unexported fields
}

func (*UnitStatusStore) AddPod

func (s *UnitStatusStore) AddPod(pod *v1.Pod) error

func (*UnitStatusStore) AddPodGroup

func (s *UnitStatusStore) AddPodGroup(podGroup *schedulingv1a1.PodGroup) error

func (*UnitStatusStore) AssumePod

func (s *UnitStatusStore) AssumePod(podInfo *framework.CachePodInfo) error

func (*UnitStatusStore) DeletePod

func (s *UnitStatusStore) DeletePod(pod *v1.Pod) error

func (*UnitStatusStore) ForgetPod

func (s *UnitStatusStore) ForgetPod(podInfo *framework.CachePodInfo) error

func (*UnitStatusStore) GetUnitSchedulingStatus

func (s *UnitStatusStore) GetUnitSchedulingStatus(unitKey string) unitstatus.SchedulingStatus

func (*UnitStatusStore) GetUnitStatus

func (s *UnitStatusStore) GetUnitStatus(unitKey string) unitstatus.UnitStatus

func (*UnitStatusStore) Name

func (*UnitStatusStore) RemovePodGroup

func (s *UnitStatusStore) RemovePodGroup(podGroup *schedulingv1a1.PodGroup) error

func (*UnitStatusStore) SetUnitSchedulingStatus

func (s *UnitStatusStore) SetUnitSchedulingStatus(unitKey string, status unitstatus.SchedulingStatus)

func (*UnitStatusStore) UpdatePod

func (s *UnitStatusStore) UpdatePod(oldPod *v1.Pod, newPod *v1.Pod) error

func (*UnitStatusStore) UpdatePodGroup

func (s *UnitStatusStore) UpdatePodGroup(oldPodGroup, newPodGroup *schedulingv1a1.PodGroup) error

func (*UnitStatusStore) UpdateSnapshot

func (s *UnitStatusStore) UpdateSnapshot(_ commonstore.Store) error

Jump to

Keyboard shortcuts

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