s3db

package
v0.0.0-...-dbdcb34 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrObjectNotFound = errors.New("object not found")
View Source
var ErrTimeout = errors.New("timed out")
View Source
var TIMEOUT = time.Second * 10

Functions

This section is empty.

Types

type FakeS3DB

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

func NewFakeS3DB

func NewFakeS3DB() *FakeS3DB

func (*FakeS3DB) FetchObject

func (f *FakeS3DB) FetchObject(key string) ([]byte, error)

func (*FakeS3DB) PutObject

func (f *FakeS3DB) PutObject(key string, data []byte) error

func (*FakeS3DB) SetFetchError

func (f *FakeS3DB) SetFetchError(err error)

type S3DB

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

func NewS3DB

func NewS3DB() (*S3DB, error)

func (*S3DB) FetchObject

func (s3db *S3DB) FetchObject(okey string) ([]byte, error)

func (*S3DB) PutObject

func (s3db *S3DB) PutObject(okey string, data []byte) error

type S3DBInt

type S3DBInt interface {
	FetchObject(key string) ([]byte, error)
	PutObject(key string, data []byte) error
}

Jump to

Keyboard shortcuts

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