s3

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStorage

type ObjectStorage interface {
	Download(ctx context.Context, w io.WriterAt, URI string) (int64, error)
}

ObjectStorage is a S3-compatible storage interface.

type ObjectStorageImpl

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

ObjectStorageImpl is our implementation of the ObjectStorage interface.

func New

func New(sess *session.Session) *ObjectStorageImpl

New returns a pointer to a new ObjectStorageImpl.

func (*ObjectStorageImpl) Download

func (s *ObjectStorageImpl) Download(ctx context.Context, w io.WriterAt, URI string) (n int64, err error)

Download writes the contents of a remote file into the given writer.

Jump to

Keyboard shortcuts

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