kubeconfig

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfg               *api.Config
	KubeconfigPath, _ = GetConfigPath()
)

Functions

func Construct added in v0.4.0

func Construct(ctx string, cfg *api.Config) (*api.Config, error)

func ContextExists added in v0.4.0

func ContextExists(ctx string, cfg *api.Config) error

func Contexts added in v0.4.0

func Contexts(cfg *api.Config) []string

func CurrentContext added in v0.4.0

func CurrentContext(cfg *api.Config) string

func Export

func Export(ctx string, cfg *api.Config)

func GetConfigPath added in v0.4.0

func GetConfigPath() (string, error)

func Load

func Load(kubeConfigPath string) *api.Config

func Merge added in v0.4.0

func Merge(importCfg *api.Config, cfg *api.Config) error

func Save

func Save(path string, cfg *api.Config)

func SortedContexts added in v0.4.0

func SortedContexts(contexts []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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