clusters

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 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
	Lookup(string) Cluster
	Build(Cluster) (*rest.Config, client.Client, error)
}

func NewRegistry

func NewRegistry(f clientFactory) Registry

Jump to

Keyboard shortcuts

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