Documentation ¶
Index ¶
- func StaticAccessKeyHmac(secretAccessKey string) func() hash.Hash
- type Option
- type Signer
- func (s *Signer) Presign(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, ...) (http.Header, error)
- func (s *Signer) Sign(r *http.Request, body io.ReadSeeker, service, region string, ...) (http.Header, error)
- func (s *Signer) SignSDKRequest(req *request.Request)
- func (s *Signer) SignSDKRequestWithOpts(req *request.Request, opts ...Option)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StaticAccessKeyHmac ¶
Types ¶
type Signer ¶
type Signer struct { AccessKeyID string // SecretAccessKeyHmacSha256 should return a new hash.Hash every time it is called. // The key for this hmac must be the string: "AWS4"+SecretAccessKey // A common implementation will be to return hmac.New() from this function. SecretAccessKeyHmacSha256 func() hash.Hash SessionToken string }
func (*Signer) SignSDKRequest ¶
Click to show internal directories.
Click to hide internal directories.