init
This commit is contained in:
commit
d69342b2e9
160 changed files with 28681 additions and 0 deletions
14
internal/storage/storage.go
Normal file
14
internal/storage/storage.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package storage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Client interface {
|
||||
Upload(ctx context.Context, key string, body io.Reader, contentType string) error
|
||||
Delete(ctx context.Context, key string) error
|
||||
PresignUpload(ctx context.Context, key string, contentType string, expires time.Duration) (string, error)
|
||||
PublicURL(key string) string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue