v1alpha1

package
v0.20.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSyncTargetClusterLister

func NewSyncTargetClusterLister(indexer cache.Indexer) *syncTargetClusterLister

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

func NewSyncTargetLister(indexer cache.Indexer) *syncTargetScopedLister

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.

Jump to

Keyboard shortcuts

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