s3store

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 6 Imported by: 0

README

s3store

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Store

type S3Store struct {
	Bucket     string
	Uploader   *manager.Uploader
	Downloader *manager.Downloader
	Client     *s3.Client
}

func NewS3Store

func NewS3Store(bucket string) (*S3Store, error)

func (*S3Store) Get

func (s *S3Store) Get(key string) ([]byte, error)

func (*S3Store) GetWithCtx

func (s *S3Store) GetWithCtx(ctx context.Context, key string) ([]byte, error)

func (*S3Store) List added in v0.0.5

func (s *S3Store) List(prefix string) ([]string, error)

func (*S3Store) ListWithCtx added in v0.0.5

func (s *S3Store) ListWithCtx(ctx context.Context, prefix string) ([]string, error)

func (*S3Store) Put added in v0.0.3

func (s *S3Store) Put(key string, body []byte) (err error)

func (*S3Store) PutRaw added in v0.0.3

func (s *S3Store) PutRaw(ctx context.Context, params *s3.PutObjectInput) (err error)

func (*S3Store) PutWithContentType added in v0.0.3

func (s *S3Store) PutWithContentType(ctx context.Context, key string, body []byte, contentType string) (err error)

func (*S3Store) PutWithMetadata added in v0.0.3

func (s *S3Store) PutWithMetadata(ctx context.Context, key string, body []byte, metadata map[string]string) (err error)

Jump to

Keyboard shortcuts

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