MCPcopy
hub / github.com/kubernetes/client-go / PathOptions

Struct PathOptions

tools/clientcmd/config.go:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47type PathOptions struct {
48 // GlobalFile is the full path to the file to load as the global (final) option
49 GlobalFile string
50 // EnvVar is the env var name that points to the list of kubeconfig files to load
51 EnvVar string
52 // ExplicitFileFlag is the name of the flag to use for prompting for the kubeconfig file
53 ExplicitFileFlag string
54
55 // GlobalFileSubpath is an optional value used for displaying help
56 GlobalFileSubpath string
57
58 LoadingRules *ClientConfigLoadingRules
59}
60
61func (o *PathOptions) GetEnvVarFiles() []string {
62 if len(o.EnvVar) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected