providers

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSSignV4

func AWSSignV4(headers map[string][]string, method string, theURL *url.URL, body []byte, service string, awsCreds AWSCredentials, theTime time.Time) map[string][]string

AWSSignV4 modifies a map[string][]string of headers to include an AWS V4 signature based on the config/credentials provided.

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKey    string
	SecretKey    string
	RegionName   string
	SessionToken string
}

func AWSCredentialsFromObject

func AWSCredentialsFromObject(v ast.Object) AWSCredentials

Jump to

Keyboard shortcuts

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