subscription

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 5 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) (*AzureResourceReport, error)

type AzureResources

type AzureResources struct {
	Subscriptions []armsubscriptions.Subscription `json:"subscriptions" yaml:"subscriptions"`
}

AzureResources contains details about all Subscriptions.

Jump to

Keyboard shortcuts

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