authv4

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRoundTripSigner

type DefaultRoundTripSigner struct {
	HttpSigner

	Transport http.RoundTripper
}

func (*DefaultRoundTripSigner) RoundTrip

func (signer *DefaultRoundTripSigner) RoundTrip(req *http.Request) (*http.Response, error)

type DefaultSigner

type DefaultSigner struct {
	credentials.AWSCredentialProvider

	Region, Service string

	ExtraHeaders []string

	Signer *sign.Signer
}

Implements Signer

func (*DefaultSigner) Sign

func (signer *DefaultSigner) Sign(s signable.Signable) error

func (*DefaultSigner) SignHttpRequest

func (signer *DefaultSigner) SignHttpRequest(req *http.Request) error

type HttpSigner

type HttpSigner interface {
	SignHttpRequest(*http.Request) error
}

Signs an http.Request by mutating it

func NewHttpSigner

func NewHttpSigner(region, service string, creds credentials.AWSCredentialProvider, extraHeaders []string) HttpSigner

type RoundTripperSigner

type RoundTripperSigner http.RoundTripper

A signed round-tripper signs a request and subsequently returns a response.

func NewRoundtripSigner

func NewRoundtripSigner(signer HttpSigner, Transport http.RoundTripper) RoundTripperSigner

type Signer

type Signer interface {
	Sign(signable.Signable) error
}

func NewSigner

func NewSigner(region, service string, creds credentials.AWSCredentialProvider, extraHeaders []string) Signer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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