Documentation ¶
Index ¶
- func GetCredential(accessKeyID, location string, t time.Time) string
- func PostPresignSignatureV2(policyBase64, secretAccessKey string) string
- func PostPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string
- func PreSignV2(req http.Request, accessKeyID, secretAccessKey string, expires int64) *http.Request
- func PreSignV4(req http.Request, accessKeyID, secretAccessKey, location string, expires int64) *http.Request
- func SignV2(req http.Request, accessKeyID, secretAccessKey string) *http.Request
- func SignV4(req http.Request, accessKeyID, secretAccessKey, location string) *http.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredential ¶
GetCredential generate a credential string.
func PostPresignSignatureV2 ¶
PostPresignSignatureV2 - presigned signature for PostPolicy request.
func PostPresignSignatureV4 ¶
func PostPresignSignatureV4(policyBase64 string, t time.Time, secretAccessKey, location string) string
PostPresignSignatureV4 - presigned signature for PostPolicy requests.
func PreSignV2 ¶
PreSignV2 - presign the request in following style. https://${S3_BUCKET}.s3.amazonaws.com/${S3_OBJECT}?AWSAccessKeyId=${S3_ACCESS_KEY}&Expires=${TIMESTAMP}&Signature=${SIGNATURE}.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.