Documentation ¶
Overview ¶
Package kubeconfig provides the ability to create, read, and manage the kubeconfig file/bytes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeConfig ¶
KubeConfig contains a bytearray representing the kubeconfig and a path to a file in which this kubeconfig is written. It makes sure that this path is only written to once and read from as little as possible.
func FromBytes ¶
func FromBytes(bytes []byte, path string, forceWrite bool) (*KubeConfig, error)
FromBytes creates a kubeConfig struct from byte array and writes it to the given path if the file doesn't exist.
func FromPath ¶
func FromPath(path string) (*KubeConfig, error)
FromPath Loads a KubeConfig from a file path.
Click to show internal directories.
Click to hide internal directories.