[#220] blobstor: Implement "small" operations

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-30 19:16:20 +03:00 committed by Alex Vanin
parent 7f20e6f9db
commit 7512a5ba18
3 changed files with 4 additions and 8 deletions

View file

@ -19,5 +19,5 @@ type DeleteSmallRes struct{}
// //
// Returns ErrObjectNotFound if there is no object to delete. // Returns ErrObjectNotFound if there is no object to delete.
func (b *BlobStor) DeleteSmall(prm *DeleteSmallPrm) (*DeleteSmallRes, error) { func (b *BlobStor) DeleteSmall(prm *DeleteSmallPrm) (*DeleteSmallRes, error) {
panic("implement me") return b.blobovniczas.delete(prm)
} }

View file

@ -19,6 +19,6 @@ type GetRangeSmallRes struct {
// //
// Returns any error encountered that // Returns any error encountered that
// did not allow to completely read the object payload range. // did not allow to completely read the object payload range.
func (b *BlobStor) GetRangeSmall(prm *GetRangeBigPrm) (*GetRangeBigRes, error) { func (b *BlobStor) GetRangeSmall(prm *GetRangeSmallPrm) (*GetRangeSmallRes, error) {
panic("implement me") return b.blobovniczas.getRange(prm)
} }

View file

@ -1,9 +1,5 @@
package blobstor package blobstor
import (
"github.com/pkg/errors"
)
// GetSmallPrm groups the parameters of GetSmallPrm operation. // GetSmallPrm groups the parameters of GetSmallPrm operation.
type GetSmallPrm struct { type GetSmallPrm struct {
address address
@ -23,5 +19,5 @@ type GetSmallRes struct {
// Returns any error encountered that // Returns any error encountered that
// did not allow to completely read the object. // did not allow to completely read the object.
func (b *BlobStor) GetSmall(prm *GetSmallPrm) (*GetSmallRes, error) { func (b *BlobStor) GetSmall(prm *GetSmallPrm) (*GetSmallRes, error) {
return nil, errors.New("method GetSmall is not implemented yet") return b.blobovniczas.get(prm)
} }