Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEnvVar ¶
func WithEnvVar(key, value string) func()
WithEnvVar sets an env var temporarily. Call its return value in defer to restore original value in env (if exists).
Types ¶
type Context ¶
type Kubeconfig ¶
type Kubeconfig map[string]interface{}
func KC ¶
func KC() *Kubeconfig
func (*Kubeconfig) Set ¶
func (k *Kubeconfig) Set(key string, v interface{}) *Kubeconfig
func (*Kubeconfig) WithCtxs ¶
func (k *Kubeconfig) WithCtxs(c ...*Context) *Kubeconfig
func (*Kubeconfig) WithCurrentCtx ¶
func (k *Kubeconfig) WithCurrentCtx(s string) *Kubeconfig
Click to show internal directories.
Click to hide internal directories.