backends: Add Save() function

This commit is contained in:
Alexander Neumann
2016-01-24 01:15:35 +01:00
parent adbe9e2e1c
commit ed172c06e0
6 changed files with 112 additions and 3 deletions
+3
View File
@@ -40,6 +40,9 @@ type Backend interface {
// and saves it in p. Load has the same semantics as io.ReaderAt.
Load(h Handle, p []byte, off int64) (int, error)
// Save stores the data in the backend under the given handle.
Save(h Handle, p []byte) error
// Stat returns information about the blob identified by h.
Stat(h Handle) (BlobInfo, error)
}