account

package
v1.69.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GAllAccount    *AccountConfig
	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) AccountName

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

func (Account) IsDefault

func (a Account) IsDefault() bool

type AccountConfig

type AccountConfig 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