change from creation to exists check
All checks were successful
/ Make image (push) Successful in 1m14s
All checks were successful
/ Make image (push) Successful in 1m14s
This commit is contained in:
parent
38193e8943
commit
95b75d0067
3 changed files with 9 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
type MediaStorage interface {
|
||||
СreateBucketIfNotExists(bucketName string) error
|
||||
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) (*url.URL, error)
|
||||
Delete(ctx context.Context, bucket, object string) error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue