Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRuntimeObjectShim ¶
func NewRuntimeObjectShim(lister ClusterLister) kcpcache.GenericClusterLister
NewRuntimeObjectShim returns a new shim for ClusterLister. It wraps Lister so that it implements kcpcache.GenericClusterLister interface.
Types ¶
type ClusterLister ¶
type ClusterLister interface { Cluster(logicalcluster.Name) metadatalister.Lister // List lists all resources in the indexer. List(selector labels.Selector) (ret []*metav1.PartialObjectMetadata, err error) }
ClusterLister can list resources across all workspaces, or scope down to a Lister for one workspace.
func New ¶
func New(indexer cache.Indexer, gvr schema.GroupVersionResource) ClusterLister
New returns a new ClusterLister.
Click to show internal directories.
Click to hide internal directories.