Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Name string `yaml:"name"` Cluster ClusterData `yaml:"cluster"` }
type ClusterData ¶
type Context ¶
type Context struct { Name string `yaml:"name"` Context ContextData `yaml:"context"` }
type ContextData ¶
type KubeConfig ¶
type KubeConfig struct { APIVersion string `yaml:"apiVersion"` Clusters []Cluster `yaml:"clusters"` Contexts []Context `yaml:"contexts"` CurrentContext string `yaml:"current-context"` Kind string `yaml:"kind"` Preferences interface{} `yaml:"preferences"` Users []User `yaml:"users"` }
func Read ¶
func Read(path, cluster string) (*KubeConfig, error)
func (*KubeConfig) Write ¶
func (t *KubeConfig) Write(dirname string) error
Click to show internal directories.
Click to hide internal directories.