Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeConfig ¶
type KubeConfig struct { KubeConfigBase `yaml:",inline"` Users []userItem `yaml:"users"` }
func ParseKubeConfig ¶
func ParseKubeConfig(config string) (*KubeConfig, error)
type KubeConfigAAD ¶ added in v1.19.0
type KubeConfigAAD struct { KubeConfigBase `yaml:",inline"` Users []userItemAAD `yaml:"users"` }
func ParseKubeConfigAAD ¶ added in v1.19.0
func ParseKubeConfigAAD(config string) (*KubeConfigAAD, error)
type KubeConfigBase ¶ added in v1.19.0
type KubeConfigBase struct { APIVersion string `yaml:"apiVersion"` Clusters []clusterItem `yaml:"clusters"` Contexts []contextItem `yaml:"contexts,omitempty"` CurrentContext string `yaml:"current-context,omitempty"` Kind string `yaml:"kind,omitempty"` Preferences map[string]interface{} `yaml:"preferences,omitempty"` }
Click to show internal directories.
Click to hide internal directories.