Documentation ¶
Index ¶
- func DumpTaskResourceAttr(matchableAttrConfig interface{}, fileName string) error
- func ReadConfigFromFile(matchableAttrConfig interface{}, fileName string) error
- func String(matchableAttrConfig interface{}) string
- func WriteConfigToFile(matchableAttrConfig interface{}, fileName string) error
- type MatchableAttributeDecorator
- type MatchableAttributeUnDecorator
- type PDWGetterCommandLine
- type ProjectDomainWorkflowGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpTaskResourceAttr ¶
func ReadConfigFromFile ¶
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 ¶
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.