multicluster

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LocalCluster = ""

empty ClusterId refers to local

Variables

This section is empty.

Functions

func WatchKubeConfigs

func WatchKubeConfigs(ctx context.Context, kube kubernetes.Interface, cache cache.KubeCoreCache) (<-chan v1.KubeConfigList, <-chan error, error)

Types

type ClusterHandler

type ClusterHandler interface {
	ClusterAdded(cluster string, restConfig *rest.Config)
	ClusterRemoved(cluster string, restConfig *rest.Config)
}

type KubeConfigWatcher

type KubeConfigWatcher interface {
	WatchKubeConfigs(ctx context.Context, kube kubernetes.Interface, cache cache.KubeCoreCache) (<-chan v1.KubeConfigList, <-chan error, error)
}

func NewKubeConfigWatcher

func NewKubeConfigWatcher() KubeConfigWatcher

type RestConfigHandler

type RestConfigHandler struct {
	// contains filtered or unexported fields
}

func NewRestConfigHandler

func NewRestConfigHandler(kcWatcher KubeConfigWatcher, handlers ...ClusterHandler) *RestConfigHandler

func (*RestConfigHandler) Run

func (h *RestConfigHandler) Run(ctx context.Context, local *rest.Config, kubeClient kubernetes.Interface, kubeCache cache.KubeCoreCache) (<-chan error, error)

type RestConfigs

type RestConfigs map[string]*rest.Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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