authv4

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

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