s3_test

package
v0.0.0-...-27fb5c3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockS3

type MockS3 struct {
	sync.RWMutex

	s3iface.S3API
	// contains filtered or unexported fields
}

MockS3 mimics an S3 blob store for testing.

func NewMockS3

func NewMockS3() *MockS3

func (*MockS3) GetObject

func (m *MockS3) GetObject(in *s3.GetObjectInput) (*s3.GetObjectOutput, error)

func (*MockS3) ListObjectsV2

func (m *MockS3) ListObjectsV2(in *s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)

func (*MockS3) NewBucket

func (m *MockS3) NewBucket(name string)

func (*MockS3) PutObject

func (m *MockS3) PutObject(in *s3.PutObjectInput) (*s3.PutObjectOutput, error)

Jump to

Keyboard shortcuts

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