mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:37:40 +00:00
Add streaming methods to interface
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package backend
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
)
|
||||
|
||||
type Type string
|
||||
|
||||
@@ -26,10 +29,12 @@ type Lister interface {
|
||||
|
||||
type Getter interface {
|
||||
Get(Type, ID) ([]byte, error)
|
||||
GetReader(Type, ID) (io.ReadCloser, error)
|
||||
}
|
||||
|
||||
type Creater interface {
|
||||
Create(Type, []byte) (ID, error)
|
||||
CreateFrom(Type, rd io.Reader) (ID, error)
|
||||
}
|
||||
|
||||
type Tester interface {
|
||||
|
Reference in New Issue
Block a user