auth

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderAuthorization     = "Authorization"
	HeaderContentLength     = "Content-Length"
	HeaderContentEncoding   = "Content-Encoding"
	HeaderContentLanguage   = "Content-Language"
	HeaderContentType       = "Content-Type"
	HeaderContentMD5        = "Content-MD5"
	HeaderIfModifiedSince   = "If-Modified-Since"
	HeaderIfMatch           = "If-Match"
	HeaderIfNoneMatch       = "If-None-Match"
	HeaderIfUnmodifiedSince = "If-Unmodified-Since"
	HeaderMSDate            = "X-Ms-Date"
	HeaderRange             = "Range"

	StorageEmulatorAccountName = "devstoreaccount1"
	StorageEmulatorAccountKey  = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
)

Functions

This section is empty.

Types

type SharedKeyLiteAuthorizer

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

SharedKeyLiteAuthorizer implements an authorization for Shared Key Lite this can be used for interaction with Blob, File and Queue Storage Endpoints

func NewSharedKeyLiteAuthorizer

func NewSharedKeyLiteAuthorizer(accountName, accountKey string) *SharedKeyLiteAuthorizer

NewSharedKeyLiteAuthorizer crates a SharedKeyLiteAuthorizer using the given credentials

func (*SharedKeyLiteAuthorizer) WithAuthorization

func (skl *SharedKeyLiteAuthorizer) WithAuthorization() autorest.PrepareDecorator

WithAuthorization returns a PrepareDecorator that adds an HTTP Authorization header whose value is "SharedKeyLite " followed by the computed key. This can be used for the Blob, Queue, and File Services

from: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key You may use Shared Key Lite authorization to authorize a request made against the 2009-09-19 version and later of the Blob and Queue services, and version 2014-02-14 and later of the File services.

type SharedKeyLiteTableAuthorizer

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

SharedKeyLiteTableAuthorizer implements an authorization for Shared Key Lite this can be used for interaction with Table Storage Endpoints

func NewSharedKeyLiteTableAuthorizer

func NewSharedKeyLiteTableAuthorizer(accountName, accountKey string) *SharedKeyLiteTableAuthorizer

NewSharedKeyLiteAuthorizer crates a SharedKeyLiteAuthorizer using the given credentials

func (*SharedKeyLiteTableAuthorizer) WithAuthorization

func (skl *SharedKeyLiteTableAuthorizer) WithAuthorization() autorest.PrepareDecorator

WithAuthorization returns a PrepareDecorator that adds an HTTP Authorization header whose value is "SharedKeyLite " followed by the computed key. This can be used for the Blob, Queue, and File Services

from: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key You may use Shared Key Lite authorization to authorize a request made against the 2009-09-19 version and later of the Blob and Queue services, and version 2014-02-14 and later of the File services.

Jump to

Keyboard shortcuts

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