Documentation ¶
Index ¶
- type Option
- type S3Storage
- func (s *S3Storage) Get(r *http.Request, image string) (*imagor.Blob, error)
- func (s *S3Storage) Meta(ctx context.Context, image string) (meta *imagor.Meta, err 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(h *S3Storage)
func WithBaseDir ¶
func WithExpiration ¶ added in v0.8.10
func WithPathPrefix ¶
func WithSafeChars ¶
type S3Storage ¶
type S3Storage struct { S3 *s3.S3 Uploader *s3manager.Uploader Downloader *s3manager.Downloader Bucket string BaseDir string PathPrefix string ACL string SafeChars string Expiration time.Duration // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.