Documentation
¶
Overview ¶
Package subscription provides functions and data structures to interact with Azure Subscriptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureResourceReport ¶
type AzureResourceReport struct { Resources AzureResources `json:"resources" yaml:"resources"` Errors []string `json:"errors" yaml:"errors"` }
AzureResourceReport contains the AzureResources and any non-fatal errors encountered during enumeration.
func EnumerateSubscriptions ¶
func EnumerateSubscriptions(ctx context.Context, cfg config.AzureConfig, specifiedClouds []cloud.Configuration) (*AzureResourceReport, error)
EnumerateSubscriptions enumerates all managed Subscriptions acrtoss a specified list of Azure Clouds (e.g. Public, Government), returning a report of the subscriptions and any non-fatal errors encountered.
type AzureResources ¶
type AzureResources struct { Subscriptions []Details `json:"subscriptions" yaml:"subscriptions"` TenantID string `json:"tenant_id" yaml:"tenant_id"` }
AzureResources contains details about all Subscriptions.
type Details ¶ added in v0.0.6
type Details struct { Details armsubscriptions.Subscription `json:"details" yaml:"details"` AuthorityHost string `json:"authority_host" yaml:"authority_host"` }
Click to show internal directories.
Click to hide internal directories.