Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Storager ¶
type S3Storager interface { UploadContent(ctx context.Context, objectKey string, content []byte) error UploadContentFromMulipart(ctx context.Context, objectKey string, file multipart.File) error BucketExists(ctx context.Context, bucketName string) (bool, error) GetDownloadablePresignedURL(ctx context.Context, key string, duration time.Duration) (string, error) GetPresignedURL(ctx context.Context, key string, duration time.Duration) (string, error) DeleteByKeys(ctx context.Context, key []string) error }
func NewStorage ¶
NewStorage connects to a specific S3 bucket instance and returns a connected instance structure.
Click to show internal directories.
Click to hide internal directories.