s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: Apache-2.0 Imports: 6 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 represents AWS S3 service.

func New

func New() (*S3, error)

AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set to access AWS services AWS_S3_BUCKET must be set to specify the s3 bucket AWS_REGION can be set to specify the aws region

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(prefix string) ([]string, error)

func (*S3) Put

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

Jump to

Keyboard shortcuts

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