Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLeaseClusterLister ¶
NewLeaseClusterLister returns a new LeaseClusterLister. 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 LeaseClusterLister ¶
type LeaseClusterLister interface { // List lists all Leases in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*coordinationv1beta1.Lease, err error) // Cluster returns a lister that can list and get Leases in one workspace. Cluster(clusterName logicalcluster.Name) coordinationv1beta1listers.LeaseLister LeaseClusterListerExpansion }
LeaseClusterLister can list Leases across all workspaces, or scope down to a LeaseLister for one workspace. All objects returned here must be treated as read-only.
type LeaseClusterListerExpansion ¶
type LeaseClusterListerExpansion interface{}
LeaseClusterListerExpansion allows custom methods to be added to LeaseClusterLister.
Click to show internal directories.
Click to hide internal directories.