forked from TrueCloudLab/restic
backend/server: remove id and version from backend
This commit is contained in:
parent
1cedff0e9e
commit
2fb1783885
6 changed files with 28 additions and 246 deletions
|
@ -11,10 +11,7 @@ const (
|
|||
Lock = "lock"
|
||||
Snapshot = "snapshot"
|
||||
Index = "index"
|
||||
)
|
||||
|
||||
const (
|
||||
Version = 1
|
||||
Config = "config"
|
||||
)
|
||||
|
||||
// A Backend manages data stored somewhere.
|
||||
|
@ -43,17 +40,9 @@ type Backend interface {
|
|||
// Close the backend
|
||||
Close() error
|
||||
|
||||
Identifier
|
||||
Lister
|
||||
}
|
||||
|
||||
type Identifier interface {
|
||||
// ID returns a unique ID for a specific repository. This means restic can
|
||||
// recognize repositories accessed via different methods (e.g. local file
|
||||
// access and sftp).
|
||||
ID() string
|
||||
}
|
||||
|
||||
type Lister interface {
|
||||
// List returns a channel that yields all names of blobs of type t in
|
||||
// lexicographic order. A goroutine is started for this. If the channel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue