s3

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpS3Bucket

func CleanUpS3Bucket(session *session.Session, bucket string, maxAge float64) error

func Download

func Download(session *session.Session, key, bucket string) ([]byte, error)

func DownloadToDisk added in v0.7.0

func DownloadToDisk(session *session.Session, key, bucket, dst string) error

func GetBucketPublicURL

func GetBucketPublicURL(session *session.Session, bucket string) string

func ObjectPresent

func ObjectPresent(session *session.Session, key, bucket string) (bool, error)

func Upload

func Upload(session *session.Session, body []byte, key, bucket string, opts ...UploadOpt) error

func UploadFile

func UploadFile(session *session.Session, file, key, bucket string, opts ...UploadOpt) error

Types

type UploadOpt

type UploadOpt func(*s3manager.UploadInput)

func WithPublicRead

func WithPublicRead() UploadOpt

Jump to

Keyboard shortcuts

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