Documentation ¶
Index ¶
- Constants
- Variables
- func CheckObject(objectPath string) (bool, error)
- func CloudFrontInvalidation(path ...string)
- func DeleteFolder(folderPath string) error
- func DeleteObject(objectPath string) error
- func DownloadObject(objectPath string) ([]byte, error)
- func GetFullUrl(src string) string
- func MoveObject(objectPath string, toObjectPath string) error
- func SesSendMail(Recipient string, Subject, Msg string) bool
- func SetACLIsPrivate()
- func SetACLIsPublic()
- func UploadObjectFromPath(originFilePath string, objectPath string) error
- func UploadObjectTTLFromIO(ioReader io.Reader, objectPath string, expires *time.Time) error
- func UploadObjectWithData(data []byte, objectPath string, contentType string) error
Constants ¶
View Source
const ( S3AclPublic = "public-read" S3AclPrivate = "private" )
Variables ¶
View Source
var S3AclSetting = S3AclPublic
Functions ¶
func CheckObject ¶
func CloudFrontInvalidation ¶
func CloudFrontInvalidation(path ...string)
func DeleteFolder ¶
func DeleteObject ¶
func DownloadObject ¶
func GetFullUrl ¶
func MoveObject ¶
func SesSendMail ¶ added in v1.3.2
func SetACLIsPrivate ¶
func SetACLIsPrivate()
func SetACLIsPublic ¶
func SetACLIsPublic()
func UploadObjectFromPath ¶
func UploadObjectTTLFromIO ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.