package policy

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/policy"

Index

Types

type BearerTokenOptions

type BearerTokenOptions struct {
	// Scopes contains the list of permission scopes required for the token.
	Scopes []string
}

BearerTokenOptions configures the bearer token policy's behavior.

type RegistrationOptions

type RegistrationOptions struct {
	policy.ClientOptions

	// MaxAttempts is the total number of times to attempt automatic registration
	// in the event that an attempt fails.
	// The default value is 3.
	// Set to a value less than zero to disable the policy.
	MaxAttempts int

	// PollingDelay is the amount of time to sleep between polling intervals.
	// The default value is 15 seconds.
	// A value less than zero means no delay between polling intervals (not recommended).
	PollingDelay time.Duration

	// PollingDuration is the amount of time to wait before abandoning polling.
	// The default valule is 5 minutes.
	// NOTE: Setting this to a small value might cause the policy to prematurely fail.
	PollingDuration time.Duration
}

RegistrationOptions configures the registration policy's behavior. All zero-value fields will be initialized with their default values.

Source Files

policy.go

Version
v1.1.0
Published
Jun 3, 2022
Platform
linux/amd64
Imports
2 packages
Last checked
59 minutes ago

Tools for package owners.