docker/swarm — pull request #208 by vieux (2014-12-29 20:52:27+00:00)
Title: Proposal: standardise protocols

Let's standardise the way addrs are handles by swarm:

```
-------------- --------------------- ----------------
| swarm join | ----------------> | discovery service | ----------------> | swarm manage |
-------------- --------------------- ----------------
| --------------
----------------------------> | swarm list |
--------------
```

#### Swarm join

`swarm join` will support those formats:
* `tcp://`
* `http://`
* `https://`
* `` (`swarm` will transform this to `tcp://` before sending it the the discovery service)

Any other protocol will be denied

#### Swarm manage

`swarm manage` will work the same way as docker:
* `tcp://`: swarm will try to connect using `https` if the `--tls` otherwise `http`
* `http://`: swarm will always connect using `http`
* `https://`: swarm will always connect using `https`

#### Swarm list

`swarm list` will always display addrs with a protocol, either `tcp://`, `http://` or `https://`