kubeconfig

package
v0.0.0-...-0bd52b4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfAlreadyExists = errors.New("config already exists")
View Source
var ErrConfigInUse = errors.New("config in use")

Functions

func GetCurrentConfig

func GetCurrentConfig() (string, error)

func ImportConfig

func ImportConfig(options ...ImportOption) (err error)

func InitRegistry

func InitRegistry() error

func ListConfigs

func ListConfigs() ([]string, error)

func RemoveConfig

func RemoveConfig(name string, force bool) error

func UseConfig

func UseConfig(name string, options UseOptions) error

Types

type ImportOption

type ImportOption func(i *importOptions)

func ImportOptionWithForce

func ImportOptionWithForce(force bool) ImportOption

func ImportOptionWithHost

func ImportOptionWithHost(host string) ImportOption

func ImportOptionWithName

func ImportOptionWithName(name string) ImportOption

func ImportOptionWithPath

func ImportOptionWithPath(path string) ImportOption

func ImportOptionWithSSH

func ImportOptionWithSSH(ssh SSHConfig) ImportOption

type SSHConfig

type SSHConfig struct {
	URL          string
	IdentityFile string
	ConfigFile   string
	JumpHost     string
	Sudo         bool
}

type UseOptions

type UseOptions struct {
	Context   string
	Namespace string
	Cluster   string
	User      string
}

Jump to

Keyboard shortcuts

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