From 915243c69e1362f3b04d31b94f9b53dc7c213514 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 25 Nov 2020 12:11:39 +0300 Subject: [PATCH] [#211] blobstor: Define DeleteSmall operation Signed-off-by: Leonard Lyubich --- .../blobstor/delete_small.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkg/local_object_storage/blobstor/delete_small.go diff --git a/pkg/local_object_storage/blobstor/delete_small.go b/pkg/local_object_storage/blobstor/delete_small.go new file mode 100644 index 000000000..6c7a2b83b --- /dev/null +++ b/pkg/local_object_storage/blobstor/delete_small.go @@ -0,0 +1,22 @@ +package blobstor + +// DeleteSmallPrm groups the parameters of DeleteSmall operation. +type DeleteSmallPrm struct { + address +} + +// DeleteSmallRes groups resulting values of DeleteSmall operation. +type DeleteSmallRes struct{} + +// DeleteSmall removes object from blobovnicza of BLOB storage. +// +// If blobovnicza ID is not set or set to nil, BlobStor tries to +// find and remove object from any blobovnicza. +// +// Returns any error encountered that did not allow +// to completely remove the object. +// +// Returns ErrObjectNotFound if there is no object to delete. +func (b *BlobStor) DeleteSmall(prm *DeleteSmallPrm) (*DeleteSmallRes, error) { + panic("implement me") +}