mock

package
v0.0.0-...-f574766 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	// contains filtered or unexported fields
}

func New

func New() *Mock

func (*Mock) AddGeneratedSignature

func (m *Mock) AddGeneratedSignature(signature string)

func (*Mock) AddSignRequestResponse

func (m *Mock) AddSignRequestResponse(req *request.Request, err error)

func (*Mock) AddSignURLResponse

func (m *Mock) AddSignURLResponse(url string, err error)

func (*Mock) GenerateSignature

func (m *Mock) GenerateSignature(r request.Interface, headersToSign []string) string

func (*Mock) SignRequest

func (m *Mock) SignRequest(r request.Interface, headersToSign []string) (*request.Request, error)

func (*Mock) SignedURLBy

func (m *Mock) SignedURLBy(httpMethod, urlToSign string, expires int) (string, error)

Jump to

Keyboard shortcuts

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