mirror of
https://github.com/docker/docs.git
synced 2026-04-01 00:38:52 +07:00
Since Swarm discovery is used by libnetwork without the swarm main(), it is forced to use annonymous import in order to force-trigger the unexported init() methods. Using annonymous import is highly discouraged in a Non-Main and Non-Test packages. Introducing exported Init() methods on these files so that libnetwork can use Discovery as a library without having a main package. Signed-off-by: Madhu Venugopal <madhu@docker.com>