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
|
|
|
}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// DeleteSmallRes groups the resulting values of DeleteSmall operation.
|
2020-11-25 09:11:39 +00:00
|
|
|
type DeleteSmallRes struct{}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// DeleteSmall removes an object from blobovnicza of BLOB storage.
|
2020-11-25 09:11:39 +00:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
2022-03-17 13:26:17 +00:00
|
|
|
// Returns an error of type apistatus.ObjectNotFound if there is no object to delete.
|
2022-05-23 14:15:16 +00:00
|
|
|
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
|
|
|
}
|