compose/pkg
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
..
api run: trigger a job through the engine like a service 2026-11-17 13:48:57 +01:00
bridge refactor(compose): share the label filter builders 2026-10-29 11:59:43 +01:00
compose refactor: give each component only the engine families it uses 2026-11-27 10:10:21 +01:00
dryrun feat(registry): use the Docker Desktop Hub session for Docker Hub credentials 2026-10-07 14:24:28 +02:00
mocks run: trigger a job through the engine like a service 2026-11-17 13:48:57 +01:00
remote feat(oci): directly load from cache if possible 2026-11-26 16:07:36 +01:00
utils fix: make e2e tests pass reliably locally with Docker Desktop 2026-05-18 10:55:41 +02:00
watch golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00