fake

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeS3

type FakeS3 struct {
	Storage map[string]*Object
}

func NewFakeS3

func NewFakeS3(objects ...*Object) *FakeS3

func (*FakeS3) Delete

func (s *FakeS3) Delete(key string) error

func (*FakeS3) GetDownloadURL

func (s *FakeS3) GetDownloadURL(key string, fileName string) (string, error)

func (*FakeS3) Read

func (s *FakeS3) Read(key string) ([]byte, error)

func (*FakeS3) Upload

func (s *FakeS3) Upload(key, fileName string, body io.Reader) error

type Object

type Object struct {
	Key      string
	FileName string
	Body     io.Reader
}

Jump to

Keyboard shortcuts

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