config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resource = &core.Resource{
	Name:               "config",
	Usage:              "Management commands for Configuration file/Profile",
	Aliases:            []string{"profile"},
	DefaultCommandName: "edit",
	Category:           category.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)

Jump to

Keyboard shortcuts

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