change from creation to exists check
All checks were successful
/ Make image (push) Successful in 1m14s

This commit is contained in:
nquidox 2025-10-15 21:34:32 +03:00
parent 38193e8943
commit 95b75d0067
3 changed files with 9 additions and 16 deletions

View file

@ -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