frostfs-node/pkg/local_object_storage/blobstor/get_small.go
Pavel Karpy 281befec67 [#1418] blobstor: Do not use pointers as parameters
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-06-03 07:35:17 +03:00

25 lines
725 B
Go

package blobstor
// GetSmallPrm groups the parameters of GetSmallPrm operation.
type GetSmallPrm struct {
address
rwBlobovniczaID
}
// GetSmallRes groups the resulting values of GetSmall 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 the object
// from any blobovnicza.
//
// Returns any error encountered that
// did not allow to completely read the object.
//
// Returns an error of type apistatus.ObjectNotFound if the requested object is missing in blobovnicza(s).
func (b *BlobStor) GetSmall(prm GetSmallPrm) (*GetSmallRes, error) {
return b.blobovniczas.get(prm)
}