Documentation
¶
Index ¶
- func NewEvictionLister(indexer cache.Indexer) listerspolicyv1.EvictionLister
- func NewPodDisruptionBudgetLister(indexer cache.Indexer) listerspolicyv1.PodDisruptionBudgetLister
- type EvictionClusterLister
- type EvictionClusterListerExpansion
- type PodDisruptionBudgetClusterLister
- type PodDisruptionBudgetClusterListerExpansion
- type PodDisruptionBudgetListerExpansion
- type PodDisruptionBudgetNamespaceListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEvictionLister ¶
func NewEvictionLister(indexer cache.Indexer) listerspolicyv1.EvictionLister
NewEvictionLister returns a new EvictionLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
func NewPodDisruptionBudgetLister ¶
func NewPodDisruptionBudgetLister(indexer cache.Indexer) listerspolicyv1.PodDisruptionBudgetLister
NewPodDisruptionBudgetLister returns a new PodDisruptionBudgetLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
Types ¶
type EvictionClusterLister ¶
type EvictionClusterLister interface {
// List lists all Evictions in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*policyv1.Eviction, err error)
// Cluster returns a lister that can list and get Evictions in one workspace.
Cluster(clusterName logicalcluster.Name) listerspolicyv1.EvictionLister
EvictionClusterListerExpansion
}
EvictionClusterLister helps list Evictions across all workspaces, or scope down to a EvictionLister for one workspace. All objects returned here must be treated as read-only.
func NewEvictionClusterLister ¶
func NewEvictionClusterLister(indexer cache.Indexer) EvictionClusterLister
NewEvictionClusterLister returns a new EvictionClusterLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
type EvictionClusterListerExpansion ¶
type EvictionClusterListerExpansion interface{}
EvictionClusterListerExpansion allows custom methods to be added to EvictionClusterLister.
type PodDisruptionBudgetClusterLister ¶
type PodDisruptionBudgetClusterLister interface {
// List lists all PodDisruptionBudgets in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*policyv1.PodDisruptionBudget, err error)
// Cluster returns a lister that can list and get PodDisruptionBudgets in one workspace.
Cluster(clusterName logicalcluster.Name) listerspolicyv1.PodDisruptionBudgetLister
PodDisruptionBudgetClusterListerExpansion
}
PodDisruptionBudgetClusterLister helps list PodDisruptionBudgets across all workspaces, or scope down to a PodDisruptionBudgetLister for one workspace. All objects returned here must be treated as read-only.
func NewPodDisruptionBudgetClusterLister ¶
func NewPodDisruptionBudgetClusterLister(indexer cache.Indexer) PodDisruptionBudgetClusterLister
NewPodDisruptionBudgetClusterLister returns a new PodDisruptionBudgetClusterLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
type PodDisruptionBudgetClusterListerExpansion ¶
type PodDisruptionBudgetClusterListerExpansion interface{}
PodDisruptionBudgetClusterListerExpansion allows custom methods to be added to PodDisruptionBudgetClusterLister.
type PodDisruptionBudgetListerExpansion ¶
type PodDisruptionBudgetListerExpansion interface {
GetPodPodDisruptionBudgets(pod *v1.Pod) ([]*policy.PodDisruptionBudget, error)
}
PodDisruptionBudgetListerExpansion allows custom methods to be added to PodDisruptionBudgetLister.
type PodDisruptionBudgetNamespaceListerExpansion ¶
type PodDisruptionBudgetNamespaceListerExpansion interface{}
PodDisruptionBudgetNamespaceListerExpansion allows custom methods to be added to PodDisruptionBudgetNamespaceLister.