Documentation ¶
Index ¶
- func CleanUpS3Bucket(session *session.Session, bucket string, maxAge float64) error
- func Download(session *session.Session, key, bucket string) ([]byte, error)
- func DownloadToDisk(session *session.Session, key, bucket, dst string) error
- func GetBucketPublicURL(session *session.Session, bucket string) string
- func ObjectPresent(session *session.Session, key, bucket string) (bool, error)
- func Upload(session *session.Session, body []byte, key, bucket string, opts ...UploadOpt) error
- func UploadFile(session *session.Session, file, key, bucket string, opts ...UploadOpt) error
- type UploadOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpS3Bucket ¶
func DownloadToDisk ¶ added in v0.7.0
Types ¶
type UploadOpt ¶
type UploadOpt func(*s3manager.UploadInput)
func WithPublicRead ¶
func WithPublicRead() UploadOpt
Click to show internal directories.
Click to hide internal directories.