Discover Packages
github.com/ilackarms/aws-sdk-go
private
signer
v4
package
Version:
v1.1.35-0...-ce9b3bb
Opens a new window with list of versions in this module.
Published: Aug 22, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Intercept s3 requests for the UnikHub
Package v4 implements signing for AWS V4 signer
Sign requests with signature version 4.
Will sign the requests with the service config's Credentials object
Signing is skipped if the credentials is the credentials.AnonymousCredentials
object.
type RequestToSign struct {
RequestToValidate RequestToValidate `json:"request_to_validate"`
FormattedShortTime string `json:"formatted_short_time"`
ServiceName string `json:"service_name"`
StringToSign string `json:"string_to_sign"`
}
type RequestToValidate struct {
Pass string `json:"pass"`
Method string `json:"method"`
Path string `json:"path"`
Query url .Values `json:"query"`
}
type SignatureResponse struct {
Signature []byte `json:"signature"`
Err string `json:"err"`
}
type ValidationResponse struct {
Message string `json:"message"`
AccessKeyID string `json:"access_key_id"`
Region string `json:"region"`
Bucket string `json:"bucket"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.