aws

package
v5.0.86 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV4SigningClient

func NewV4SigningClient(credentials awsauth.Credentials) *http.Client

NewV4SigningClient returns an *http.Client that will sign all requests with AWS V4 Signing.

Types

type V4Transport

type V4Transport struct {
	HTTPClient  *http.Client
	Credentials awsauth.Credentials
}

V4Transport is a RoundTripper that will sign requests with AWS V4 Signing

func (V4Transport) RoundTrip

func (st V4Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip uses the underlying RoundTripper transport, but signs request first with AWS V4 Signing

Jump to

Keyboard shortcuts

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