package
1.17.0
Repository: https://github.com/azure/azure-sdk-for-go.git
Documentation: pkg.go.dev

# Functions

DecodeByteArray will base-64 decode the provided string into v.
EncodeByteArray will base-64 encode the byte slice v.
HasStatusCode returns true if the Response's status code is one of the specified values.
KeyCredentialGet returns the key for cred.
NewKeyCredential creates a new instance of [KeyCredential] with the specified values.
NewPipeline creates a new Pipeline object from the specified Policies.
NewRequest creates a new Request with the specified input.
NewRequestFromRequest creates a new policy.Request with an existing *http.Request Exported as runtime.NewRequestFromRequest().
NewResponseError creates a new *ResponseError from the provided HTTP response.
NewResponseErrorWithErrorCode creates an *azcore.ResponseError from the provided HTTP response and errorCode.
NewSASCredential creates a new instance of [SASCredential] with the specified values.
NopCloser returns a ReadSeekCloser with a no-op close method wrapping the provided io.ReadSeeker.
SASCredentialGet returns the shared access sig for cred.
SetBody sets the specified ReadSeekCloser as the HTTP request body, and sets Content-Type and Content-Length accordingly.

# Constants

Base64StdFormat uses base64.StdEncoding for encoding and decoding payloads.
Base64URLFormat uses base64.RawURLEncoding for encoding and decoding payloads.

# Structs

AccessToken represents an Azure service bearer access token with expiry information.
KeyCredential contains an authentication key used to authenticate to an Azure service.
Pipeline represents a primitive for sending HTTP requests and receiving responses.
Request is an abstraction over the creation of an HTTP request as it passes through the pipeline.
ResponseError is returned when a request is made to a service and the service returns a non-success HTTP status code.
SASCredential contains a shared access signature used to authenticate to an Azure service.
TokenRequestOptions contain specific parameter that may be used by credentials types when attempting to get a token.

# Interfaces

Policy represents an extensibility point for the Pipeline that can mutate the specified Request and react to the received Response.
TokenCredential represents a credential capable of providing an OAuth token.
Transporter represents an HTTP pipeline transport used to send HTTP requests and receive responses.

# Type aliases

Base64Encoding is usesd to specify which base-64 encoder/decoder to use when encoding/decoding a slice of bytes to/from a string.
PolicyFunc is a type that implements the Policy interface.