amazon

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3AclPublic  = "public-read"
	S3AclPrivate = "private"
)

Variables

View Source
var S3AclSetting = S3AclPublic

Functions

func CheckObject

func CheckObject(objectPath string) (bool, error)

func CloudFrontInvalidation

func CloudFrontInvalidation(path ...string)

func DeleteFolder

func DeleteFolder(folderPath string) error

func DeleteObject

func DeleteObject(objectPath string) error

func DownloadObject

func DownloadObject(objectPath string) ([]byte, error)

func GetFullUrl

func GetFullUrl(src string) string

func MoveObject

func MoveObject(objectPath string, toObjectPath string) error

func SesSendMail added in v1.3.2

func SesSendMail(Recipient string, Subject, Msg string) bool

func SetACLIsPrivate

func SetACLIsPrivate()

func SetACLIsPublic

func SetACLIsPublic()

func UploadObjectFromPath

func UploadObjectFromPath(originFilePath string, objectPath string) error

func UploadObjectTTLFromIO

func UploadObjectTTLFromIO(ioReader io.Reader, objectPath string, expires *time.Time) error

func UploadObjectWithData

func UploadObjectWithData(data []byte, objectPath string, contentType string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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