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 NewLocationClusterLister

func NewLocationClusterLister(indexer cache.Indexer) *locationClusterLister

NewLocationClusterLister returns a new LocationClusterLister. 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 NewLocationLister

func NewLocationLister(indexer cache.Indexer) *locationScopedLister

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

func NewPlacementClusterLister

func NewPlacementClusterLister(indexer cache.Indexer) *placementClusterLister

NewPlacementClusterLister returns a new PlacementClusterLister. 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 NewPlacementLister

func NewPlacementLister(indexer cache.Indexer) *placementScopedLister

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

Types

type LocationClusterLister

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

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

type LocationClusterListerExpansion

type LocationClusterListerExpansion interface{}

LocationClusterListerExpansion allows custom methods to be added to LocationClusterLister.

type LocationLister

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

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

type LocationListerExpansion

type LocationListerExpansion interface{}

LocationListerExpansion allows custom methods to be added to LocationLister.

type PlacementClusterLister

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

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

type PlacementClusterListerExpansion

type PlacementClusterListerExpansion interface{}

PlacementClusterListerExpansion allows custom methods to be added to PlacementClusterLister.

type PlacementLister

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

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

type PlacementListerExpansion

type PlacementListerExpansion interface{}

PlacementListerExpansion allows custom methods to be added to PlacementLister.

Jump to

Keyboard shortcuts

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