s3

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage implements filestore.StorageBackend using Amazon S3

func NewStorage

func NewStorage(c config.S3) *Storage

NewStorage returns a new initialized Storage

func (*Storage) Download

func (s *Storage) Download(path string, w io.WriterAt) error

Download implements filestore.StorageBackend.Download

func (*Storage) Upload

func (s *Storage) Upload(path string, r io.ReadSeeker) error

Upload implements filestore.StorageBackend.Upload

Jump to

Keyboard shortcuts

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