Documentation ¶
Overview ¶
Package awsauth implements AWS request signing using Signed Signature Version 2, Signed Signature Version 3, and Signed Signature Version 4. Supports S3 and STS.
Index ¶
- func Sign(request *http.Request, credentials ...Credentials) *http.Request
- func Sign2(request *http.Request, credentials ...Credentials) *http.Request
- func Sign3(request *http.Request, credentials ...Credentials) *http.Request
- func Sign4(request *http.Request, credentials ...Credentials) *http.Request
- func SignS3(request *http.Request, credentials ...Credentials) *http.Request
- func SignS3Url(request *http.Request, expire time.Time, credentials ...Credentials) *http.Request
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(request *http.Request, credentials ...Credentials) *http.Request
Sign signs a request bound for AWS. It automatically chooses the best authentication scheme based on the service the request is going to.
func Sign2 ¶
func Sign2(request *http.Request, credentials ...Credentials) *http.Request
Sign2 signs a request with Signed Signature Version 2. If the service you're accessing supports Version 4, use that instead.
func Sign3 ¶
func Sign3(request *http.Request, credentials ...Credentials) *http.Request
Sign3 signs a request with Signed Signature Version 3. If the service you're accessing supports Version 4, use that instead.
func Sign4 ¶
func Sign4(request *http.Request, credentials ...Credentials) *http.Request
Sign4 signs a request with Signed Signature Version 4.
func SignS3 ¶
func SignS3(request *http.Request, credentials ...Credentials) *http.Request
SignS3 signs a request bound for Amazon S3 using their custom HTTP authentication scheme.