Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpointSliceLister ¶
func NewEndpointSliceLister(indexer cache.Indexer) listersdiscoveryv1.EndpointSliceLister
NewEndpointSliceLister returns a new EndpointSliceLister. 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 - has the kcpcache.ClusterAndNamespaceIndex as an index
Types ¶
type EndpointSliceClusterLister ¶
type EndpointSliceClusterLister interface {
// List lists all EndpointSlices in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*discoveryv1.EndpointSlice, err error)
// Cluster returns a lister that can list and get EndpointSlices in one workspace.
Cluster(clusterName logicalcluster.Name) listersdiscoveryv1.EndpointSliceLister
EndpointSliceClusterListerExpansion
}
EndpointSliceClusterLister helps list EndpointSlices across all workspaces, or scope down to a EndpointSliceLister for one workspace. All objects returned here must be treated as read-only.
func NewEndpointSliceClusterLister ¶
func NewEndpointSliceClusterLister(indexer cache.Indexer) EndpointSliceClusterLister
NewEndpointSliceClusterLister returns a new EndpointSliceClusterLister. 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 - has the kcpcache.ClusterAndNamespaceIndex as an index
type EndpointSliceClusterListerExpansion ¶
type EndpointSliceClusterListerExpansion interface{}
EndpointSliceClusterListerExpansion allows custom methods to be added to EndpointSliceClusterLister.