store: implement s3 blob store (#2005)

This commit is contained in:
ben-toogood
2020-09-15 17:09:40 +01:00
committed by GitHub
parent d5bfa1e795
commit 35349bd313
10 changed files with 348 additions and 11 deletions

View File

@@ -126,11 +126,7 @@ func (b *blobStore) Delete(key string, opts ...store.BlobOption) error {
// check for the namespaces bucket
bucket := tx.Bucket([]byte(options.Namespace))
if bucket == nil {
return store.ErrNotFound
}
if bucket.Get([]byte(key)) == nil {
return store.ErrNotFound
return nil
}
return bucket.Delete([]byte(key))