36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package v4
|
|
|
|
const (
|
|
// EmptyStringSHA256 is the hex encoded sha256 value of an empty string
|
|
EmptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
|
|
|
|
// UnsignedPayload indicates that the request payload body is unsigned
|
|
UnsignedPayload = "UNSIGNED-PAYLOAD"
|
|
|
|
// AmzAlgorithmKey indicates the signing algorithm
|
|
AmzAlgorithmKey = "X-Amz-Algorithm"
|
|
|
|
// AmzSecurityTokenKey indicates the security token to be used with temporary credentials
|
|
AmzSecurityTokenKey = "X-Amz-Security-Token"
|
|
|
|
// AmzDateKey is the UTC timestamp for the request in the format YYYYMMDD'T'HHMMSS'Z'
|
|
AmzDateKey = "X-Amz-Date"
|
|
|
|
// AmzCredentialKey is the access key ID and credential scope
|
|
AmzCredentialKey = "X-Amz-Credential"
|
|
|
|
// AmzSignedHeadersKey is the set of headers signed for the request
|
|
AmzSignedHeadersKey = "X-Amz-SignedHeaders"
|
|
|
|
// AmzSignatureKey is the query parameter to store the SigV4 signature
|
|
AmzSignatureKey = "X-Amz-Signature"
|
|
|
|
// TimeFormat is the time format to be used in the X-Amz-Date header or query parameter
|
|
TimeFormat = "20060102T150405Z"
|
|
|
|
// ShortTimeFormat is the shorten time format used in the credential scope
|
|
ShortTimeFormat = "20060102"
|
|
|
|
// ContentSHAKey is the SHA256 of request body
|
|
ContentSHAKey = "X-Amz-Content-Sha256"
|
|
)
|