Documentation
¶
Index ¶
- type S3Config
- type S3Storage
- func (s *S3Storage) DeleteFile(ctx context.Context, s3Key string) error
- func (s *S3Storage) Download(ctx context.Context, key string) ([]byte, error)
- func (s *S3Storage) FileExists(ctx context.Context, s3Key string) (bool, error)
- func (s *S3Storage) GeneratePresignedURL(ctx context.Context, s3Key string, expirationMinutes int) (string, error)
- func (s *S3Storage) Upload(ctx context.Context, file []byte, key string, options ...types.UploadOptions) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Storage ¶
func (*S3Storage) DeleteFile ¶ added in v1.3.4
DeleteFile deletes a file from S3
func (*S3Storage) FileExists ¶ added in v1.3.4
FileExists checks if a file exists in S3
Click to show internal directories.
Click to hide internal directories.