subcommand

package
v0.5.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpTaskResourceAttr

func DumpTaskResourceAttr(matchableAttrConfig interface{}, fileName string) error

func ReadConfigFromFile

func ReadConfigFromFile(matchableAttrConfig interface{}, fileName string) error

ReadConfigFromFile used for unmarshaling the Config from a file which is used for update/delete

func String

func String(matchableAttrConfig interface{}) string

String Dumps the json representation of the TaskResourceAttrFileConfig

func WriteConfigToFile

func WriteConfigToFile(matchableAttrConfig interface{}, fileName string) error

WriteConfigToFile used for marshaling the Config to a file which can then be used for update/delete

Types

type MatchableAttributeDecorator

type MatchableAttributeDecorator interface {
	Decorate() *admin.MatchingAttributes
}

MatchableAttributeDecorator defines a decorator for any matchable attribute target.

type MatchableAttributeUnDecorator

type MatchableAttributeUnDecorator interface {
	UnDecorate(*admin.MatchingAttributes)
}

MatchableAttributeUnDecorator defines a undecorator to get the target.

type PDWGetterCommandLine

type PDWGetterCommandLine struct {
	Config *rootConfig.Config
	Args   []string
}

PDWGetterCommandLine implements the command line way of getting project domain and workflow

func (PDWGetterCommandLine) GetDomain

func (g PDWGetterCommandLine) GetDomain() string

GetDomain returns the cobra parsed Domain from the Config

func (PDWGetterCommandLine) GetProject

func (g PDWGetterCommandLine) GetProject() string

GetProject returns the cobra parsed Project from the Config

func (PDWGetterCommandLine) GetWorkflow

func (g PDWGetterCommandLine) GetWorkflow() string

GetWorkflow returns the first argument from the commandline

type ProjectDomainWorkflowGetter

type ProjectDomainWorkflowGetter interface {
	GetProject() string
	GetDomain() string
	GetWorkflow() string
}

ProjectDomainWorkflowGetter defines a interface for getting the project domain workflow.

Jump to

Keyboard shortcuts

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