workflowexecutionconfig

package
v0.8.21 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDelConfig = &AttrDeleteConfig{}
View Source
var DefaultFetchConfig = &AttrFetchConfig{}
View Source
var DefaultUpdateConfig = &AttrUpdateConfig{}

Functions

This section is empty.

Types

type AttrDeleteConfig

type AttrDeleteConfig struct {
	AttrFile string `json:"attrFile" pflag:",attribute file name to be used for delete attribute for the resource type."`
	DryRun   bool   `json:"dryRun" pflag:",execute command without making any modifications."`
}

AttrDeleteConfig Matchable resource attributes configuration passed from command line

func (AttrDeleteConfig) GetPFlagSet

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

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

type AttrFetchConfig

type AttrFetchConfig struct {
	AttrFile string `json:"attrFile" pflag:",attribute file name to be used for generating attribute for the resource type."`
	Gen      bool   `json:"gen" pflag:",generates an empty workflow execution config file with conformance to the api format."`
}

func (AttrFetchConfig) GetPFlagSet

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

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

type AttrUpdateConfig

type AttrUpdateConfig struct {
	AttrFile string `json:"attrFile" pflag:",attribute file name to be used for updating attribute for the resource type."`
	DryRun   bool   `json:"dryRun" pflag:",execute command without making any modifications."`
	Force    bool   `json:"force" pflag:",do not ask for an acknowledgement during updates."`
}

AttrUpdateConfig Matchable resource attributes configuration passed from command line

func (AttrUpdateConfig) GetPFlagSet

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

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

type FileConfig

type FileConfig struct {
	Project  string `json:"project"`
	Domain   string `json:"domain"`
	Workflow string `json:"workflow,omitempty"`
	*admin.WorkflowExecutionConfig
}

FileConfig shadow Config for WorkflowExecutionConfig. The shadow Config is not using ProjectDomainAttribute/Workflowattribute directly inorder to simplify the inputs. As the same structure is being used for both ProjectDomainAttribute/Workflowattribute

func (FileConfig) Decorate

func (t FileConfig) Decorate() *admin.MatchingAttributes

Decorate decorator over WorkflowExecutionConfig.

func (FileConfig) GetDomain

func (t FileConfig) GetDomain() string

GetDomain from the WorkflowExecutionConfig

func (FileConfig) GetProject

func (t FileConfig) GetProject() string

GetProject from the WorkflowExecutionConfig

func (FileConfig) GetWorkflow

func (t FileConfig) GetWorkflow() string

GetWorkflow from the WorkflowExecutionConfig

func (*FileConfig) UnDecorate

func (t *FileConfig) UnDecorate(matchingAttribute *admin.MatchingAttributes)

UnDecorate to uncover WorkflowExecutionConfig.

Jump to

Keyboard shortcuts

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