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
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.
Click to show internal directories.
Click to hide internal directories.