Documentation ¶
Index ¶
- Variables
- func NewAggregatedWatchClusterClientHandler(aggregator wrapper.WatchAggregator) *clusterWatchAggregator
- func NewClusterClientManager(ctx context.Context, clientFactory factory.ClusterClientFactory, ...) *clusterClientManager
- func NewMultiClusterResourceClient(resourceType resources.Resource, clientSet ClusterClientGetter) *multiClusterResourceClient
- type ClientForClusterHandler
- type ClusterClientGetter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoClientForClusterError = func(kind, cluster string) error { return errors.Errorf("%v client does not exist for %v", kind, cluster) } )
Functions ¶
func NewAggregatedWatchClusterClientHandler ¶ added in v0.11.6
func NewAggregatedWatchClusterClientHandler(aggregator wrapper.WatchAggregator) *clusterWatchAggregator
Provides a ClientForClusterHandler to sync an aggregated watch with clients available on a cluster.
func NewClusterClientManager ¶ added in v0.11.6
func NewClusterClientManager(ctx context.Context, clientFactory factory.ClusterClientFactory, handlers ...ClientForClusterHandler) *clusterClientManager
func NewMultiClusterResourceClient ¶ added in v0.11.6
func NewMultiClusterResourceClient(resourceType resources.Resource, clientSet ClusterClientGetter) *multiClusterResourceClient
Types ¶
type ClientForClusterHandler ¶ added in v0.11.6
type ClientForClusterHandler interface { HandleNewClusterClient(cluster string, client clients.ResourceClient) HandleRemovedClusterClient(cluster string, client clients.ResourceClient) }
Allows objects to register callbacks with a ClusterClientGetter.
type ClusterClientGetter ¶ added in v0.11.6
type ClusterClientGetter interface { // Returns a client for the given cluster if one exists. ClientForCluster(cluster string) (client clients.ResourceClient, found bool) }
Stores clients for clusters as they are discovered by a config watcher. Implementation in this package allows registration of ClusterClientHandlers.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.