forked from TrueCloudLab/frostfs-node
318639e5bf
`apistatus` package provides types which implement build-in `error` interface. Add `error of type` pattern when documenting these errors in order to clarify how these errors should be handled (e.g. `errors.Is` is not good). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
27 lines
879 B
Go
27 lines
879 B
Go
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.
|
|
//
|
|
// Returns ErrRangeOutOfBounds if requested object range is out of bounds.
|
|
// Returns an error of type apistatus.ObjectNotFound if requested object is missing in blobovnicza(s).
|
|
func (b *BlobStor) GetRangeSmall(prm *GetRangeSmallPrm) (*GetRangeSmallRes, error) {
|
|
return b.blobovniczas.getRange(prm)
|
|
}
|