Documentation
¶
Index ¶
- Variables
- type Config
- type S3Storage
- func (s *S3Storage) Delete(ctx context.Context, path string) error
- func (s *S3Storage) Download(ctx context.Context, path string, w io.WriterAt) error
- func (s *S3Storage) Exists(ctx context.Context, path string) (bool, error)
- func (s *S3Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *S3Storage) Save(ctx context.Context, path string, r io.Reader, opts ...SaveOption) error
- type SaveOption
- type SaveOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("file not found")
Functions ¶
This section is empty.
Types ¶
type S3Storage ¶
type S3Storage struct { Bucket string // contains filtered or unexported fields }
func NewS3Storage ¶
NewS3Storage creates an S3 storage client
type SaveOption ¶
type SaveOption func(*SaveOptions)
func WithAutoContentType ¶
func WithAutoContentType() SaveOption
func WithContentType ¶
func WithContentType(ct string) SaveOption
type SaveOptions ¶
Click to show internal directories.
Click to hide internal directories.