s3

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

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

S3 is a helper layer to wrap complex S3 logic.

func New

func New(bucket, prefix string) (*S3, error)

New returns a S3 translator from default shared config. Please refer to http://docs.aws.amazon.com/sdk-for-go/api/aws/session/ for setting up credentials and configuration.

func NewFromClient added in v0.3.0

func NewFromClient(bucket, prefix string, cli *s3.S3) *S3

func NewFromSessionOpt added in v0.3.0

func NewFromSessionOpt(bucket, prefix string, so session.Options) (*S3, error)

func (*S3) CopyPrefix added in v0.2.0

func (s *S3) CopyPrefix(from string) error

func (*S3) Delete

func (s *S3) Delete(key string) error

func (*S3) Get

func (s *S3) Get(key string) (io.ReadCloser, error)

func (*S3) List

func (s *S3) List() ([]string, error)

func (*S3) Put

func (s *S3) Put(key string, rs io.ReadSeeker) error

func (*S3) TotalSize added in v0.2.2

func (s *S3) TotalSize() (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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