Documentation ¶
Index ¶
- func NewWorkspaceClusterLister(indexer cache.Indexer) *workspaceClusterLister
- func NewWorkspaceLister(indexer cache.Indexer) *workspaceScopedLister
- func NewWorkspaceTypeClusterLister(indexer cache.Indexer) *workspaceTypeClusterLister
- func NewWorkspaceTypeLister(indexer cache.Indexer) *workspaceTypeScopedLister
- type WorkspaceClusterLister
- type WorkspaceClusterListerExpansion
- type WorkspaceLister
- type WorkspaceListerExpansion
- type WorkspaceTypeClusterLister
- type WorkspaceTypeClusterListerExpansion
- type WorkspaceTypeLister
- type WorkspaceTypeListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkspaceClusterLister ¶ added in v0.11.0
NewWorkspaceClusterLister returns a new WorkspaceClusterLister. 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 NewWorkspaceLister ¶
NewWorkspaceLister returns a new WorkspaceLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function
func NewWorkspaceTypeClusterLister ¶ added in v0.11.0
NewWorkspaceTypeClusterLister returns a new WorkspaceTypeClusterLister. 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 NewWorkspaceTypeLister ¶ added in v0.11.0
NewWorkspaceTypeLister returns a new WorkspaceTypeLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function
Types ¶
type WorkspaceClusterLister ¶ added in v0.11.0
type WorkspaceClusterLister interface { // List lists all Workspaces in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*tenancyv1alpha1.Workspace, err error) // Cluster returns a lister that can list and get Workspaces in one workspace. Cluster(clusterName logicalcluster.Name) WorkspaceLister WorkspaceClusterListerExpansion }
WorkspaceClusterLister can list Workspaces across all workspaces, or scope down to a WorkspaceLister for one workspace. All objects returned here must be treated as read-only.
type WorkspaceClusterListerExpansion ¶ added in v0.11.0
type WorkspaceClusterListerExpansion interface{}
WorkspaceClusterListerExpansion allows custom methods to be added to WorkspaceClusterLister.
type WorkspaceLister ¶
type WorkspaceLister interface { // List lists all Workspaces in the workspace. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*tenancyv1alpha1.Workspace, err error) // Get retrieves the Workspace from the indexer for a given workspace and name. // Objects returned here must be treated as read-only. Get(name string) (*tenancyv1alpha1.Workspace, error) WorkspaceListerExpansion }
WorkspaceLister can list all Workspaces, or get one in particular. All objects returned here must be treated as read-only.
type WorkspaceListerExpansion ¶
type WorkspaceListerExpansion interface{}
WorkspaceListerExpansion allows custom methods to be added to WorkspaceLister.
type WorkspaceTypeClusterLister ¶ added in v0.11.0
type WorkspaceTypeClusterLister interface { // List lists all WorkspaceTypes in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*tenancyv1alpha1.WorkspaceType, err error) // Cluster returns a lister that can list and get WorkspaceTypes in one workspace. Cluster(clusterName logicalcluster.Name) WorkspaceTypeLister WorkspaceTypeClusterListerExpansion }
WorkspaceTypeClusterLister can list WorkspaceTypes across all workspaces, or scope down to a WorkspaceTypeLister for one workspace. All objects returned here must be treated as read-only.
type WorkspaceTypeClusterListerExpansion ¶ added in v0.11.0
type WorkspaceTypeClusterListerExpansion interface{}
WorkspaceTypeClusterListerExpansion allows custom methods to be added to WorkspaceTypeClusterLister.
type WorkspaceTypeLister ¶ added in v0.11.0
type WorkspaceTypeLister interface { // List lists all WorkspaceTypes in the workspace. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*tenancyv1alpha1.WorkspaceType, err error) // Get retrieves the WorkspaceType from the indexer for a given workspace and name. // Objects returned here must be treated as read-only. Get(name string) (*tenancyv1alpha1.WorkspaceType, error) WorkspaceTypeListerExpansion }
WorkspaceTypeLister can list all WorkspaceTypes, or get one in particular. All objects returned here must be treated as read-only.
type WorkspaceTypeListerExpansion ¶ added in v0.11.0
type WorkspaceTypeListerExpansion interface{}
WorkspaceTypeListerExpansion allows custom methods to be added to WorkspaceTypeLister.