2020-11-25 09:11:39 +00:00
|
|
|
package blobstor
|
|
|
|
|
|
|
|
// DeleteSmallPrm groups the parameters of DeleteSmall operation.
|
|
|
|
type DeleteSmallPrm struct {
|
|
|
|
address
|
2020-11-30 06:58:41 +00:00
|
|
|
rwBlobovniczaID
|
2020-11-25 09:11:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteSmallRes groups resulting values of DeleteSmall operation.
|
|
|
|
type DeleteSmallRes struct{}
|
|
|
|
|
|
|
|
// DeleteSmall removes object from blobovnicza of BLOB storage.
|
|
|
|
//
|
|
|
|
// If blobovnicza ID is not set or set to nil, BlobStor tries to
|
|
|
|
// find and remove object from any blobovnicza.
|
|
|
|
//
|
|
|
|
// Returns any error encountered that did not allow
|
|
|
|
// to completely remove the object.
|
|
|
|
//
|
|
|
|
// Returns ErrObjectNotFound if there is no object to delete.
|
|
|
|
func (b *BlobStor) DeleteSmall(prm *DeleteSmallPrm) (*DeleteSmallRes, error) {
|
2020-11-30 16:16:20 +00:00
|
|
|
return b.blobovniczas.delete(prm)
|
2020-11-25 09:11:39 +00:00
|
|
|
}
|