mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 06:07:44 +00:00
Remove Repository interface from storage
This commit is contained in:
parent
5560b39dee
commit
008c2298f1
@ -21,18 +21,6 @@ const (
|
|||||||
tempPath = "tmp"
|
tempPath = "tmp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Repository interface {
|
|
||||||
Put(reader io.Reader) (ID, error)
|
|
||||||
PutFile(path string) (ID, error)
|
|
||||||
PutRaw([]byte) (ID, error)
|
|
||||||
Get(ID) (io.Reader, error)
|
|
||||||
Test(ID) (bool, error)
|
|
||||||
Remove(ID) error
|
|
||||||
Link(name string, id ID) error
|
|
||||||
Unlink(name string) error
|
|
||||||
Resolve(name string) (ID, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrIDDoesNotExist = errors.New("ID does not exist")
|
ErrIDDoesNotExist = errors.New("ID does not exist")
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,7 @@ var TestStrings = []struct {
|
|||||||
var _ = Describe("Storage", func() {
|
var _ = Describe("Storage", func() {
|
||||||
var (
|
var (
|
||||||
tempdir string
|
tempdir string
|
||||||
repo storage.Repository
|
repo *storage.DirRepository
|
||||||
err error
|
err error
|
||||||
id storage.ID
|
id storage.ID
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user