s3

package
v0.0.0-...-9be4a76 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Private           = s3.ACL("private")
	PublicRead        = s3.ACL("public-read")
	PublicReadWrite   = s3.ACL("public-read-write")
	AuthenticatedRead = s3.ACL("authenticated-read")
	BucketOwnerRead   = s3.ACL("bucket-owner-read")
	BucketOwnerFull   = s3.ACL("bucket-owner-full-control")
)

Variables

View Source
var S3 *s3.S3

Functions

func Copy

func Copy(bucket, oldPath, newPath string, perm s3.ACL) error

func Del

func Del(bucket, path string) error

func Get

func Get(bucket, path string) ([]byte, error)

func GetBucketContents

func GetBucketContents(bucket string) (*map[string]s3.Key, error)

func Put

func Put(bucket, path string, data []byte, contentType string, perm s3.ACL) error

func PutHeader

func PutHeader(bucket, path string, data []byte, contentType string, headers map[string][]string, perm s3.ACL) error

func SignedURL

func SignedURL(bucket, path string, expires time.Time) string

func Url

func Url(bucket, path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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