Documentation ¶
Index ¶
- Constants
- func NewCache(handler handler.CacheHandler) commonstores.CommonStore
- func NewPDBItemImpl(pdb *policy.PodDisruptionBudget) *pdbItemImpl
- func NewSnapshot(handler handler.CacheHandler) commonstores.CommonStore
- type OwnerItemImpl
- func (o *OwnerItemImpl) AddPDB(key string)
- func (o *OwnerItemImpl) Clone() framework.OwnerItem
- func (o *OwnerItemImpl) GetGeneration() int64
- func (o *OwnerItemImpl) GetOwnerLabels() map[string]string
- func (o *OwnerItemImpl) GetPDBUpdated() bool
- func (o *OwnerItemImpl) GetRelatedPDBs() []string
- func (o *OwnerItemImpl) RemovePDB(key string)
- func (o *OwnerItemImpl) Replace(item framework.OwnerItem)
- func (o *OwnerItemImpl) SetGeneration(generation int64)
- func (o *OwnerItemImpl) SetPDBUpdated()
- type PdbStore
- func (s *PdbStore) AddOwner(ownerType, ownerKey string, ownerLabels map[string]string) error
- func (s *PdbStore) AddPDB(pdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) DeleteOwner(ownerType, ownerKey string) error
- func (s *PdbStore) DeletePDB(pdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) GetOwnerLabels(ownerType, ownerKey string) map[string]string
- func (s *PdbStore) GetOwnersForPDB(key, ownerType string) []string
- func (s *PdbStore) GetPDBItemList() []framework.PDBItem
- func (s *PdbStore) GetPDBsForOwner(ownerType, ownerKey string) (bool, bool, []string)
- func (c *PdbStore) Name() commonstores.StoreName
- func (s *PdbStore) SetPDBUpdated(ownerType, ownerKey string)
- func (c *PdbStore) UpdateOwner(ownerType, key string, oldLabels, newLabels map[string]string) error
- func (s *PdbStore) UpdatePDB(oldPdb, newPdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) UpdateSnapshot(store commonstores.CommonStore) error
Constants ¶
View Source
const Name commonstores.StoreName = "PdbStore"
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(handler handler.CacheHandler) commonstores.CommonStore
func NewPDBItemImpl ¶
func NewPDBItemImpl(pdb *policy.PodDisruptionBudget) *pdbItemImpl
func NewSnapshot ¶
func NewSnapshot(handler handler.CacheHandler) commonstores.CommonStore
Types ¶
type OwnerItemImpl ¶
type OwnerItemImpl struct { Pdbs framework.GenerationStringSet // contains filtered or unexported fields }
func (*OwnerItemImpl) AddPDB ¶
func (o *OwnerItemImpl) AddPDB(key string)
func (*OwnerItemImpl) Clone ¶
func (o *OwnerItemImpl) Clone() framework.OwnerItem
func (*OwnerItemImpl) GetGeneration ¶
func (o *OwnerItemImpl) GetGeneration() int64
func (*OwnerItemImpl) GetOwnerLabels ¶
func (o *OwnerItemImpl) GetOwnerLabels() map[string]string
func (*OwnerItemImpl) GetPDBUpdated ¶
func (o *OwnerItemImpl) GetPDBUpdated() bool
func (*OwnerItemImpl) GetRelatedPDBs ¶
func (o *OwnerItemImpl) GetRelatedPDBs() []string
func (*OwnerItemImpl) RemovePDB ¶
func (o *OwnerItemImpl) RemovePDB(key string)
func (*OwnerItemImpl) Replace ¶
func (o *OwnerItemImpl) Replace(item framework.OwnerItem)
func (*OwnerItemImpl) SetGeneration ¶
func (o *OwnerItemImpl) SetGeneration(generation int64)
func (*OwnerItemImpl) SetPDBUpdated ¶
func (o *OwnerItemImpl) SetPDBUpdated()
type PdbStore ¶
type PdbStore struct { commonstores.BaseStore // key is replicaset namespace/name ReplicaSets generationstore.Store // key is daemonset namespace/name DaemonSets generationstore.Store // key is pdb namespace/name Pdbs generationstore.Store // contains filtered or unexported fields }
PdbStore is used to cache pdb and pdb selectors Operation of this struct is not thread-safe, should ensure thread-safe by callers.
func (*PdbStore) DeleteOwner ¶
func (*PdbStore) GetOwnerLabels ¶
func (*PdbStore) GetOwnersForPDB ¶
func (*PdbStore) GetPDBItemList ¶
func (*PdbStore) GetPDBsForOwner ¶
func (*PdbStore) Name ¶
func (c *PdbStore) Name() commonstores.StoreName
func (*PdbStore) SetPDBUpdated ¶
func (*PdbStore) UpdateOwner ¶
func (*PdbStore) UpdatePDB ¶
func (s *PdbStore) UpdatePDB(oldPdb, newPdb *policy.PodDisruptionBudget) error
func (*PdbStore) UpdateSnapshot ¶
func (s *PdbStore) UpdateSnapshot(store commonstores.CommonStore) error
Click to show internal directories.
Click to hide internal directories.