Documentation ¶
Index ¶
- Variables
- type AttrDeleteConfig
- type AttrFetchConfig
- type AttrUpdateConfig
- type TaskResourceAttrFileConfig
- func (t TaskResourceAttrFileConfig) Decorate() *admin.MatchingAttributes
- func (t TaskResourceAttrFileConfig) GetDomain() string
- func (t TaskResourceAttrFileConfig) GetProject() string
- func (t TaskResourceAttrFileConfig) GetWorkflow() string
- func (t *TaskResourceAttrFileConfig) UnDecorate(matchingAttribute *admin.MatchingAttributes)
Constants ¶
This section is empty.
Variables ¶
var DefaultDelConfig = &AttrDeleteConfig{}
var DefaultFetchConfig = &AttrFetchConfig{}
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."`
}
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."` }
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 TaskResourceAttrFileConfig ¶
type TaskResourceAttrFileConfig struct { Project string `json:"project"` Domain string `json:"domain"` Workflow string `json:"workflow,omitempty"` *admin.TaskResourceAttributes }
TaskResourceAttrFileConfig shadow Config for TaskResourceAttribute. 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 (TaskResourceAttrFileConfig) Decorate ¶
func (t TaskResourceAttrFileConfig) Decorate() *admin.MatchingAttributes
Decorate decorator over TaskResourceAttributes.
func (TaskResourceAttrFileConfig) GetDomain ¶
func (t TaskResourceAttrFileConfig) GetDomain() string
GetDomain from the TaskResourceAttrFileConfig
func (TaskResourceAttrFileConfig) GetProject ¶
func (t TaskResourceAttrFileConfig) GetProject() string
GetProject from the TaskResourceAttrFileConfig
func (TaskResourceAttrFileConfig) GetWorkflow ¶
func (t TaskResourceAttrFileConfig) GetWorkflow() string
GetWorkflow from the TaskResourceAttrFileConfig
func (*TaskResourceAttrFileConfig) UnDecorate ¶
func (t *TaskResourceAttrFileConfig) UnDecorate(matchingAttribute *admin.MatchingAttributes)
UnDecorate to uncover TaskResourceAttributes.