sigv4

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL