forked from TrueCloudLab/restic
Major restructure, bundle blobs
This commit also breaks the repository format.
This commit is contained in:
parent
b836da1980
commit
60a0fe8349
29 changed files with 937 additions and 1123 deletions
|
@ -18,7 +18,7 @@ const (
|
|||
Version = 1
|
||||
)
|
||||
|
||||
// A Backend manages blobs of data.
|
||||
// A Backend manages data stored somewhere.
|
||||
type Backend interface {
|
||||
// Location returns a string that specifies the location of the repository,
|
||||
// like a URL.
|
||||
|
@ -31,6 +31,10 @@ type Backend interface {
|
|||
// Get returns an io.ReadCloser for the Blob with the given name of type t.
|
||||
Get(t Type, name string) (io.ReadCloser, error)
|
||||
|
||||
// GetReader returns an io.ReadCloser for the Blob with the given name of
|
||||
// type t at offset and length.
|
||||
GetReader(t Type, name string, offset, length uint) (io.ReadCloser, error)
|
||||
|
||||
// Test a boolean value whether a Blob with the name and type exists.
|
||||
Test(t Type, name string) (bool, error)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue