Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIResourceClusterLister ¶
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 ¶
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.