* feat(backend): added ux-testing support * feat(backend): added ux-testing module * feat(http): added bucket name for http service * feat(backend): fixed small typos in http router --------- Co-authored-by: Alexander <zavorotynskiy@pm.me>
22 lines
420 B
Go
22 lines
420 B
Go
package objectstorage
|
|
|
|
import (
|
|
"io"
|
|
"time"
|
|
)
|
|
|
|
type CompressionType int
|
|
|
|
const (
|
|
NoCompression CompressionType = iota
|
|
Gzip
|
|
Brotli
|
|
)
|
|
|
|
type ObjectStorage interface {
|
|
Upload(reader io.Reader, key string, contentType string, compression CompressionType) error
|
|
Get(key string) (io.ReadCloser, error)
|
|
Exists(key string) bool
|
|
GetCreationTime(key string) *time.Time
|
|
GetPreSignedUploadUrl(key string) (string, error)
|
|
}
|