forked from TrueCloudLab/frostfs-node
[#220] blobstor: Implement "small" operations
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7f20e6f9db
commit
7512a5ba18
3 changed files with 4 additions and 8 deletions
|
@ -19,5 +19,5 @@ type DeleteSmallRes struct{}
|
|||
//
|
||||
// Returns ErrObjectNotFound if there is no object to delete.
|
||||
func (b *BlobStor) DeleteSmall(prm *DeleteSmallPrm) (*DeleteSmallRes, error) {
|
||||
panic("implement me")
|
||||
return b.blobovniczas.delete(prm)
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@ type GetRangeSmallRes struct {
|
|||
//
|
||||
// Returns any error encountered that
|
||||
// did not allow to completely read the object payload range.
|
||||
func (b *BlobStor) GetRangeSmall(prm *GetRangeBigPrm) (*GetRangeBigRes, error) {
|
||||
panic("implement me")
|
||||
func (b *BlobStor) GetRangeSmall(prm *GetRangeSmallPrm) (*GetRangeSmallRes, error) {
|
||||
return b.blobovniczas.getRange(prm)
|
||||
}
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
package blobstor
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// GetSmallPrm groups the parameters of GetSmallPrm operation.
|
||||
type GetSmallPrm struct {
|
||||
address
|
||||
|
@ -23,5 +19,5 @@ type GetSmallRes struct {
|
|||
// Returns any error encountered that
|
||||
// did not allow to completely read the object.
|
||||
func (b *BlobStor) GetSmall(prm *GetSmallPrm) (*GetSmallRes, error) {
|
||||
return nil, errors.New("method GetSmall is not implemented yet")
|
||||
return b.blobovniczas.get(prm)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue