2020-11-24 14:02:41 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
// GetSmallPrm groups the parameters of GetSmallPrm operation.
|
|
|
|
type GetSmallPrm struct {
|
|
|
|
address
|
|
|
|
rwBlobovniczaID
|
|
|
|
}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// GetSmallRes groups the 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.
|
|
|
|
//
|
2022-04-21 11:28:05 +00:00
|
|
|
// If blobovnicza ID is not set or set to nil, BlobStor tries to get the object
|
2020-11-24 14:02:41 +00:00
|
|
|
// from any blobovnicza.
|
|
|
|
//
|
|
|
|
// Returns any error encountered that
|
|
|
|
// did not allow to completely read the object.
|
2022-03-17 08:03:58 +00:00
|
|
|
//
|
2022-04-21 11:28:05 +00:00
|
|
|
// Returns an error of type apistatus.ObjectNotFound if the requested object is missing in blobovnicza(s).
|
2022-05-31 12:18:32 +00:00
|
|
|
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
|
|
|
}
|