pdbstore

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

Documentation

Index

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) AddPDB

func (s *PdbStore) AddPDB(pdb *policy.PodDisruptionBudget) error

func (*PdbStore) DeletePDB

func (s *PdbStore) DeletePDB(pdb *policy.PodDisruptionBudget) error

func (*PdbStore) GetPDBItemList

func (s *PdbStore) GetPDBItemList() []framework.PDBItem

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

type StoreHandle interface {
	GetPDBItemList() []framework.PDBItem
}

Jump to

Keyboard shortcuts

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