client: remove deprecated types and functions by thaJeztah · Pull Request #50485 · moby/moby · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions client/client_deprecated.go

This file was deleted.

15 changes: 0 additions & 15 deletions client/client_interfaces.go
15 changes: 0 additions & 15 deletions client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ func IsErrConnectionFailed(err error) bool {
return errors.As(err, &errConnectionFailed{})
}

// ErrorConnectionFailed returns an error with host in the error message when connection to docker daemon failed.
//
// Deprecated: this function was only used internally, and will be removed in the next release.
func ErrorConnectionFailed(host string) error {
return connectionFailed(host)
}

// connectionFailed returns an error with host in the error message when connection
// to docker daemon failed.
func connectionFailed(host string) error {
Expand All @@ -49,14 +42,6 @@ func connectionFailed(host string) error {
return errConnectionFailed{error: err}
}

// IsErrNotFound returns true if the error is a NotFound error, which is returned
// by the API when some object is not found. It is an alias for [cerrdefs.IsNotFound].
//
// Deprecated: use [cerrdefs.IsNotFound] instead.
func IsErrNotFound(err error) bool {
return cerrdefs.IsNotFound(err)
}

type objectNotFoundError struct {
object string
id string
Expand Down
12 changes: 0 additions & 12 deletions client/image_inspect.go
27 changes: 0 additions & 27 deletions vendor/github.com/moby/moby/client/client_deprecated.go

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/moby/moby/client/client_interfaces.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions vendor/github.com/moby/moby/client/errors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions vendor/github.com/moby/moby/client/image_inspect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.