Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeConfig ¶
type KubeConfig struct { Clusters []kcCluster `json:"clusters"` Users []kcUser `json:"users"` Contexts []kcContext `json:"contexts"` CurrentContext string `json:"current-context"` }
KubeConfig represents a kubeconfig object used to connect using a token
type KubeconfigBuilder ¶
type KubeconfigBuilder struct { ClusterName string Server string CertAuth string UserName string UserToken string ContextName string }
KubeconfigBuilder contains fields needed to build a KubeConfig object
func (*KubeconfigBuilder) Build ¶
func (b *KubeconfigBuilder) Build() KubeConfig
Build creates a KubeConfig object using the fields of the builder
Click to show internal directories.
Click to hide internal directories.