Sebastiaan van Stijn
5ad5e5d0c5
Merge pull request #50913 from dmcgowan/prepare-client-0.1.0-beta
...
Prepare release notes for client/v0.1.0-beta.0
2025-09-05 21:59:48 +02:00
Derek McGowan
b5035def03
Prepare release notes for client/v0.1.0-beta.0
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2025-09-05 11:10:49 -07:00
Derek McGowan
76964752d3
Update client api version to v1.52.0-beta
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2025-09-05 11:10:49 -07:00
Sebastiaan van Stijn
59c2f2d5bc
Merge pull request #50907 from thaJeztah/move_build_options
...
api/types/build: move build options to client and backend
2025-09-05 19:46:25 +02:00
Sebastiaan van Stijn
2d1af4e4e4
api/types/build: move build options to client and backend
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-05 15:57:05 +02:00
Sebastiaan van Stijn
8b8a3cb14c
api/types/image: move LoadResponse to client
...
It's not the response coming from the API, but a wrapper for a response
reader. We should ultimately remove it.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-05 15:15:42 +02:00
Sebastiaan van Stijn
a064febe14
Merge pull request #50905 from thaJeztah/move_checkpoint_options
...
api/types/checkpoint: move checkpoint options to client
2025-09-05 13:01:52 +02:00
Sebastiaan van Stijn
432c9e81d1
Merge pull request #50772 from austinvazquez/move-build-cache-prune-options-from-api-to-client
...
api/types/build: move build cache prune options from api to client
2025-09-05 10:33:23 +02:00
Sebastiaan van Stijn
a8afc2c6fb
api/types/checkpoint: move checkpoint options to client
...
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 >
2025-09-05 10:20:06 +02:00
Sebastiaan van Stijn
a45639af26
Merge pull request #50897 from thaJeztah/move_container_options
...
api/types/container: move container options to client
2025-09-05 09:29:56 +02:00
Austin Vazquez
26e335b647
api/types/build: move CachePruneOptions to client mod
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-09-04 16:33:57 -05:00
Sebastiaan van Stijn
57ce548341
client: move container options together with their users
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-04 20:09:58 +02:00
Sebastiaan van Stijn
4d20b6fe56
api/types/container: move container options to client
...
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.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-04 20:09:55 +02:00
Cory Snider
1a86389419
api/types/network: separate Summary from Inspect
...
While the network Summary and Inspect types have been aliases in Go's
type system, in practice there is a difference: the Containers and
Services fields are only populated when inspecting a network. Split out
the common fields into a base network.Network struct which is embedded
in the network.Summary and network.Inspect types.
Signed-off-by: Cory Snider <csnider@mirantis.com >
2025-09-04 13:51:28 -04:00
Sebastiaan van Stijn
e46a991dc5
api: remove unused DefaultVersion, MinSupportedAPIVersion consts
...
These consts are no longer used, and separate consts were added in both
the client and daemon packages;
- client: 41da5700a4
- daemon: a632b8495b
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-04 07:30:35 -05:00
Austin Vazquez
e2e9f36c5f
api/types/system: move SecurityOpt type and DecodeSecurityOptions to client
...
This change moves the `system.SecurityOpt` type and `system.DecodeSecurityOptions` function to the client and adds a set of unit tests to capture current implementation. This change also create a set of daemon backend copies for usage.
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-09-03 12:49:06 -05:00
Austin Vazquez
ca97d071b7
fix: client vendor with config struct changes
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-09-03 10:32:58 -05:00
Paweł Gronowski
20b679b4a6
client: Extract clientConfig for opt applying
...
Change functional options for the client so that they operate on an
intermediate struct instead of the public `Client` instance directly.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:31 +02:00
Paweł Gronowski
9ddf9d87e7
client: Remove newMockClient
...
All of its usage was replaced by WithMockClient
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:31 +02:00
Paweł Gronowski
7cd089edd9
client/volume_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
72e11d78d7
client/task_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
a1e304f76c
client/system_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
407af72993
client/swarm_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
124bba478a
client/service_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
98434a5ea4
client/secret_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
c99f2eaf34
client/request_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
8581a15c25
client/plugin_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
0b577c703a
client/ping_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
d401228b43
client/options_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:23 +02:00
Paweł Gronowski
643e94ebf5
client/node_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
5a82c3397e
client/network_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
be76beee8f
client/image_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
005a289703
client/distribution_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
bc1d436aa9
client/container_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
c70aac772e
client/config_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
6452807fb4
client/client_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
a3d073e160
client/checkpoint_test: Use functional option to create mock client
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:17:22 +02:00
Paweł Gronowski
17396e5d94
client: Add WithMockClient opt
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2025-08-29 15:07:59 +02:00
Austin Vazquez
1b4fcb8da7
api/types/network: move CreateOptions type to client module
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-27 08:10:20 -05:00
Austin Vazquez
1e249cc309
api/types/network: move connect/disconnect options types to client module
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-27 07:05:52 -05:00
Paweł Gronowski
ed8a6a89ca
Merge pull request #50809 from thaJeztah/container_inspect_merge
...
api/types/container: merge InspectResponse and ContainerJSONBase
2025-08-27 12:26:19 +02:00
Sebastiaan van Stijn
6288414110
Merge pull request #50776 from austinvazquez/move-image-options-from-api-to-client
...
api/types/image: move image options from api to client
2025-08-27 00:45:28 +02:00
Austin Vazquez
853aed171b
api/types/image: move image option types to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 15:38:44 -05:00
Austin Vazquez
33066cddb1
api/types/swarm: move SecretListOptions type to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 14:15:35 -05:00
Sebastiaan van Stijn
fae54e03af
api/types/container: merge InspectResponse and ContainerJSONBase
...
Merge the two types instead of embedding the ContainerJSONBase.
This should have no impact on the API response, but users constructing
a response through struct literals will need to update their code.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-08-26 20:18:57 +02:00
Sebastiaan van Stijn
7145e7666b
Merge pull request #50794 from austinvazquez/move-swarm-option-types-to-client
...
api/types/swarm: move swarm option types to client
2025-08-26 18:44:02 +02:00
Austin Vazquez
94d0b10503
api/types/swarm: move ServiceInspectOptions type to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 07:21:46 -05:00
Austin Vazquez
a2291e5eac
api/types/swarm: move ServiceListOptions type to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 07:21:40 -05:00
Austin Vazquez
3b1e16594b
api/types/swarm: move ServiceUpdateOptions type to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 07:21:33 -05:00
Austin Vazquez
bb4125e89f
api/types/swarm: move ServiceCreateOptions type to client
...
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
2025-08-26 07:21:33 -05:00