mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
feat: impl fs backed blob store
This commit is contained in:
13
apps/backend/internal/blob/store.go
Normal file
13
apps/backend/internal/blob/store.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package blob
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
type Store interface {
|
||||
Put(ctx context.Context, key Key, reader io.Reader) error
|
||||
Retrieve(ctx context.Context, key Key) (io.ReadCloser, error)
|
||||
Delete(ctx context.Context, key Key) error
|
||||
Move(ctx context.Context, srcKey, dstKey Key) error
|
||||
}
|
||||
Reference in New Issue
Block a user