aws

package
v6.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 2 Imported by: 0

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.

func NewV4SigningClientWithHTTPClient

func NewV4SigningClientWithHTTPClient(credentials awsauth.Credentials, httpClient *http.Client) *http.Client

NewV4SigningClientWithHTTPClient 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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