v1alpha2

package
v0.0.0-...-5ae6774 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeaseCandidateClusterLister

func NewLeaseCandidateClusterLister(indexer cache.Indexer) *leaseCandidateClusterLister

NewLeaseCandidateClusterLister returns a new LeaseCandidateClusterLister. 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 LeaseCandidateClusterLister

type LeaseCandidateClusterLister interface {
	// List lists all LeaseCandidates in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*coordinationv1alpha2.LeaseCandidate, err error)
	// Cluster returns a lister that can list and get LeaseCandidates in one workspace.
	Cluster(clusterName logicalcluster.Name) coordinationv1alpha2listers.LeaseCandidateLister
	LeaseCandidateClusterListerExpansion
}

LeaseCandidateClusterLister can list LeaseCandidates across all workspaces, or scope down to a LeaseCandidateLister for one workspace. All objects returned here must be treated as read-only.

type LeaseCandidateClusterListerExpansion

type LeaseCandidateClusterListerExpansion interface{}

LeaseCandidateClusterListerExpansion allows custom methods to be added to LeaseCandidateClusterLister.

Jump to

Keyboard shortcuts

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