clusters

package
v0.2.4-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultClient = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	Config() (*rest.Config, error)
}

func NewClusterFromConfig

func NewClusterFromConfig(config *rest.Config) (Cluster, error)

func NewClusterFromKubeconfig

func NewClusterFromKubeconfig(kubeconfig string, context string) Cluster

type Registry

type Registry interface {
	Register(string, Cluster) Registry
	Resolve(bool, ...string) (*rest.Config, client.Client, error)
}

func NewRegistry

func NewRegistry() Registry

func Register

func Register(registry Registry, basePath string, clusters map[string]v1alpha1.Cluster) Registry

Jump to

Keyboard shortcuts

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