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 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 ¶
Click to show internal directories.
Click to hide internal directories.