Add 'version' file to local backend
This commit is contained in:
parent
30ab03b7b7
commit
bfd99a9be6
2 changed files with 79 additions and 9 deletions
|
@ -10,12 +10,17 @@ const (
|
|||
Tree = "tree"
|
||||
)
|
||||
|
||||
const (
|
||||
BackendVersion = 1
|
||||
)
|
||||
|
||||
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
|
||||
Version() uint
|
||||
|
||||
Location() string
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue