2022-03-17 08:03:58 +00:00
|
|
|
package blobovnicza
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
2022-03-17 08:03:58 +00:00
|
|
|
)
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// IsErrNotFound checks if the error returned by Blobovnicza Get/Delete method
|
|
|
|
// corresponds to the missing object.
|
2022-03-17 08:03:58 +00:00
|
|
|
func IsErrNotFound(err error) bool {
|
|
|
|
return errors.As(err, new(apistatus.ObjectNotFound))
|
|
|
|
}
|