flags

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalFlags

type GlobalFlags struct {
	Silent bool
	NoWarn bool
	Debug  bool

	Namespace   string
	KubeContext string
	Profile     string
	Vars        []string

	SwitchContext bool
}

GlobalFlags is the flags that contains the global flags

func SetGlobalFlags

func SetGlobalFlags(flags *flag.FlagSet) *GlobalFlags

SetGlobalFlags applies the global flags

func (*GlobalFlags) ToConfigOptions

func (gf *GlobalFlags) ToConfigOptions() *loader.ConfigOptions

ToConfigOptions converts the globalFlags into config options

func (*GlobalFlags) UseLastContext

func (gf *GlobalFlags) UseLastContext(generatedConfig *generated.Config, log log.Logger) error

UseLastContext uses the last context

Jump to

Keyboard shortcuts

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