Skip to content

api/types/checkpoint: move checkpoint options to client#50905

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:move_checkpoint_options
Sep 5, 2025
Merged

api/types/checkpoint: move checkpoint options to client#50905
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:move_checkpoint_options

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Sep 5, 2025

Move the option-types to the client and in some cases create a copy for the backend. These types are used to construct query- args, and not marshaled to JSON, and can be replaced with functional options in the client.

The CreateOptions type was used both as options-struct for the client, and as struct to marshal/unmarshal the request. For this type, a copy is created in the Client and a new checkpoint.CreateRequest is added in the API.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Go SDK: api/types/checkpoint: move checkpoint options to client module

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

@thaJeztah thaJeztah added this to the 29.0.0 milestone Sep 5, 2025
@thaJeztah thaJeztah added area/api API area/cli Client status/2-code-review impact/api impact/changelog kind/refactor PR's that refactor, or clean-up code go-modules impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Sep 5, 2025
Move the option-types to the client and in some cases create a
copy for the backend. These types are used to construct query-
args, and not marshaled to JSON, and can be replaced with functional
options in the client.

The CreateOptions type was used both as options-struct for the client,
and as struct to marshal/unmarshal the request. For this type, a copy
is created in the Client and a new `checkpoint.CreateRequest` is added
in the API.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah merged commit a064feb into moby:master Sep 5, 2025
208 of 209 checks passed
@thaJeztah thaJeztah deleted the move_checkpoint_options branch September 5, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api API area/cli Client go-modules impact/api impact/changelog 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.

2 participants