mirror of https://github.com/docker/docs.git
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> |
||
---|---|---|
.. | ||
nodes.go | ||
nodes_test.go |