compose/internal/inspect
Nicolas De Loof c22ab50a61 refactor(inspect): move the read-only operations to internal/inspect
ps, ls, top, port, volumes, events and viz only read the state of a
project: they need the Docker API, the list of the project's containers
and the concurrency bound, nothing else of composeService.

They now live in internal/inspect, which declares that need as a Backend
interface. composeService implements it in a new file of pkg/compose and
forwards the seven api.Inspector methods, so no other file of pkg/compose
changes, and neither does the behavior: the service-level tests stay in
pkg/compose and run unchanged through the forwarders.

The few tiny helpers the operations share with the rest of pkg/compose
(canonical container name, concurrency-limited errgroup, project filter)
are copied for now: the shared kernel they belong to is a later step.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-13 10:03:53 +02:00
..
events.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
inspect.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
inspect_test.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
ls.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
ls_test.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
port.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
port_test.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
ps.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
top.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
viz.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00
volumes.go refactor(inspect): move the read-only operations to internal/inspect 2026-10-13 10:03:53 +02:00