awssign

package
v0.0.0-...-d548e4a Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPrefixFold

func HasPrefixFold(s, prefix string) bool

HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings, under Unicode case-folding.

Types

type Signer

type Signer struct {
	// 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
	AccessKeyID               string
	SessionToken              string
}

func (*Signer) SignHTTP

func (s *Signer) SignHTTP(req *http.Request, body io.ReadSeeker, service string, region string, exp time.Duration, isPresign bool, signTime time.Time) (http.Header, error)

func (*Signer) SignRequest

func (s *Signer) SignRequest(req *request.Request, ts time.Time)

Jump to

Keyboard shortcuts

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