Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2024 Changes in this version + type Option func(h *S3Storage) + func WithACL(acl string) Option + func WithBaseDir(baseDir string) Option + func WithExpiration(exp time.Duration) Option + func WithPathPrefix(prefix string) Option + func WithSafeChars(chars string) Option + func WithStorageClass(storageClass string) Option + type S3Storage struct + ACL string + BaseDir string + Bucket string + Downloader *s3manager.Downloader + Expiration time.Duration + PathPrefix string + S3 *s3.S3 + SafeChars string + StorageClass string + Uploader *s3manager.Uploader + func New(sess *session.Session, bucket string, options ...Option) *S3Storage + func (s *S3Storage) Delete(ctx context.Context, image string) error + func (s *S3Storage) Get(r *http.Request, image string) (*imagor.Blob, error) + func (s *S3Storage) Path(image string) (string, bool) + func (s *S3Storage) Put(ctx context.Context, image string, blob *imagor.Blob) error + func (s *S3Storage) Stat(ctx context.Context, image string) (stat *imagor.Stat, err error)