multicluster

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 13 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 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 ...handler.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
mocks
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