Documentation ¶
Index ¶
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."`
}
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 AttrFileConfig ¶
type AttrFileConfig struct { Project string `json:"project"` Domain string `json:"domain"` Workflow string `json:"workflow,omitempty"` *admin.ClusterResourceAttributes }
AttrFileConfig shadow Config for ClusterResourceAttributes. 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 (AttrFileConfig) Decorate ¶
func (c AttrFileConfig) Decorate() *admin.MatchingAttributes
Decorate decorator over ClusterResourceAttributes.
func (AttrFileConfig) GetDomain ¶
func (c AttrFileConfig) GetDomain() string
GetDomain from the AttrFileConfig
func (AttrFileConfig) GetProject ¶
func (c AttrFileConfig) GetProject() string
GetProject from the AttrFileConfig
func (AttrFileConfig) GetWorkflow ¶
func (c AttrFileConfig) GetWorkflow() string
GetWorkflow from the AttrFileConfig
func (*AttrFileConfig) UnDecorate ¶
func (c *AttrFileConfig) UnDecorate(matchingAttribute *admin.MatchingAttributes)
UnDecorate to uncover ClusterResourceAttributes.
type AttrUpdateConfig ¶
type AttrUpdateConfig struct {
AttrFile string `json:"attrFile" pflag:",attribute file name to be used for updating attribute for the resource type."`
}
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.