account

package
v1.78.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 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
	// TODO: deprecated field, will be deleted.
	Account string
	// TODO: remove it to replace it with the new API listZones.
	SosEndpoint string
	// Endpoint is optional.
	Endpoint string
	// Environment will be deprecated and removed,
	// once everything is egoscale v3 migrated.
	Environment         string
	Key                 string
	Secret              string
	SecretCommand       []string
	DefaultZone         string
	DefaultSSHKey       string
	DefaultTemplate     string
	DefaultOutputFormat string
	ClientTimeout       int
	CustomHeaders       map[string]string
}

func (Account) APISecret

func (a Account) APISecret() 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