compose/internal
Nicolas De Loof 4f6ed1f893 refactor(provider): move the provider plugin execution to internal/provider
Running a provider plugin (finding its binary, executing it, serving the
JSON messages it sends, applying the variables and endpoints it publishes,
streaming it an image) needs from the engine the Docker API, the event bus,
the Docker CLI that locates the plugin, the preparation of the environment
of a shelled-out command, and the lock that guards the project model every
concurrent provider run mutates.

It now lives in internal/provider behind a Backend interface that
composeService implements in pkg/compose/plugins.go, next to runPlugin, which
stays as a one-line forwarder so none of its callers (up, down, stop, pull)
changes. The relay it deploys goes through internal/relay, whose Backend the
new one extends. The public types and constants of the protocol (JsonMessage,
ProviderMetadata, the *Type message constants...) stay exported from
pkg/compose as aliases of the new package's.

The tests of the plugin protocol move with the code, assertions unchanged;
those of the provider image phase and of the relay link network removal
stay in pkg/compose. The forwarders to the relay that only the plugin code
used are dropped.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-15 09:10:05 +02:00
..
desktop fix(publish): bypass Docker Desktop proxy for loopback registries 2026-06-15 21:18:19 +02:00
experimental next release will be major version v5.x 2025-11-13 09:32:43 +01:00
inspect refactor(projectloader): move project loading and generation to internal/projectloader 2026-10-13 10:03:53 +02:00
locker build(deps): adopt compose-go jobs and the container-spec layering 2026-09-21 16:35:20 +02:00
memnet golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00
naming refactor(relay): move the provider relay management to internal/relay 2026-10-15 09:10:05 +02:00
oci test(oci): drop TestNewResolver_SendsPasswordGrant 2026-10-07 14:24:28 +02: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
progress refactor(provider): move the provider plugin execution to internal/provider 2026-10-15 09:10:05 +02:00
projectloader refactor(projectloader): move project loading and generation to internal/projectloader 2026-10-13 10:03:53 +02:00
provider refactor(provider): move the provider plugin execution to internal/provider 2026-10-15 09:10:05 +02:00
registry build(deps): bump secrets-engine client to v0.2.0 2026-10-12 16:31:10 +02:00
relay refactor(relay): move the provider relay management to internal/relay 2026-10-15 09:10:05 +02:00
sync fix: share --parallel budget across down's ops and up's log-attach 2026-10-01 16:02:14 +02:00
tracing build(deps): adopt compose-go jobs and the container-spec layering 2026-09-21 16:35:20 +02:00
variables.go format code with gofumpt 2024-12-17 16:50:14 +01:00