s3

package
v0.0.0-...-1f68592 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDirectory

func DeleteDirectory(awsSession *session.Session, bucket string, prefix string) ([]error, error)

DeleteDirectory ...

Deletes all objects within a specified directory

func DeleteObject

func DeleteObject(awsSession *session.Session, bucket string, key string) error

DeleteObject ...

Deletes an object

func DownloadObject

func DownloadObject(awsSession *session.Session, bucket string, key string) ([]byte, error)

DownloadObject ...

Downloads an object

func ListObjects

func ListObjects(awsSession *session.Session, bucket string, prefix string, callback func(key string)) error

ListObjects ...

Lists all keys for a specific bucket and prefix without paging and returns each key via a callback arg returns the first 1000 keys and no more

func ListObjectsPages

func ListObjectsPages(awsSession *session.Session, bucket string, prefix string, callback func(key string)) error

ListObjectsPages ...

Lists all keys for a specific bucket and prefix with paging and returns each key via a callback arg

func UploadObject

func UploadObject(file io.Reader, awsSession *session.Session, bucket string, key string) error

UploadObject ...

Uploads an object

Types

type DeleteDirectoryJob

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

Jump to

Keyboard shortcuts

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