environment

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvSettings

type EnvSettings struct {
	// KubeContext is the name of the kube context.
	KubeContext string
	// KubeConfig is the name of the kubeconfig file.
	KubeConfig string
}

EnvSettings describes all of the environment settings.

func (*EnvSettings) AddFlags added in v1.0.0

func (s *EnvSettings) AddFlags(fs *pflag.FlagSet)

AddFlags binds flags to the given flagset.

func (*EnvSettings) Init added in v1.0.0

func (s *EnvSettings) Init()

Init sets values from the environment if they aren't set explicitly.

Jump to

Keyboard shortcuts

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