Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSyncTargetClusterLister ¶
NewSyncTargetClusterLister returns a new SyncTargetClusterLister. 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 NewSyncTargetLister ¶
NewSyncTargetLister returns a new SyncTargetLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function
Types ¶
type SyncTargetClusterLister ¶
type SyncTargetClusterLister interface { // List lists all SyncTargets in the indexer. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*workloadv1alpha1.SyncTarget, err error) // Cluster returns a lister that can list and get SyncTargets in one workspace. Cluster(clusterName logicalcluster.Name) SyncTargetLister SyncTargetClusterListerExpansion }
SyncTargetClusterLister can list SyncTargets across all workspaces, or scope down to a SyncTargetLister for one workspace. All objects returned here must be treated as read-only.
type SyncTargetClusterListerExpansion ¶
type SyncTargetClusterListerExpansion interface{}
SyncTargetClusterListerExpansion allows custom methods to be added to SyncTargetClusterLister.
type SyncTargetLister ¶
type SyncTargetLister interface { // List lists all SyncTargets in the workspace. // Objects returned here must be treated as read-only. List(selector labels.Selector) (ret []*workloadv1alpha1.SyncTarget, err error) // Get retrieves the SyncTarget from the indexer for a given workspace and name. // Objects returned here must be treated as read-only. Get(name string) (*workloadv1alpha1.SyncTarget, error) SyncTargetListerExpansion }
SyncTargetLister can list all SyncTargets, or get one in particular. All objects returned here must be treated as read-only.
type SyncTargetListerExpansion ¶
type SyncTargetListerExpansion interface{}
SyncTargetListerExpansion allows custom methods to be added to SyncTargetLister.