Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchKey = errors.New("The specified key does not exist") ErrNoSuchBucket = errors.New("The specified bucket does not exist") )
Errors
Functions ¶
This section is empty.
Types ¶
type S3Wrapper ¶
type S3Wrapper struct { Client *s3.S3 Uploader *s3manager.Uploader Downloader *s3manager.Downloader Region string }
S3Wrapper define service S3 fields
func (*S3Wrapper) CreateBucket ¶
CreateBucket create new S3 bucket name as the bucket name
func (*S3Wrapper) DeleteBucket ¶
DeleteBucket remove S3 bucket name as the bucket name
func (*S3Wrapper) GetObject ¶
GetObject uploads an object to a bucket bucket as the name of bucket, file as file name
func (*S3Wrapper) UploadObject ¶
UploadObject uploads an object to a bucket. bucket as the name of bucket, body as the content body of file
Click to show internal directories.
Click to hide internal directories.