v4

package
v0.0.0-...-7b89762 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAlgorithm used for AWS V4 Signed
	DefaultAlgorithm = "AWS4-HMAC-SHA256"
)

Variables

This section is empty.

Functions

func WithCredentialsValue

func WithCredentialsValue(value *credentials.Value) func(*Signer)

Add credentials value as option

func WithRegion

func WithRegion(region string) func(*Signer)

Add region value as option

func WithService

func WithService(service string) func(*Signer)

Add service value as option

Types

type Signer

type Signer struct {
	Region      string
	Credentials *credentials.Credentials
	Service     string
}

AWS V4 Signer

func New

func New(options ...func(*Signer)) (*Signer, error)

New Signer

func (*Signer) GetSignedURL

func (s *Signer) GetSignedURL(endpoint string, queryParams signer.QueryParams, date *time.Time) (string, error)

GetSignedURL function that sign input url, input query params and input date

Jump to

Keyboard shortcuts

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