switch from pre-signed to public images
All checks were successful
/ Make image (push) Successful in 1m31s
All checks were successful
/ Make image (push) Successful in 1m31s
This commit is contained in:
parent
947220b65c
commit
3298602a23
6 changed files with 71 additions and 20 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue