Skip to content

client: remove deprecated types and functions#50485

Merged
austinvazquez merged 5 commits intomoby:masterfrom
thaJeztah:client_remove_deprecated
Jul 23, 2025
Merged

client: remove deprecated types and functions#50485
austinvazquez merged 5 commits intomoby:masterfrom
thaJeztah:client_remove_deprecated

Conversation

@thaJeztah
Copy link
Member

relates to:

client: remove deprecated NewClient and NewEnvClient functions

The NewClient and NewEnvClient function were deprecated in 2018
through 772edd0, with the deprecation
message updated in a68ae4a and
6b9968e to make sure it's properly
identified as deprecated.

Now that the client is in a new module, we can remove the old.

client: remove deprecated ErrorConnectionFailed helper

This function was only used internally, and marked deprecated in
846b227.

Now that the client is in a new module, we can remove the old.

client: remove deprecated IsErrNotFound helper

This function was marked deprecated in 7aa7369,
and is no longer used.

Now that the client is in a new module, we can remove the old.

client: remove deprecated ImageInspectWithRaw

This function was deprecated in 639a121.
Now that the client is in a new module, we can remove the old.

This;

  • Removes the Client.ImageInspectWithRaw implementation.
  • Removes ImageAPIClient.ImageInspectWithRaw from the ImageAPIClient interface.
  • Removes APIClient.ImageInspectWithRaw from the APIClient interface.
  • Removes ImageAPIClientDeprecated.ImageInspectWithRaw from the ImageAPIClientDeprecated.
  • Removes the ImageAPIClientDeprecated interface.

Note that the ImageAPIClientDeprecated interface itself was not marked
as deprecated, but it has no known external users, and it has no remaining
definitions.

client: remove deprecated CommonAPIClient interface

This interface was marked deprecated in 2997c0d.

Now that the client is in a new module, we can remove the old.

- Human readable description for the release notes

Go SDK: client: remove deprecated `NewClient` and `NewEnvClient` functions.
Go SDK: client: remove deprecated `ErrorConnectionFailed` and `IsErrNotFound` functions.
Go SDK: client: remove the deprecated `Client.ImageInspectWithRaw` method.
Go SDK: client: remove `ImageAPIClient.ImageInspectWithRaw` from the `ImageAPIClient` interface.
Go SDK: client: remove `APIClient.ImageInspectWithRaw` from the `APIClient` interface.
Go SDK: client: remove `ImageAPIClientDeprecated.ImageInspectWithRaw` from the `ImageAPIClientDeprecated`.
Go SDK: client: remove the `ImageAPIClientDeprecated` interface.
Go SDK: client: remove the `CommonAPIClient` interface.

- A picture of a cute animal (not mandatory but encouraged)

The `NewClient` and `NewEnvClient` function were deprecated in 2018
through 772edd0, with the deprecation
message updated in a68ae4a and
6b9968e to make sure it's properly
identified as deprecated.

Now that the client is in a new module, we can remove the old.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was only used internally, and marked deprecated in
846b227.

Now that the client is in a new module, we can remove the old.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was marked deprecated in 7aa7369,
and is no longer used.

Now that the client is in a new module, we can remove the old.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This function was deprecated in 639a121.
Now that the client is in a new module, we can remove the old.

This;

- Removes the `Client.ImageInspectWithRaw` implementation.
- Removes `ImageAPIClient.ImageInspectWithRaw` from the `ImageAPIClient` interface.
- Removes `APIClient.ImageInspectWithRaw` from the `APIClient` interface.
- Removes `ImageAPIClientDeprecated.ImageInspectWithRaw` from the `ImageAPIClientDeprecated`.
- Removes the `ImageAPIClientDeprecated` interface.

Note that the `ImageAPIClientDeprecated` interface itself was not marked
as deprecated, but it has no known external users, and it has no remaining
definitions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This interface was marked deprecated in 2997c0d.

Now that the client is in a new module, we can remove the old.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@austinvazquez austinvazquez merged commit addc373 into moby:master Jul 23, 2025
295 of 298 checks passed
@thaJeztah thaJeztah deleted the client_remove_deprecated branch July 23, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants