mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
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> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||