BREAKING CHANGE(DockerHost): Rename array-returning get* methods to list* on DockerHost and related resource classes; update docs, tests and changelog

This commit is contained in:
2025-11-24 13:27:10 +00:00
parent 15e5dedae4
commit 08dbad47bc
12 changed files with 61 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ The module has been restructured to follow a clean OOP Facade pattern:
const network = await DockerNetwork.createNetwork(dockerHost, descriptor);
// New (clean API):
const containers = await dockerHost.getContainers();
const containers = await dockerHost.listContainers();
const network = await dockerHost.createNetwork(descriptor);
```
@@ -113,7 +113,7 @@ await dockerHost.createService({
### Migration Guide
Replace all static method calls with dockerHost methods:
- `DockerContainer.getContainers(host)` → `dockerHost.getContainers()`
- `DockerContainer.getContainers(host)` → `dockerHost.listContainers()`
- `DockerImage.createFromRegistry(host, opts)` → `dockerHost.createImageFromRegistry(opts)`
- `DockerService.createService(host, desc)` → `dockerHost.createService(desc)`
- `dockerHost.imageStore.storeImage(...)` → `dockerHost.storeImage(...)`