launchplan

package
v0.8.22 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 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:","`
	Workflow string          `json:"workflow" pflag:",name of the workflow for which the launchplans need to be fetched."`
}

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 {
	Activate   bool   `json:"activate" pflag:",activate launchplan."`
	Archive    bool   `json:"archive" pflag:",(Deprecated) disable the launch plan schedule (if it has an active schedule associated with it)."`
	Deactivate bool   `json:"deactivate" pflag:",disable the launch plan schedule (if it has an active schedule associated with it)."`
	DryRun     bool   `json:"dryRun" pflag:",execute command without making any modifications."`
	Force      bool   `json:"force" pflag:",do not ask for an acknowledgement during updates."`
	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