Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(req *http.Request, body []byte, region, service, accessKey, secretKey, sessionToken string) error
Sign signs an HTTP request with AWS SigV4 using the given credentials. It sets the Authorization, X-Amz-Date, X-Amz-Content-Sha256, and optionally X-Amz-Security-Token headers on the provided request.
func SignWithHeaders ¶
func SignWithHeaders(method, urlStr string, body []byte, headers http.Header, region, service, accessKey, secretKey, sessionToken string) (*http.Request, error)
SignWithHeaders is a convenience wrapper that constructs an http.Request from its components before calling Sign. It returns the signed request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.