Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventLister ¶
func NewEventLister(indexer cache.Indexer) listerseventsv1.EventLister
NewEventLister returns a new EventLister. 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 EventClusterLister ¶
type EventClusterLister interface {
// List lists all Events in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*eventsv1.Event, err error)
// Cluster returns a lister that can list and get Events in one workspace.
Cluster(clusterName logicalcluster.Name) listerseventsv1.EventLister
EventClusterListerExpansion
}
EventClusterLister helps list Events across all workspaces, or scope down to a EventLister for one workspace. All objects returned here must be treated as read-only.
func NewEventClusterLister ¶
func NewEventClusterLister(indexer cache.Indexer) EventClusterLister
NewEventClusterLister returns a new EventClusterLister. 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 EventClusterListerExpansion ¶
type EventClusterListerExpansion interface{}
EventClusterListerExpansion allows custom methods to be added to EventClusterLister.