Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Resource = &core.Resource{ Name: "config", Aliases: []string{"profile"}, DefaultCommandName: "edit", Category: core.ResourceCategoryConfig, IsGlobalResource: true, SkipLoadingProfile: true, }
Functions ¶
This section is empty.
Types ¶
type EditParameter ¶
type EditParameter struct { Name string `validate:"omitempty,profile_name"` AccessToken string `cli:"access-token,aliases=token"` AccessTokenSecret string `cli:"access-token-secret,aliases=secret"` Zone string `validate:"omitempty,zone"` DefaultOutputType string `validate:"omitempty,output_type"` NoColor bool Use bool }
func (*EditParameter) CleanupEmptyValue ¶
func (p *EditParameter) CleanupEmptyValue(fs *pflag.FlagSet)
func (*EditParameter) SetupCobraCommandFlags ¶
func (p *EditParameter) SetupCobraCommandFlags(cmd *cobra.Command)
type ProfileParameter ¶
type ProfileParameter struct {
Name string `validate:"omitempty,profile_name"`
}
func (*ProfileParameter) GetName ¶
func (p *ProfileParameter) GetName() string
func (*ProfileParameter) SetName ¶
func (p *ProfileParameter) SetName(n string)
Click to show internal directories.
Click to hide internal directories.