package runtime

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

Index

Constants

const (
	// LogRPRegistration entries contain information specific to the automatic registration of an RP.
	// Entries of this classification are written IFF the policy needs to take any action.
	LogRPRegistration log.Event = "RPRegistration"
)

Functions

func NewPipeline

func NewPipeline(module, version string, cred azcore.TokenCredential, plOpts azruntime.PipelineOptions, options *armpolicy.ClientOptions) (azruntime.Pipeline, error)

NewPipeline creates a pipeline from connection options. Policies from ClientOptions are placed after policies from PipelineOptions. The telemetry policy, when enabled, will use the specified module and version info.

func NewRPRegistrationPolicy

func NewRPRegistrationPolicy(cred azcore.TokenCredential, o *armpolicy.RegistrationOptions) (azpolicy.Policy, error)

NewRPRegistrationPolicy creates a policy object configured using the specified options. The policy controls whether an unregistered resource provider should automatically be registered. See https://aka.ms/rps-not-found for more information.

Types

type BearerTokenPolicy

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

BearerTokenPolicy authorizes requests with bearer tokens acquired from a TokenCredential.

func NewBearerTokenPolicy

func NewBearerTokenPolicy(cred azcore.TokenCredential, opts *armpolicy.BearerTokenOptions) *BearerTokenPolicy

NewBearerTokenPolicy creates a policy object that authorizes requests with bearer tokens. cred: an azcore.TokenCredential implementation such as a credential object from azidentity opts: optional settings. Pass nil to accept default values; this is the same as passing a zero-value options.

func (*BearerTokenPolicy) Do

Do authorizes a request with a bearer token

Source Files

pipeline.go policy_bearer_token.go policy_register_rp.go policy_trace_namespace.go runtime.go

Version
v1.18.0 (latest)
Published
Apr 3, 2025
Platform
windows/amd64
Imports
19 packages
Last checked
16 hours ago

Tools for package owners.