2020-11-24 14:02:41 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
// GetSmallPrm groups the parameters of GetSmallPrm operation.
|
|
|
|
type GetSmallPrm struct {
|
|
|
|
address
|
|
|
|
rwBlobovniczaID
|
|
|
|
}
|
|
|
|
|
2021-06-23 13:29:46 +00:00
|
|
|
// GetSmallRes groups resulting values of GetSmall operation.
|
2020-11-24 14:02:41 +00:00
|
|
|
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) {
|
2020-11-30 16:16:20 +00:00
|
|
|
return b.blobovniczas.get(prm)
|
2020-11-24 14:02:41 +00:00
|
|
|
}
|