common

package
v1.44.1-0...-c268a2f Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderCorrelationRequestID is the Azure extension header to set a user-specified correlation request ID.
	HeaderCorrelationRequestID = "x-ms-correlation-request-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiAuthorizerFunc

type ApiAuthorizerFunc func(api environments.Api) (auth.Authorizer, error)

type Authorizers

type Authorizers struct {
	BatchManagement auth.Authorizer
	KeyVault        auth.Authorizer
	ManagedHSM      auth.Authorizer
	ResourceManager auth.Authorizer
	Storage         auth.Authorizer
	Synapse         auth.Authorizer

	// Some data-plane APIs require a token scoped for a specific endpoint
	AuthorizerFunc ApiAuthorizerFunc
}

type ClientOptions

type ClientOptions struct {
	Authorizers *Authorizers
	AuthConfig  *auth.Credentials
	Environment environments.Environment
	Features    features.UserFeatures

	SubscriptionId   string
	TenantId         string
	PartnerId        string
	TerraformVersion string

	CustomCorrelationRequestID  string
	DisableCorrelationRequestID bool

	DisableTerraformPartnerID bool
	SkipProviderReg           bool
	StorageUseAzureAD         bool

	ResourceManagerEndpoint string

	// Legacy authorizers for go-autorest
	BatchManagementAuthorizer autorest.Authorizer
	KeyVaultAuthorizer        autorest.Authorizer
	ManagedHSMAuthorizer      autorest.Authorizer
	ResourceManagerAuthorizer autorest.Authorizer
	SynapseAuthorizer         autorest.Authorizer
}

func (ClientOptions) Configure

func (o ClientOptions) Configure(c client.BaseClient, authorizer auth.Authorizer)

Configure set up a resourcemanager.Client using an auth.Authorizer from hashicorp/go-azure-sdk

func (ClientOptions) ConfigureClient

func (o ClientOptions) ConfigureClient(c *autorest.Client, authorizer autorest.Authorizer)

ConfigureClient sets up an autorest.Client using an autorest.Authorizer

Jump to

Keyboard shortcuts

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