launchplan

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{
		Filter: filters.DefaultFilter,
	}
)
View Source
var (
	UConfig = &UpdateConfig{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ExecFile string          `json:"execFile" pflag:",execution file name to be used for generating execution spec of a single launchplan."`
	Version  string          `json:"version" pflag:",version of the launchplan to be fetched."`
	Latest   bool            `json:"latest" pflag:", flag to indicate to fetch the latest version, version flag will be ignored in this case"`
	Filter   filters.Filters `json:"filter" pflag:","`
}

Config

func (Config) GetPFlagSet

func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the flags is json-name.json-sub-name... etc.

type UpdateConfig added in v0.2.39

type UpdateConfig struct {
	Archive  bool   `json:"archive" pflag:",archive launchplan."`
	Activate bool   `json:"activate" pflag:",activate launchplan."`
	DryRun   bool   `json:"dryRun" pflag:",execute command without making any modifications."`
	Version  string `json:"version" pflag:",version of the launchplan to be fetched."`
}

Config

func (UpdateConfig) GetPFlagSet added in v0.2.39

func (cfg UpdateConfig) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in UpdateConfig and its nested types. The format of the flags is json-name.json-sub-name... etc.

Jump to

Keyboard shortcuts

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