File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "errors"
66 "fmt"
77
8+ cerrdefs "github.com/containerd/errdefs"
89 "github.com/docker/docker/api/types/versions"
9- "github.com/docker/docker/errdefs"
1010)
1111
1212// errConnectionFailed implements an error returned when connection failed.
@@ -48,9 +48,11 @@ func connectionFailed(host string) error {
4848}
4949
5050// 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.
5254func IsErrNotFound (err error ) bool {
53- return errdefs .IsNotFound (err )
55+ return cerrdefs .IsNotFound (err )
5456}
5557
5658type objectNotFoundError struct {
You can’t perform that action at this time.
0 commit comments