compose/internal
Nicolas De Loof 00316eee35 refactor: give each component only the engine families it uses
The packages extracted from pkg/compose (build, images, relay, containerops,
logstream, devwatch, inspect, projectloader, publish, provider) each received
the whole moby client through a single APIClient accessor, and the classic
image build reached the daemon through the Docker CLI.

Their Backend interfaces now ask for the client interfaces moby defines per
resource (ContainerAPI, NetworkAPI, ImageAPI, ImageBuildAPI, ExecAPI,
VolumeAPI, SystemAPI, DistributionAPI), and only for those the component
calls: containerops works on containers alone, registry only resolves
digests, and so on. The helpers they call (registry, desktop, the log stream
monitor) take the matching family. composeService implements every accessor
with its engine.

composeService gets an optional engine field, used instead of the client of
the Docker CLI when set. The CLI client still backs it by default, resolved on
first use as before, since it initializes lazily. WithDryRun refuses a service
holding an engine, as the dry-run client only wraps the CLI's one. Close
releases the engine handed to the service, while the CLI's client stays with
the CLI.

No behavior change.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-11-27 10:10:21 +01:00
..
build refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
concurrency refactor(compose): share the bounded per-container fan-out 2026-10-29 11:59:43 +01:00
confighash refactor: move the config-hash helpers to internal/confighash 2026-10-29 08:20:15 +01:00
containerops refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
depgraph refactor(compose): move the dependency graph to internal/depgraph 2026-11-05 11:42:19 +01:00
desktop refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
devwatch refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
e2e test(e2e): move the compose file of TestPreStopHookWhenUpStopsAContainer to internal/e2e 2026-11-27 08:40:27 +01:00
engine refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
envresolver refactor(compose): move the image build to internal/build 2026-11-16 15:11:08 +01:00
experimental next release will be major version v5.x 2025-11-13 09:32:43 +01:00
images refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
inspect refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
jobsapi jobs: add the engine's jobs API contract and its gRPC client 2026-11-17 13:48:57 +01:00
locker build(deps): adopt compose-go jobs and the container-spec layering 2026-09-21 16:35:20 +02:00
logstream refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
memnet golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00
naming refactor(compose): filter the containers of a service in one place 2026-10-29 11:59:43 +01:00
oci fix(oci): verify the manifests fetched against their digest 2026-11-11 08:52:55 +01:00
paths use go-compose instead Signed-off-by: tensorworker <tensorworker@proton.me> 2026-01-15 08:24:20 +01:00
pidfile use new moby/moby modules instead of docker/docker dependency 2026-04-08 08:50:50 +02:00
planning fix(executor): skip pre_stop on the container a recreate replaces 2026-11-27 08:40:27 +01:00
progress refactor(compose): move the image build to internal/build 2026-11-16 15:11:08 +01:00
projectloader refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
provider refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
publish refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
registry refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
relay refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
sync fix(watch): delete a large batch of synced paths in several execs 2026-11-18 08:23:13 +01:00
tracing refactor(compose): collect map keys with the standard library 2026-10-29 11:59:43 +01:00
variables.go format code with gofumpt 2024-12-17 16:50:14 +01:00