kubecfg

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPatch

func ApplyPatch(patch *KubeConfigPatch, config *api.Config, purge bool)

func LoadDefault

func LoadDefault() (*api.Config, error)

func LoadFromFile

func LoadFromFile(filename string) (*api.Config, error)

func Write

func Write(config *api.Config) error

Types

type KubeConfigPatch

type KubeConfigPatch struct {
	Clusters []*v1.NamedCluster
	Users    []*v1.NamedAuthInfo
	Contexts []*v1.NamedContext
}

Jump to

Keyboard shortcuts

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