kubeconfig

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	ClientCertificate string
	ClientKey         string
	Token             string
}

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) ReadUser

func (k *Kubeconfig) ReadUser(name string) (*api.AuthInfo, error)

func (*Kubeconfig) UpdateCurrentUserExecConfig

func (k *Kubeconfig) UpdateCurrentUserExecConfig(apiVersion, cmd string, args []string, envs map[string]string) error

func (*Kubeconfig) UpdateCurrentUserExecConfigDryRun

func (k *Kubeconfig) UpdateCurrentUserExecConfigDryRun(apiVersion, cmd string, args []string, envs map[string]string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL