mirror of
https://github.com/restic/restic.git
synced 2026-07-13 02:35:08 +00:00
Major restructure, bundle blobs
This commit also breaks the repository format.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user