azureclient

package
v0.0.0-...-0a3f022 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PublicCloud contains additional ARO information for the public Azure cloud environment.
	PublicCloud = AROEnvironment{
		Environment:              azure.PublicCloud,
		ActualCloudName:          "AzureCloud",
		GenevaMonitoringEndpoint: "https://gcs.prod.monitoring.core.windows.net/",
		AppSuffix:                "aro.azure.com",

		ResourceManagerScope:      azure.PublicCloud.ResourceManagerEndpoint + "/.default",
		KeyVaultScope:             azure.PublicCloud.ResourceIdentifiers.KeyVault + "/.default",
		ActiveDirectoryGraphScope: azure.PublicCloud.GraphEndpoint + "/.default",
	}

	// USGovernmentCloud contains additional ARO information for the US Gov cloud environment.
	USGovernmentCloud = AROEnvironment{
		Environment:              azure.USGovernmentCloud,
		ActualCloudName:          "AzureUSGovernment",
		GenevaMonitoringEndpoint: "https://gcs.monitoring.core.usgovcloudapi.net/",
		AppSuffix:                "aro.azure.us",

		ResourceManagerScope:      azure.USGovernmentCloud.ResourceManagerEndpoint + "/.default",
		KeyVaultScope:             azure.USGovernmentCloud.ResourceIdentifiers.KeyVault + "/.default",
		ActiveDirectoryGraphScope: azure.USGovernmentCloud.GraphEndpoint + "/.default",
	}
)

Functions

func APIVersion

func APIVersion(typ string) string

APIVersion gets the APIVersion from a full resource type

Types

type AROEnvironment

type AROEnvironment struct {
	azure.Environment
	ActualCloudName          string
	GenevaMonitoringEndpoint string
	AppSuffix                string

	Cloud cloud.Configuration
	// Microsoft identity platform scopes used by ARO
	// See https://learn.microsoft.com/EN-US/azure/active-directory/develop/scopes-oidc#the-default-scope
	ResourceManagerScope      string
	KeyVaultScope             string
	ActiveDirectoryGraphScope string
}

AROEnvironment contains additional, cloud-specific information needed by ARO.

func EnvironmentFromName

func EnvironmentFromName(name string) (AROEnvironment, error)

EnvironmentFromName returns the AROEnvironment corresponding to the common name specified.

func (*AROEnvironment) ClientCertificateCredentialOptions

func (e *AROEnvironment) ClientCertificateCredentialOptions() *azidentity.ClientCertificateCredentialOptions

func (*AROEnvironment) ClientSecretCredentialOptions

func (e *AROEnvironment) ClientSecretCredentialOptions() *azidentity.ClientSecretCredentialOptions

func (*AROEnvironment) EnvironmentCredentialOptions

func (e *AROEnvironment) EnvironmentCredentialOptions() *azidentity.EnvironmentCredentialOptions

func (*AROEnvironment) ManagedIdentityCredentialOptions

func (e *AROEnvironment) ManagedIdentityCredentialOptions() *azidentity.ManagedIdentityCredentialOptions

type LoggingSender

type LoggingSender struct {
	autorest.Sender
}

LoggingSender intercepts requests and logs them out. Usage: client.Sender = &LoggingSender{client.Sender}

func (*LoggingSender) Do

func (ls *LoggingSender) Do(req *http.Request) (*http.Response, error)

Directories

Path Synopsis
mgmt

Jump to

Keyboard shortcuts

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