subscription

package
v0.0.16 Latest Latest
Warning

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

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

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"`
}

Jump to

Keyboard shortcuts

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