common

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MPL-2.0 Imports: 12 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

func CorrelationRequestID

func CorrelationRequestID() string

CorrelationRequestID generates an UUID to pass through `x-ms-correlation-request-id` header. todo 2.0 change to correlationRequestID

func WithCorrelationRequestID

func WithCorrelationRequestID(uuid string) autorest.PrepareDecorator

WithCorrelationRequestID returns a PrepareDecorator that adds an HTTP extension header of `x-ms-correlation-request-id` whose value is passed, undecorated UUID (e.g.,7F5A6223-F475-4A9C-B9D5-12575AA6B11B`). todo 2.0 change to withCorrelationRequestID

Types

type ClientOptions

type ClientOptions struct {
	SubscriptionId   string
	TenantID         string
	PartnerId        string
	TerraformVersion string

	GraphAuthorizer           autorest.Authorizer
	GraphEndpoint             string
	KeyVaultAuthorizer        autorest.Authorizer
	ResourceManagerAuthorizer autorest.Authorizer
	ResourceManagerEndpoint   string
	StorageAuthorizer         autorest.Authorizer

	PollingDuration             time.Duration
	SkipProviderReg             bool
	DisableCorrelationRequestID bool
	Environment                 azure.Environment
}

func (ClientOptions) ConfigureClient

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

Jump to

Keyboard shortcuts

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