Documentation ¶
Index ¶
- type Account
- type AzureCLI
- func (a AzureCLI) FindAccountsWithCloudName(name string) ([]Account, error)
- func (a AzureCLI) ListAccounts() ([]Account, error)
- func (a AzureCLI) ListClouds() ([]Cloud, error)
- func (a AzureCLI) ShowAccount(subscription string) (*Account, error)
- func (a AzureCLI) ShowCloud(name string) (*Cloud, error)
- type Cloud
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { CloudName string `json:"cloudName"` ID string `json:"id"` IsDefault bool `json:"isDefault"` Name string `json:"name"` State string `json:"state"` TenantId string `json:"tenantId"` HomeTenantId string `json:"homeTenantId"` }
Account contains details of an azure account (subscription).
func (*Account) AuthTenantId ¶
AuthTenantId returns the home tenant if set, else the tenant.
type AzureCLI ¶
type AzureCLI struct { // Exec is a function that executes system commands and returns // the output. If this is nil then a default implementation using // os.exec will be used. Exec func(cmd string, args []string) (stdout []byte, err error) }
AzureCLI
func (AzureCLI) FindAccountsWithCloudName ¶
FindAccountsWithCloudName returns the details for all accounts with the given cloud name..
func (AzureCLI) ListAccounts ¶
ListAccounts returns the details for all accounts available in the Azure CLI.
func (AzureCLI) ListClouds ¶
ListClouds returns the details for all clouds available in the Azure CLI.
func (AzureCLI) ShowAccount ¶
ShowAccount returns the account details for the account with the given subscription ID. If the subscription is empty then the default Azure CLI account is returned.
Click to show internal directories.
Click to hide internal directories.