Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertInfo ¶
type CertInfo struct { ClientCertificateData string `json:"client-certificate-data"` ClientKeyData string `json:"client-key-data"` }
CertInfo holds the user certificate authentication data
type ClusterInfo ¶
type ClusterInfo struct { CertificateAuthorityData string `json:"certificate-authority-data"` ProxyURL string `json:"proxy-url,omitempty"` Server string `json:"server"` }
ClusterInfo holds the cluster data
type Clusters ¶
type Clusters []struct { Cluster ClusterInfo `json:"cluster"` Name string `json:"name"` }
Clusters hold an array of the clusters that would exist in the config file
type KubeConfig ¶
type KubeConfig struct { APIVersion string `json:"apiVersion"` Clusters Clusters `json:"clusters"` Contexts Contexts `json:"contexts"` CurrentContext string `json:"current-context"` Kind string `json:"kind"` Users Users `json:"users"` }
KubeConfig holds the necessary data for creating a new KubeConfig file
Click to show internal directories.
Click to hide internal directories.