account

package
v1.70.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GAllAccount    *Config
	CurrentAccount *Account
)

Functions

This section is empty.

Types

type Account

type Account struct {
	Name                 string
	Account              string
	Endpoint             string
	ComputeEndpoint      string // legacy config.
	DNSEndpoint          string
	SosEndpoint          string
	RunstatusEndpoint    string
	Environment          string
	Key                  string
	Secret               string
	SecretCommand        []string
	DefaultZone          string
	DefaultSSHKey        string
	DefaultTemplate      string
	DefaultRunstatusPage string
	DefaultOutputFormat  string
	ClientTimeout        int
	CustomHeaders        map[string]string
}

func (Account) APISecret

func (a Account) APISecret() string

func (Account) GetName added in v1.70.0

func (a Account) GetName(ctx context.Context) string

func (Account) IsDefault

func (a Account) IsDefault() bool

type Config added in v1.70.0

type Config struct {
	DefaultAccount      string
	DefaultOutputFormat string
	Accounts            []Account
}

Jump to

Keyboard shortcuts

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