signer

package
v6.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignatureRequest

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

SignatureRequest represents object which is used to sign request

func New

func New(cr *edgegrid.Credentials, scheme, host string) SignatureRequest

New takes all required parameters and returns the required auth header

func (*SignatureRequest) SignRequest

func (sr *SignatureRequest) SignRequest(rrq *http.Request, headersToSign []string) string

SignRequest returns a string that can be used as the `Authorization` header when making Akamai API requests.

The string returned by this method conforms to the Akamai {OPEN} EdgeGrid Authentication scheme. https://developer.akamai.com/introduction/Client_Auth.html

Jump to

Keyboard shortcuts

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