auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConnectionString

func ParseConnectionString(connectionString string) (string, string, []byte, error)

ParseConnectionString parses the provided connection string. Returns endpoint, cred, secret or an error.

Types

type HMACPolicy

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

HMACPolicy is a pipeline policy that implements HMAC authentication. https://learn.microsoft.com/en-us/azure/azure-app-configuration/rest-api-authentication-hmac

func NewHMACPolicy

func NewHMACPolicy(credential string, secret []byte) *HMACPolicy

NewHMACPolicy creates a new instance of HMACPolicy.

func (*HMACPolicy) Do

func (policy *HMACPolicy) Do(request *policy.Request) (*http.Response, error)

Do implements the policy.Policy interface on the HMACPolicy type.

Jump to

Keyboard shortcuts

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