Documentation
¶
Index ¶
- func NewPriorityClassLister(indexer cache.Indexer) listersschedulingv1alpha1.PriorityClassLister
- func NewWorkloadLister(indexer cache.Indexer) listersschedulingv1alpha1.WorkloadLister
- type PriorityClassClusterLister
- type PriorityClassClusterListerExpansion
- type WorkloadClusterLister
- type WorkloadClusterListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPriorityClassLister ¶
func NewPriorityClassLister(indexer cache.Indexer) listersschedulingv1alpha1.PriorityClassLister
NewPriorityClassLister returns a new PriorityClassLister. 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
func NewWorkloadLister ¶ added in v0.31.0
func NewWorkloadLister(indexer cache.Indexer) listersschedulingv1alpha1.WorkloadLister
NewWorkloadLister returns a new WorkloadLister. 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 PriorityClassClusterLister ¶
type PriorityClassClusterLister interface {
// List lists all PriorityClasses in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*schedulingv1alpha1.PriorityClass, err error)
// Cluster returns a lister that can list and get PriorityClasses in one workspace.
Cluster(clusterName logicalcluster.Name) listersschedulingv1alpha1.PriorityClassLister
PriorityClassClusterListerExpansion
}
PriorityClassClusterLister helps list PriorityClasses across all workspaces, or scope down to a PriorityClassLister for one workspace. All objects returned here must be treated as read-only.
func NewPriorityClassClusterLister ¶
func NewPriorityClassClusterLister(indexer cache.Indexer) PriorityClassClusterLister
NewPriorityClassClusterLister returns a new PriorityClassClusterLister. 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
type PriorityClassClusterListerExpansion ¶
type PriorityClassClusterListerExpansion interface{}
PriorityClassClusterListerExpansion allows custom methods to be added to PriorityClassClusterLister.
type WorkloadClusterLister ¶ added in v0.31.0
type WorkloadClusterLister interface {
// List lists all Workloads in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*schedulingv1alpha1.Workload, err error)
// Cluster returns a lister that can list and get Workloads in one workspace.
Cluster(clusterName logicalcluster.Name) listersschedulingv1alpha1.WorkloadLister
WorkloadClusterListerExpansion
}
WorkloadClusterLister helps list Workloads across all workspaces, or scope down to a WorkloadLister for one workspace. All objects returned here must be treated as read-only.
func NewWorkloadClusterLister ¶ added in v0.31.0
func NewWorkloadClusterLister(indexer cache.Indexer) WorkloadClusterLister
NewWorkloadClusterLister returns a new WorkloadClusterLister. 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 WorkloadClusterListerExpansion ¶ added in v0.31.0
type WorkloadClusterListerExpansion interface{}
WorkloadClusterListerExpansion allows custom methods to be added to WorkloadClusterLister.