api/internal/interfaces/mediaStorage.go
2025-10-26 19:54:10 +03:00

19 lines
625 B
Go

package interfaces
import (
"context"
"io"
"net/url"
"time"
)
// MinIO service replaced by imagesProvider
type MediaStorage interface {
CheckBucketExists(bucketName string) (bool, error)
Upload(ctx context.Context, bucket, object string, reader io.Reader, size int64) 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)
}