Documentation ¶
Overview ¶
Package s3 is used to implement model.IM interface. Its purpose is controlling images of users and ads.
s3 uses AWS simple storage service to store images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Bucket string `json:"Bucket"` ACL string `json:"ACL"` Region string `json:"Region"` }
Config is config for AWS S3 image manager
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 is a struct that implements model.IM interface
func (*S3) DeleteImage ¶
DeleteImage deletes such key from the bucket
func (*S3) DownloadImage ¶
DownloadImage downloads image from AWS
Click to show internal directories.
Click to hide internal directories.