Documentation
¶
Index ¶
- type Credential
- type Kubeconfig
- func (k *Kubeconfig) ReadCluster(name string) (*api.Cluster, error)
- func (k *Kubeconfig) ReadContext(name string) (*api.Context, error)
- func (k *Kubeconfig) ReadCurrentContext() (*api.Context, error)
- func (k *Kubeconfig) ReadCurrentUserExecVersion() (string, error)
- func (k *Kubeconfig) ReadUser(name string) (*api.AuthInfo, error)
- func (k *Kubeconfig) UpdateCurrentUserExecConfig(apiVersion, cmd string, args []string, envs map[string]string) error
- func (k *Kubeconfig) UpdateCurrentUserExecConfigDryRun(apiVersion, cmd string, args []string, envs map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Kubeconfig ¶
type Kubeconfig struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Kubeconfig
func (*Kubeconfig) ReadCluster ¶
func (k *Kubeconfig) ReadCluster(name string) (*api.Cluster, error)
func (*Kubeconfig) ReadContext ¶
func (k *Kubeconfig) ReadContext(name string) (*api.Context, error)
func (*Kubeconfig) ReadCurrentContext ¶
func (k *Kubeconfig) ReadCurrentContext() (*api.Context, error)
func (*Kubeconfig) ReadCurrentUserExecVersion ¶
func (k *Kubeconfig) ReadCurrentUserExecVersion() (string, error)
func (*Kubeconfig) UpdateCurrentUserExecConfig ¶
func (*Kubeconfig) UpdateCurrentUserExecConfigDryRun ¶
Click to show internal directories.
Click to hide internal directories.