konfig

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNSList added in v0.0.5

func GetNSList(currentKonfigFile string) ([]string, error)

func Load

func Load(path string, homeDir string) (*kubeClientConfig.Config, error)

func SaveContextFile added in v0.0.8

func SaveContextFile(fileName string, fileData []byte, force bool) error

Types

type Konfig added in v1.2.0

type Konfig struct {
	FileID   string
	FilePath string
	Content  *kubeClientConfig.Config
}

func (*Konfig) Generate added in v1.2.0

func (k *Konfig) Generate(contextName string, contextsPath string) (string, []byte, error)

Jump to

Keyboard shortcuts

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