k8s

package
v0.0.0-...-60a31f3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantFindConfigFile = errors.New("can not find config file")

ErrCantFindConfigFile is returned when given config file can't be found.

Functions

This section is empty.

Types

type Params

type Params struct {
	KubeCfgPath string
	KubeContext string
	KubeCluster string
	KubeAsUser  string
	KubeAsUID   string
	KubeAsGroup []string
}

Params contain Kubernetes specific params, that CLI should comply to.

func (*Params) GetClientConfig

func (kp *Params) GetClientConfig() (clientcmd.ClientConfig, error)

GetClientConfig gets ClientConfig from Kube' configuration params.

func (*Params) SetFlags

func (kp *Params) SetFlags(flags *pflag.FlagSet)

SetFlags is used set flags to the given flagset.

Jump to

Keyboard shortcuts

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