s3utils

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachFile

func ForEachFile(uri, marker string, cont func(file string) error) (string, error)

Files calls `cont` on each file found at `uri` starting at marker. Pass `marker=""` to start from the beginning. Returns the marker that should be passed to pick-up where this call left off.

func GetBucket

func GetBucket(input string) (string, error)

getBucket extracts the bucket from an s3 input

func GetPath

func GetPath(input string) (string, error)

getPath extracts the path from an s3 input

func NewBucket

func NewBucket(uri string) (*s3.Bucket, error)

func PutMulti

func PutMulti(bucket *s3.Bucket, path string, r io.Reader, contType string, perm s3.ACL) error

PutMulti is like a smart bucket.Put in that it will automatically do a multiput if the input reader has enough data that it makes sense to do so.

Types

This section is empty.

Jump to

Keyboard shortcuts

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