s3

package
v0.0.0-...-42912b2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(name string) error

CreateBucket creates a bucket if it doesn't exist yet.

func DownloadFromBucket

func DownloadFromBucket(name, object, path string) error

DownloadFromBucket retrieves object from bucket and stores it in path.

func ListBucket

func ListBucket(name, filter string) ([]string, error)

ListBucket lists the objects in the bucket. If filter is non-empty, only returns objects with the specified suffix.

func UploadToBucket

func UploadToBucket(name, object, path, contentType string) error

UploadToBucket stores file in path under object in bucket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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