rexCustomAwsSign

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomSigner added in v1.0.34

type CustomSigner interface {
	WithMaxSkew(maxSkew time.Duration)
	WithIgnoredHeaders(IgnoredHeaders map[string]string)
	WithNeedSignHeaders(NeedSignHeaders map[string]string)
	WithDebug(debug bool)
	GetDeriveKeyPrefix() string
	GetTimeFormat() string
	GetAuthHeaderPrefix() string
	GetShortTimeFormat() string
	GetVersionRequest() string
	GetEmptyStringSHA256() string
	GetMaxSkew() time.Duration
	GetDoubleSpace() string
	GetAuthHeaderSignatureElem() string
	GetHeaderDate() string
	GetHeaderContentSha256() string
	GetIgnoredHeaders() map[string]string
	GetNeedSignHeaders() map[string]string
	SignAuth(accessKeyID, credentialString, signedHeaders, signature string) string
	BuildSignature(Region, ServiceName, SecretAccessKey, stringToSign string, Time time.Time) string
	DeriveSigningKey(region, service, secretKey string, dt time.Time) []byte
	HmacSHA256(key []byte, data []byte) []byte
	FormatDate(now time.Time) string
	Sha256Content(bodyBytes []byte) (contentSha256 string)
	HashSHA256(data []byte) []byte
	BuildCanonicalHeaders(r *http.Request) (canonicalHeaders string, signedHeaderStr string)
	StripExcessSpaces(vals []string)
	BuildCanonicalString(r *http.Request, canonicalHeaders, signedHeaders, bodyDigest string) string
	BuildCredentialString(region, service string, dt time.Time) string
	FormatShortTime(dt time.Time) string
	BuildSigningScope(region, service string, dt time.Time) string
	BuildStringToSign(reqTime, credentialString, canonicalString string) string
}

func NewCustomSigner added in v1.0.34

func NewCustomSigner(shortName string, version uint) CustomSigner

Jump to

Keyboard shortcuts

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