Documentation
¶
Overview ¶
Package local is the OSS swarms.Registry: it resolves exactly one swarm, the one this controller runs in, over the docker.sock it is mounted with (D2).
It is a package of its own rather than a default inside the seam, so that the seam stays a leaf. swarms is the contract a companion implements; building the local backend needs swarmcli-cd/backend, the whole Docker applier, and with the default living in the seam every importer of the contract linked the implementation. prune is the one that shows why that is wrong — it advertises itself as pure policy and could not build without the applier.
The binary blank-imports this. cmd/swarmcli-cd/main.go is already the file whose entire purpose is blank imports, which is where the companion adds its own; see docs/extensibility.md.