switch from pre-signed to public images
All checks were successful
/ Make image (push) Successful in 1m31s

This commit is contained in:
nquidox 2025-10-19 19:43:33 +03:00
parent 947220b65c
commit 3298602a23
6 changed files with 71 additions and 20 deletions

View file

@ -10,7 +10,8 @@ import (
type MediaStorage interface {
CheckBucketExists(bucketName string) (bool, error)
Upload(ctx context.Context, bucket, object string, reader io.Reader, size int64) error
Get(ctx context.Context, bucket, object string, expires time.Duration, params url.Values) (string, error)
GetPublicLink(ctx context.Context, bucket, object string) (string, string, error)
GetPresignedLink(ctx context.Context, bucket, object string, expires time.Duration, params url.Values) (string, error)
Delete(ctx context.Context, bucket, object string) error
GetObjectEtag(ctx context.Context, bucketName, object string) (string, error)
}