multicluster

package
v0.13.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Deprecated: This package is no longer being maintained. Use https://github.com/solo-io/skv2 instead for multicluster functionality.

Deprecated: This package is no longer being maintained. Use https://github.com/solo-io/skv2 instead for multicluster functionality.

Deprecated: This package is no longer being maintained. Use https://github.com/solo-io/skv2 instead for multicluster functionality.

Index

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.

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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