Documentation ¶
Index ¶
- func NewPartitionClusterLister(indexer cache.Indexer) *partitionClusterLister
- func NewPartitionLister(indexer cache.Indexer) *partitionScopedLister
- func NewPartitionSetClusterLister(indexer cache.Indexer) *partitionSetClusterLister
- func NewPartitionSetLister(indexer cache.Indexer) *partitionSetScopedLister
- type PartitionClusterLister
- type PartitionClusterListerExpansion
- type PartitionLister
- type PartitionListerExpansion
- type PartitionSetClusterLister
- type PartitionSetClusterListerExpansion
- type PartitionSetLister
- type PartitionSetListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPartitionClusterLister ¶
NewPartitionClusterLister returns a new PartitionClusterLister. 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 NewPartitionLister ¶
NewPartitionLister returns a new PartitionLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function
func NewPartitionSetClusterLister ¶
NewPartitionSetClusterLister returns a new PartitionSetClusterLister. 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 NewPartitionSetLister ¶
NewPartitionSetLister returns a new PartitionSetLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function
Types ¶
type PartitionClusterLister ¶
type PartitionClusterLister interface { // List lists all Partitions in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*topologyv1alpha1.Partition, err error) // Cluster returns a lister that can list and get Partitions in one workspace. Cluster(clusterName logicalcluster.Name) PartitionLister PartitionClusterListerExpansion }
PartitionClusterLister can list Partitions across all workspaces, or scope down to a PartitionLister for one workspace. All objects returned here must be treated as read-only.
type PartitionClusterListerExpansion ¶
type PartitionClusterListerExpansion interface{}
PartitionClusterListerExpansion allows custom methods to be added to PartitionClusterLister.
type PartitionLister ¶
type PartitionLister interface { // List lists all Partitions in the workspace. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*topologyv1alpha1.Partition, err error) // Get retrieves the Partition from the indexer for a given workspace and name. // Objects returned here must be treated as read-only. Get(name string) (*topologyv1alpha1.Partition, error) PartitionListerExpansion }
PartitionLister can list all Partitions, or get one in particular. All objects returned here must be treated as read-only.
type PartitionListerExpansion ¶
type PartitionListerExpansion interface{}
PartitionListerExpansion allows custom methods to be added to PartitionLister.
type PartitionSetClusterLister ¶
type PartitionSetClusterLister interface { // List lists all PartitionSets in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*topologyv1alpha1.PartitionSet, err error) // Cluster returns a lister that can list and get PartitionSets in one workspace. Cluster(clusterName logicalcluster.Name) PartitionSetLister PartitionSetClusterListerExpansion }
PartitionSetClusterLister can list PartitionSets across all workspaces, or scope down to a PartitionSetLister for one workspace. All objects returned here must be treated as read-only.
type PartitionSetClusterListerExpansion ¶
type PartitionSetClusterListerExpansion interface{}
PartitionSetClusterListerExpansion allows custom methods to be added to PartitionSetClusterLister.
type PartitionSetLister ¶
type PartitionSetLister interface { // List lists all PartitionSets in the workspace. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*topologyv1alpha1.PartitionSet, err error) // Get retrieves the PartitionSet from the indexer for a given workspace and name. // Objects returned here must be treated as read-only. Get(name string) (*topologyv1alpha1.PartitionSet, error) PartitionSetListerExpansion }
PartitionSetLister can list all PartitionSets, or get one in particular. All objects returned here must be treated as read-only.
type PartitionSetListerExpansion ¶
type PartitionSetListerExpansion interface{}
PartitionSetListerExpansion allows custom methods to be added to PartitionSetLister.