forked from TrueCloudLab/frostfs-node
7512a5ba18
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
23 lines
604 B
Go
23 lines
604 B
Go
package blobstor
|
|
|
|
// GetSmallPrm groups the parameters of GetSmallPrm operation.
|
|
type GetSmallPrm struct {
|
|
address
|
|
rwBlobovniczaID
|
|
}
|
|
|
|
// GetBigRes groups resulting values of GetBig operation.
|
|
type GetSmallRes struct {
|
|
roObject
|
|
}
|
|
|
|
// GetSmall reads the object from blobovnicza of BLOB storage by address.
|
|
//
|
|
// If blobovnicza ID is not set or set to nil, BlobStor tries to get object
|
|
// from any blobovnicza.
|
|
//
|
|
// Returns any error encountered that
|
|
// did not allow to completely read the object.
|
|
func (b *BlobStor) GetSmall(prm *GetSmallPrm) (*GetSmallRes, error) {
|
|
return b.blobovniczas.get(prm)
|
|
}
|