s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.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 S3Storage

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

func New

func New(bucket, location, endpoint, accessKeyID, secretAccessKey string, secure bool) (*S3Storage, error)

func (*S3Storage) DeleteObject

func (s *S3Storage) DeleteObject(filepath string) error

func (*S3Storage) List

func (s *S3Storage) List(prefix, startWith, delimiter string, doneCh <-chan struct{}) <-chan types.ObjectInfo

func (*S3Storage) ReadObject

func (s *S3Storage) ReadObject(filepath string) (types.ReadSeekCloser, error)

func (*S3Storage) Stat

func (s *S3Storage) Stat(p string) (*types.ObjectInfo, error)

func (*S3Storage) WriteObject

func (s *S3Storage) WriteObject(filepath string, data io.Reader, size int64, persist bool) error

Jump to

Keyboard shortcuts

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