signv4

package
v0.0.0-...-45d5e29 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredential

func GetCredential(accessKeyID, location string, t time.Time) string

GetCredential generate a credential string.

func PostPresignSignatureV4

func PostPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string

PostPresignSignatureV4 - presigned signature for PostPolicy requests.

func PreSignV4

func PreSignV4(req http.Request, accessKeyID, secretAccessKey, location string, expires int64) *http.Request

PreSignV4 presign the request, in accordance with http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html.

func SignV4

func SignV4(req http.Request, accessKeyID, secretAccessKey, location string) *http.Request

SignV4 sign the request before Do(), in accordance with http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html.

Types

This section is empty.

Jump to

Keyboard shortcuts

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