reservationstore

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const Name commonstore.StoreName = "ReservationStore"

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 ReservationStore

type ReservationStore struct {
	commonstore.BaseStore
	// contains filtered or unexported fields
}

func (*ReservationStore) AddDeployment

func (r *ReservationStore) AddDeployment(deploy *appsv1.Deployment) error

func (*ReservationStore) AddReservation

func (s *ReservationStore) AddReservation(res *schedulingv1a1.Reservation) error

func (*ReservationStore) AssumePod

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

func (*ReservationStore) CleanupExpiredAssumedPodReservation

func (s *ReservationStore) CleanupExpiredAssumedPodReservation(now time.Time)

func (*ReservationStore) DeleteDeployment

func (r *ReservationStore) DeleteDeployment(deploy *appsv1.Deployment) error

func (*ReservationStore) DeletePod

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

func (*ReservationStore) DeleteReservation

func (s *ReservationStore) DeleteReservation(res *schedulingv1a1.Reservation) error

func (*ReservationStore) ForgetPod

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

func (*ReservationStore) GetAvailableNodes

func (s *ReservationStore) GetAvailableNodes(placeholder string) ([]string, error)

func (*ReservationStore) GetAvailableNodesAndPlaceholders

func (s *ReservationStore) GetAvailableNodesAndPlaceholders(placeholder string) (framework.ReservationPlaceholdersOfNodes, error)

func (*ReservationStore) Name

func (*ReservationStore) PeriodWorker

func (s *ReservationStore) PeriodWorker(mu *sync.RWMutex)

func (*ReservationStore) UpdateDeployment

func (r *ReservationStore) UpdateDeployment(oldDeploy, newDeploy *appsv1.Deployment) error

func (*ReservationStore) UpdatePod

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

func (*ReservationStore) UpdateReservation

func (s *ReservationStore) UpdateReservation(oldRes, newRes *schedulingv1a1.Reservation) error

func (*ReservationStore) UpdateSnapshot

func (s *ReservationStore) UpdateSnapshot(store commonstore.Store) error

type StoreHandle

type StoreHandle interface {
	GetAvailableNodesAndPlaceholders(placeholder string) (framework.ReservationPlaceholdersOfNodes, error)
}

Jump to

Keyboard shortcuts

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