From 72571236ab1b119ba2eb9c8ff557c30d7b173429 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 29 Oct 2020 14:22:58 -0400 Subject: [PATCH] clarify Get() error requirement --- store/store.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/store/store.go b/store/store.go index 80d56c1..200ff61 100644 --- a/store/store.go +++ b/store/store.go @@ -9,15 +9,15 @@ import ( type BlobStore interface { // Name of blob store (useful for metrics) Name() string - // Does blob exist in the store + // Does blob exist in the store. Has(hash string) (bool, error) - // Get the blob from the store + // Get the blob from the store. Must return ErrBlobNotFound if blob is not in store. Get(hash string) (stream.Blob, error) - // Put the blob into the store + // Put the blob into the store. Put(hash string, blob stream.Blob) error - // Put an SD blob into the store + // Put an SD blob into the store. PutSD(hash string, blob stream.Blob) error - // Delete the blob from the store + // Delete the blob from the store. Delete(hash string) error }