execution

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Config

type Config struct {
	Filter  filters.Filters `json:"filter" pflag:","`
	Details bool            `` /* 127-byte string literal not displayed */
	NodeID  string          `json:"nodeID" pflag:",get task executions for given node name."`
}

Config stores the flags required by get execution

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 ExecDeleteConfig

type ExecDeleteConfig struct {
	DryRun bool `json:"dryRun" pflag:",execute command without making any modifications."`
}

ExecutionDeleteConfig stores the flags required by delete execution

func (ExecDeleteConfig) GetPFlagSet

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

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

type UpdateConfig

type UpdateConfig struct {
	Archive  bool `json:"archive" pflag:",archive execution."`
	Activate bool `json:"activate" pflag:",activate execution."`
	DryRun   bool `json:"dryRun" pflag:",execute command without making any modifications."`
	Force    bool `json:"force" pflag:",do not ask for an acknowledgement during updates."`
}

UpdateConfig

func (UpdateConfig) GetPFlagSet

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