mirror of
https://github.com/restic/restic.git
synced 2025-08-13 22:07:42 +00:00
Add decrypt, refactor
This commit is contained in:
21
backend/interface.go
Normal file
21
backend/interface.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package backend
|
||||
|
||||
type Type string
|
||||
|
||||
const (
|
||||
Blob Type = "blob"
|
||||
Key = "key"
|
||||
Lock = "lock"
|
||||
Snapshot = "snapshot"
|
||||
Tree = "tree"
|
||||
)
|
||||
|
||||
type Server interface {
|
||||
Create(Type, []byte) (ID, error)
|
||||
Get(Type, ID) ([]byte, error)
|
||||
List(Type) (IDs, error)
|
||||
Test(Type, ID) (bool, error)
|
||||
Remove(Type, ID) error
|
||||
|
||||
Location() string
|
||||
}
|
Reference in New Issue
Block a user