awsutils

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileNotFoundError = fmt.Errorf("File not found")
)

Functions

func BucketExists

func BucketExists(svc *s3.S3, bucketname string) (bool, error)

func CreateBucket

func CreateBucket(svc *s3.S3, bucket string) error

func DeleteBucket

func DeleteBucket(svc *s3.S3, bucket string) error

func DeleteFile

func DeleteFile(svc *s3.S3, bucket, filename string) error

func Diag

func Diag(params ...interface{})

func DownloadFile

func DownloadFile(svc *s3.S3, bucket, file string, writer io.WriterAt) (int64, error)

func GetAWSSession

func GetAWSSession() (*session.Session, error)

func S3Stat

func S3Stat(svc *s3.S3, bucket, filename string) (*s3.Object, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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