Skip to content

Conversation

@thaJeztah
Copy link
Member

cli/command/context: deprecate exported types and functions

These functions and types are shallow wrappers around the context store and were intended for internal use as implementation for the CLI itself.

They were exported in 3126920 to be used by plugins and Docker Desktop. However, there's currently no public uses of this, and Docker Desktop does not use these functions.

This patch deprecates the exported functions as they were meant to be implementation specific for the CLI. If there's a need to provide utilities for manipulating the context-store other than through the CLI itself, we can consider creating an SDK for that purpose.

This deprecates:

  • RunCreate and CreateOptions
  • RunExport and ExportOptions
  • RunImport
  • RunRemove and RemoveOptions
  • RunUpdate and UpdateOptions
  • RunUse

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Go SDK: cli/command/context: deprecate `RunCreate` and `CreateOptions`
Go SDK: cli/command/context: deprecate `RunExport` and `ExportOptions`
Go SDK: cli/command/context: deprecate `RunImport`
Go SDK: cli/command/context: deprecate `RunRemove` and `RemoveOptions`
Go SDK: cli/command/context: deprecate `RunUpdate` and `UpdateOptions`
Go SDK: cli/command/context: deprecate `RunUse`

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

@thaJeztah thaJeztah added this to the 28.4.0 milestone Aug 29, 2025
@thaJeztah thaJeztah added impact/changelog impact/deprecation status/2-code-review area/context area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code labels Aug 29, 2025
@codecov-commenter
Copy link

These functions and types are shallow wrappers around the context
store and were intended for internal use as implementation for the
CLI itself.

They were exported in 3126920 to be
used by plugins and Docker Desktop. However, there's currently no public
uses of this, and Docker Desktop does not use these functions.

This patch deprecates the exported functions as they were meant to be
implementation specific for the CLI. If there's a need to provide
utilities for manipulating the context-store other than through the
CLI itself, we can consider creating an SDK for that purpose.

This deprecates:

- `RunCreate` and `CreateOptions`
- `RunExport` and `ExportOptions`
- `RunImport`
- `RunRemove` and `RemoveOptions`
- `RunUpdate` and `UpdateOptions`
- `RunUse`

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 95eeafa)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the 28.x_backport_deprecate_context_funcs branch from e319ac1 to 925db59 Compare August 30, 2025 10:13
@thaJeztah thaJeztah merged commit d593e61 into docker:28.x Sep 1, 2025
100 of 101 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_deprecate_context_funcs branch September 1, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/context area/go-sdk Changes affecting the Go SDK impact/changelog impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants