azure

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetSubscriptions = getSubscriptionsOriginal

Functions

func AzInventoryCommand added in v1.10.0

func AzInventoryCommand(AzTenantID, AzSubscriptionID, AzOutputDirectory, Version string, AzVerbosity int, AzWrapTable bool, AzMergedTable bool) error

func AzRBACCommand added in v1.9.0

func AzRBACCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, AzVerbosity int, AzWrapTable bool, AzMergedTable bool) error

func AzStorageCommand added in v1.9.0

func AzStorageCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, AzVerbosity int, AzWrapTable bool, AzMergedTable bool) error

func AzVMsCommand added in v1.12.0

func AzVMsCommand(AzTenantID, AzSubscription, AzOutputFormat, AzOutputDirectory, Version string, AzVerbosity int, AzWrapTable bool, AzMergedTable bool) error

func AzWhoamiCommand added in v1.9.0

func AzWhoamiCommand(AzOutputDirectory, version string, AzWrapTable bool, AzVerbosity int, AzWhoamiListRGsAlso bool) error

func GetDefaultDomainFromTenantID added in v1.12.0

func GetDefaultDomainFromTenantID(tenantID string) (string, error)

func GetSubscriptionID added in v1.12.0

func GetSubscriptionID(subscription string) *string

function that takes the AzSubscription string and first checks to see if it is a valid subscription ID, and if not, checks to see if it is a valid subscription display name. It then returns the subscription ID

func GetSubscriptionIDFromName added in v1.12.0

func GetSubscriptionIDFromName(subscriptionName string) *string

func GetSubscriptionNameFromID added in v1.12.0

func GetSubscriptionNameFromID(subscriptionID string) *string

function that takes a subscription ID and returns the DisplayName of the subscription

func GetSubscriptionsPerTenantID added in v1.10.0

func GetSubscriptionsPerTenantID(tenantID string) []subscriptions.Subscription

func GetTenantIDPerSubscription added in v1.10.0

func GetTenantIDPerSubscription(subscriptionID string) *string

Types

type AzureADUsersTestFile added in v1.9.0

type AzureADUsersTestFile struct {
	AzureADUsers []graphrbac.User `json:"azureADUsers"`
}

type CloudFoxRBACclient added in v1.9.0

type CloudFoxRBACclient struct {
	AADUsers []graphrbac.User
	// contains filtered or unexported fields
}

func (*CloudFoxRBACclient) GetRelevantRBACData added in v1.9.0

func (c *CloudFoxRBACclient) GetRelevantRBACData(tenantID, subscriptionID string) ([]string, [][]string)

type ResourcesTestFile added in v1.9.0

type ResourcesTestFile struct {
	Tenants []struct {
		DisplayName   *string `json:"displayName"`
		TenantID      *string `json:"tenantId"`
		DefaultDomain *string `json:"defaultDomain,omitempty"`
		Subscriptions []struct {
			DisplayName    *string `json:"displayName"`
			SubscriptionId *string `json:"subscriptionId"`
			ResourceGroups []struct {
				Name     *string `json:"Name"`
				ID       *string `json:"id"`
				Location *string `json:"location"`
			} `json:"ResourceGroups"`
		} `json:"Subscriptions"`
	} `json:"Tenants"`
}

type RoleAssignmentRelevantData added in v1.9.0

type RoleAssignmentRelevantData struct {
	// contains filtered or unexported fields
}

type RoleAssignmentsTestFile added in v1.9.0

type RoleAssignmentsTestFile struct {
	RoleAssignments []authorization.RoleAssignment `json:"RoleAssignments"`
}

type RoleDefinitionTestFile added in v1.9.0

type RoleDefinitionTestFile struct {
	RoleDefinitions []authorization.RoleDefinition `json:"roleDefinitions"`
}

type SubsriptionInfo added in v1.12.0

type SubsriptionInfo struct {
	Subscription subscriptions.Subscription
	ID           string
	Name         string
}

func PopulateSubsriptionType added in v1.12.0

func PopulateSubsriptionType(subscription string) SubsriptionInfo

function that determines if AzSubsriptionType is a subscription ID or a subscription display name and returns the AzSubsriptionType struct with both populated

type TenantInfo added in v1.12.0

type TenantInfo struct {
	ID            *string
	DefaultDomain *string
	Subscriptions []SubsriptionInfo
}

Jump to

Keyboard shortcuts

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