Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -5,8 +5,8 @@ import ( |
| 5 | 5 |
"errors" |
| 6 | 6 |
"fmt" |
| 7 | 7 |
|
| 8 |
+ cerrdefs "github.com/containerd/errdefs" |
|
| 8 | 9 |
"github.com/docker/docker/api/types/versions" |
| 9 |
- "github.com/docker/docker/errdefs" |
|
| 10 | 10 |
) |
| 11 | 11 |
|
| 12 | 12 |
// errConnectionFailed implements an error returned when connection failed. |
| ... | ... |
@@ -48,9 +48,11 @@ func connectionFailed(host string) error {
|
| 48 | 48 |
} |
| 49 | 49 |
|
| 50 | 50 |
// IsErrNotFound returns true if the error is a NotFound error, which is returned |
| 51 |
-// by the API when some object is not found. It is an alias for [errdefs.IsNotFound]. |
|
| 51 |
+// by the API when some object is not found. It is an alias for [cerrdefs.IsNotFound]. |
|
| 52 |
+// |
|
| 53 |
+// Deprecated: use [cerrdefs.IsNotFound] instead. |
|
| 52 | 54 |
func IsErrNotFound(err error) bool {
|
| 53 |
- return errdefs.IsNotFound(err) |
|
| 55 |
+ return cerrdefs.IsNotFound(err) |
|
| 54 | 56 |
} |
| 55 | 57 |
|
| 56 | 58 |
type objectNotFoundError struct {
|