2020-11-24 14:19:44 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
// GetRangeSmallPrm groups the parameters of GetRangeSmall operation.
|
|
|
|
type GetRangeSmallPrm struct {
|
|
|
|
address
|
|
|
|
rwRange
|
|
|
|
rwBlobovniczaID
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetRangeSmallRes groups resulting values of GetRangeSmall operation.
|
|
|
|
type GetRangeSmallRes struct {
|
|
|
|
rangeData
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetRangeSmall reads data of object payload range from blobovnicza of BLOB storage.
|
|
|
|
//
|
|
|
|
// If blobovnicza ID is not set or set to nil, BlobStor tries to get payload range
|
|
|
|
// from any blobovnicza.
|
|
|
|
//
|
|
|
|
// Returns any error encountered that
|
|
|
|
// did not allow to completely read the object payload range.
|
2020-12-08 16:53:01 +00:00
|
|
|
//
|
|
|
|
// Returns ErrRangeOutOfBounds if requested object range is out of bounds.
|
2022-03-17 08:03:58 +00:00
|
|
|
// Returns apistatus.ObjectNotFound if requested object is missing in blobovnicza(s).
|
2020-11-30 16:16:20 +00:00
|
|
|
func (b *BlobStor) GetRangeSmall(prm *GetRangeSmallPrm) (*GetRangeSmallRes, error) {
|
|
|
|
return b.blobovniczas.getRange(prm)
|
2020-11-24 14:19:44 +00:00
|
|
|
}
|