s3

package
v0.8.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: AGPL-3.0 Imports: 8 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