flags

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvFlags added in v0.0.4

type EnvFlags struct {
	// contains filtered or unexported fields
}

EnvFlags surfaces all resolved flag values for the testing framework

func Parse

func Parse() (*EnvFlags, error)

Parse parses defined CLI args os.Args[1:]

func ParseArgs added in v0.0.4

func ParseArgs(args []string) (*EnvFlags, error)

ParseArgs parses the specified args from global flag.CommandLine and returns a set of environment flag values.

func (*EnvFlags) Assessment added in v0.0.4

func (f *EnvFlags) Assessment() string

Assessment returns value for `-assess` flag

func (*EnvFlags) Feature added in v0.0.4

func (f *EnvFlags) Feature() string

Feature returns value for `-feature` flag

func (*EnvFlags) Kubeconfig added in v0.0.4

func (f *EnvFlags) Kubeconfig() string

Kubeconfig returns an optional path for kubeconfig file

func (*EnvFlags) Labels added in v0.0.4

func (f *EnvFlags) Labels() LabelsMap

Labels returns a map of parsed key/value from `-labels` flag

func (*EnvFlags) Namespace added in v0.0.4

func (f *EnvFlags) Namespace() string

Namespace returns an optional namespace flag value

func (*EnvFlags) SkipAssessment added in v0.0.4

func (f *EnvFlags) SkipAssessment() string

func (*EnvFlags) SkipFeatures added in v0.0.4

func (f *EnvFlags) SkipFeatures() string

func (*EnvFlags) SkipLabels added in v0.0.4

func (f *EnvFlags) SkipLabels() LabelsMap

type LabelsMap

type LabelsMap map[string]string

func (LabelsMap) Set

func (m LabelsMap) Set(val string) error

func (LabelsMap) String

func (m LabelsMap) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳