v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublishedResourceClusterLister

func NewPublishedResourceClusterLister(indexer cache.Indexer) *publishedResourceClusterLister

NewPublishedResourceClusterLister returns a new PublishedResourceClusterLister. 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 NewPublishedResourceLister

func NewPublishedResourceLister(indexer cache.Indexer) *publishedResourceScopedLister

NewPublishedResourceLister returns a new PublishedResourceLister. We assume that the indexer: - is fed by a workspace-scoped LIST+WATCH - uses cache.MetaNamespaceKeyFunc as the key function

Types

type PublishedResourceClusterLister

type PublishedResourceClusterLister interface {
	// List lists all PublishedResources in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*syncagentv1alpha1.PublishedResource, err error)
	// Cluster returns a lister that can list and get PublishedResources in one workspace.
	Cluster(clusterName logicalcluster.Name) PublishedResourceLister
	PublishedResourceClusterListerExpansion
}

PublishedResourceClusterLister can list PublishedResources across all workspaces, or scope down to a PublishedResourceLister for one workspace. All objects returned here must be treated as read-only.

type PublishedResourceClusterListerExpansion

type PublishedResourceClusterListerExpansion interface{}

PublishedResourceClusterListerExpansion allows custom methods to be added to PublishedResourceClusterLister.

type PublishedResourceLister

type PublishedResourceLister interface {
	// List lists all PublishedResources in the workspace.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*syncagentv1alpha1.PublishedResource, err error)
	// Get retrieves the PublishedResource from the indexer for a given workspace and name.
	// Objects returned here must be treated as read-only.
	Get(name string) (*syncagentv1alpha1.PublishedResource, error)
	PublishedResourceListerExpansion
}

PublishedResourceLister can list all PublishedResources, or get one in particular. All objects returned here must be treated as read-only.

type PublishedResourceListerExpansion

type PublishedResourceListerExpansion interface{}

PublishedResourceListerExpansion allows custom methods to be added to PublishedResourceLister.

Jump to

Keyboard shortcuts

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