mock_s3

package
v0.15.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageClient

func NewStorageClient(buckets []*MockBucket, storage *map[string]map[string][]byte) s3iface.S3API

Types

type MockBucket

type MockBucket struct {
	Name string
	Tags map[string]string
}

type MockS3Client

type MockS3Client struct {
	sync.RWMutex
	s3iface.S3API
	// contains filtered or unexported fields
}

MockS3Client - Provides an S3API compliant mock interface

func (*MockS3Client) DeleteObject

func (s *MockS3Client) DeleteObject(in *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)

func (*MockS3Client) GetBucketTagging

func (s *MockS3Client) GetBucketTagging(in *s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)

func (*MockS3Client) GetObject

func (s *MockS3Client) GetObject(in *s3.GetObjectInput) (*s3.GetObjectOutput, error)

func (*MockS3Client) ListBuckets

func (*MockS3Client) PutObject

func (s *MockS3Client) 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