v1alpha1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIResourceClusterLister

func NewAPIResourceClusterLister(indexer cache.Indexer) *aPIResourceClusterLister

NewAPIResourceClusterLister returns a new APIResourceClusterLister. 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 NewAPIResourceLister

func NewAPIResourceLister(indexer cache.Indexer) *aPIResourceScopedLister

NewAPIResourceLister returns a new APIResourceLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function

Types

type APIResourceClusterLister

type APIResourceClusterLister interface {
	// List lists all APIResources in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*metav1alpha1.APIResource, err error)
	// Cluster returns a lister that can list and get APIResources in one workspace.
	Cluster(clusterName logicalcluster.Name) APIResourceLister
	APIResourceClusterListerExpansion
}

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

type APIResourceClusterListerExpansion

type APIResourceClusterListerExpansion interface{}

APIResourceClusterListerExpansion allows custom methods to be added to APIResourceClusterLister.

type APIResourceLister

type APIResourceLister interface {
	// List lists all APIResources in the workspace.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*metav1alpha1.APIResource, err error)
	// Get retrieves the APIResource from the indexer for a given workspace and name.
	// Objects returned here must be treated as read-only.
	Get(name string) (*metav1alpha1.APIResource, error)
	APIResourceListerExpansion
}

APIResourceLister can list all APIResources, or get one in particular. All objects returned here must be treated as read-only.

type APIResourceListerExpansion

type APIResourceListerExpansion interface{}

APIResourceListerExpansion allows custom methods to be added to APIResourceLister.

Jump to

Keyboard shortcuts

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