Documentation
¶
Index ¶
- func NewLocationClusterLister(indexer cache.Indexer) *locationClusterLister
- func NewLocationLister(indexer cache.Indexer) *locationScopedLister
- func NewPlacementClusterLister(indexer cache.Indexer) *placementClusterLister
- func NewPlacementLister(indexer cache.Indexer) *placementScopedLister
- type LocationClusterLister
- type LocationClusterListerExpansion
- type LocationLister
- type LocationListerExpansion
- type PlacementClusterLister
- type PlacementClusterListerExpansion
- type PlacementLister
- type PlacementListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocationClusterLister ¶
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 ¶
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 ¶
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 ¶
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.