Documentation ¶
Index ¶
- Constants
- func NewCache(handler commoncache.CacheHandler) commonstore.Store
- func NewSnapshot(handler commoncache.CacheHandler) commonstore.Store
- type PdbStore
- func (s *PdbStore) AddPDB(pdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) DeletePDB(pdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) GetPDBItemList() []framework.PDBItem
- func (s *PdbStore) Name() commonstore.StoreName
- func (s *PdbStore) UpdatePDB(oldPdb, newPdb *policy.PodDisruptionBudget) error
- func (s *PdbStore) UpdateSnapshot(store commonstore.Store) error
- type StoreHandle
Constants ¶
View Source
const Name commonstore.StoreName = "PdbStore"
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 PdbStore ¶
type PdbStore struct { commonstore.BaseStore Pdbs generationstore.Store // contains filtered or unexported fields }
PdbStore is used to cache pdb and pdb selecors Operation of this struct is not thread-safe, should ensure thread-safe by callers.
func (*PdbStore) GetPDBItemList ¶
func (*PdbStore) Name ¶
func (s *PdbStore) Name() commonstore.StoreName
func (*PdbStore) UpdatePDB ¶
func (s *PdbStore) UpdatePDB(oldPdb, newPdb *policy.PodDisruptionBudget) error
func (*PdbStore) UpdateSnapshot ¶
func (s *PdbStore) UpdateSnapshot(store commonstore.Store) error
type StoreHandle ¶
Click to show internal directories.
Click to hide internal directories.