mirror of
https://github.com/restic/restic.git
synced 2025-08-14 00:07:53 +00:00
Introduce CreateBlob() method for backend
This commit is contained in:
@@ -23,6 +23,11 @@ var (
|
||||
ErrAlreadyPresent = errors.New("blob is already present in backend")
|
||||
)
|
||||
|
||||
type Blob interface {
|
||||
io.WriteCloser
|
||||
ID() (ID, error)
|
||||
}
|
||||
|
||||
type Lister interface {
|
||||
List(Type) (IDs, error)
|
||||
}
|
||||
@@ -35,6 +40,7 @@ type Getter interface {
|
||||
type Creater interface {
|
||||
Create(Type, []byte) (ID, error)
|
||||
CreateFrom(Type, io.Reader) (ID, error)
|
||||
CreateBlob(Type) (Blob, error)
|
||||
}
|
||||
|
||||
type Tester interface {
|
||||
|
Reference in New Issue
Block a user