frostfs-node/pkg/local_object_storage/blobstor/get_small.go
Pavel Karpy 48827f42d3 [#643] pkg: Sync method names and commentaries to them
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-24 16:10:44 +03:00

23 lines
608 B
Go

package blobstor
// GetSmallPrm groups the parameters of GetSmallPrm operation.
type GetSmallPrm struct {
address
rwBlobovniczaID
}
// GetSmallRes groups 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 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)
}