mock

package
v1.0.1-0...-5d367bd Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Client

func NewS3Client(region string) (adaptor.S3Client, error)

Types

type HTTPClient

type HTTPClient struct {
	Requests []*http.Request
	RespCode int
	RespBody io.ReadCloser
}

func (*HTTPClient) Body

func (x *HTTPClient) Body(n int) string

func (*HTTPClient) Do

func (x *HTTPClient) Do(req *http.Request) (*http.Response, error)

func (*HTTPClient) RequestNum

func (x *HTTPClient) RequestNum() int

type S3Client

type S3Client struct {
	Region    string
	S3Objects map[string]map[string][]byte
}

func NewS3Mock

func NewS3Mock() (adaptor.S3ClientFactory, *S3Client)

func (*S3Client) GetObject

func (x *S3Client) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)

func (*S3Client) PutObject

func (x *S3Client) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)

Jump to

Keyboard shortcuts

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