service

package
v0.0.0-...-4b7d5cb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyObject

func CopyObject(client s3Client, sourceBucket string, destBucket string, fileName string) error

func CreateBucket

func CreateBucket(client s3Client, bucket string) error

func CreateSession

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

func DeleteBucket

func DeleteBucket(client s3Client, bucket string) error

func DeleteObject

func DeleteObject(client s3Client, bucket string, fileName string) error

func DownloadObject

func DownloadObject(client s3Client, bucket string, file *os.File, fileName string) (int64, error)

func ListBuckets

func ListBuckets(client s3Client) ([]*s3.Bucket, error)

func ListObjects

func ListObjects(client s3Client, bucket string) ([]*s3.Object, error)

func UploadObject

func UploadObject(client s3Client, bucket string, file *os.File, fileName string) error

Types

type MockS3Client

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

type S3Client

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

Jump to

Keyboard shortcuts

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