backends: Add Save() function

This commit is contained in:
Alexander Neumann committed 2016-01-24 01:15:35 +01:00
1 parent adbe9e2e1c
commit ed172c06e0
6 files changed
+112 -3

No files matched your search

+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)
}