Documentation ¶
Index ¶
- Constants
- func NewCache(handler commoncache.CacheHandler) commonstore.Store
- func NewSnapshot(handler commoncache.CacheHandler) commonstore.Store
- type UnitStatusStore
- func (s *UnitStatusStore) AddPod(pod *v1.Pod) error
- func (s *UnitStatusStore) AddPodGroup(podGroup *schedulingv1a1.PodGroup) error
- func (s *UnitStatusStore) AssumePod(podInfo *framework.CachePodInfo) error
- func (s *UnitStatusStore) DeletePod(pod *v1.Pod) error
- func (s *UnitStatusStore) DeletePodGroup(podGroup *schedulingv1a1.PodGroup) error
- func (s *UnitStatusStore) ForgetPod(podInfo *framework.CachePodInfo) error
- func (s *UnitStatusStore) GetUnitSchedulingStatus(unitKey string) unitstatus.SchedulingStatus
- func (s *UnitStatusStore) GetUnitStatus(unitKey string) unitstatus.UnitStatus
- func (c *UnitStatusStore) Name() commonstore.StoreName
- func (s *UnitStatusStore) SetUnitSchedulingStatus(unitKey string, status unitstatus.SchedulingStatus)
- func (s *UnitStatusStore) UpdatePod(oldPod *v1.Pod, newPod *v1.Pod) error
- func (s *UnitStatusStore) UpdatePodGroup(oldPodGroup, newPodGroup *schedulingv1a1.PodGroup) error
- func (s *UnitStatusStore) UpdateSnapshot(_ commonstore.Store) error
Constants ¶
View Source
const Name commonstore.StoreName = "UnitStatusStore"
Variables ¶
This section is empty.
Functions ¶
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) AddPodGroup ¶
func (s *UnitStatusStore) AddPodGroup(podGroup *schedulingv1a1.PodGroup) error
func (*UnitStatusStore) AssumePod ¶
func (s *UnitStatusStore) AssumePod(podInfo *framework.CachePodInfo) error
func (*UnitStatusStore) DeletePodGroup ¶
func (s *UnitStatusStore) DeletePodGroup(podGroup *schedulingv1a1.PodGroup) 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 (c *UnitStatusStore) Name() commonstore.StoreName
func (*UnitStatusStore) SetUnitSchedulingStatus ¶
func (s *UnitStatusStore) SetUnitSchedulingStatus(unitKey string, status unitstatus.SchedulingStatus)
func (*UnitStatusStore) UpdatePodGroup ¶
func (s *UnitStatusStore) UpdatePodGroup(oldPodGroup, newPodGroup *schedulingv1a1.PodGroup) error
func (*UnitStatusStore) UpdateSnapshot ¶
func (s *UnitStatusStore) UpdateSnapshot(_ commonstore.Store) error
Click to show internal directories.
Click to hide internal directories.