Versions in this module Expand all Collapse all v0 v0.2.0 Feb 23, 2022 Changes in this version + const Algorithm + const BasicDateFormat + const BasicDateFormatShort + const HeaderAuthorization + const HeaderDate + const HeaderHost + const HeaderXDate + const PreSKString + const TerminationString + func AuthHeaderValue(signature, accessKey, credentialScope, signedHeaders string) string + func CanonicalHeaders(r *http.Request) string + func CanonicalQueryString(r *http.Request) string + func CanonicalRequest(r *http.Request) (string, error) + func CanonicalURI(r *http.Request) string + func CredentialScope(t time.Time, regionName, serviceName string) string + func GenerateSigningKey(secretKey, regionName, serviceName string, t time.Time) ([]byte, error) + func HexEncodeSHA256Hash(body []byte) (string, error) + func RequestPayload(r *http.Request) ([]byte, error) + func SignStringToSign(stringToSign string, signingKey []byte) (string, error) + func SignedHeaders(r *http.Request) string + func StringToSign(canonicalRequest, credentialScope string, t time.Time) string + type Signer struct + AccessKey string + Region string + SecretKey string + Service string + func (s *Signer) Sign(r *http.Request) error v0.0.1-alpha Mar 10, 2023