mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 22:11:39 +00:00
14 lines
287 B
Go
14 lines
287 B
Go
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
|
|
}
|