docs/discovery/token
Kushal Pisavadia 78dba5d623 Remove prefixes from DiscoveryService implementations
All of these structs are public. Previously when they were used, they'd
look like the following:

 - `consul.ConsulDiscoveryService`
 - `etcd.EtcdDiscoveryService`
 - `file.FileDiscoveryService`
 - `nodes.NodesDiscoveryService`
 - `token.TokenDiscoveryService`
 - `zookeeper.ZkDiscoveryService`

As a result, they stuttered when read. This commit removes the
duplication of the package names on the struct so that they read better.

See also: https://golang.org/ref/spec#Import_declarations

Signed-off-by: Kushal Pisavadia <kushi.p@gmail.com>
2015-04-15 20:58:17 +01:00
..
README.md Doc changed to avoid errors with POST calls to Docker Hub Discovery Service API 2015-04-07 14:36:07 -07:00
token.go Remove prefixes from DiscoveryService implementations 2015-04-15 20:58:17 +01:00
token_test.go Remove prefixes from DiscoveryService implementations 2015-04-15 20:58:17 +01:00

README.md

#discovery-stage.hub.docker.com

Docker Swarm comes with a simple discovery service built into the Docker Hub

The discovery service is still in alpha stage and currently hosted at https://discovery-stage.hub.docker.com

#####Create a new cluster -> POST https://discovery-stage.hub.docker.com/v1/clusters

<- <token>

#####Add new nodes to a cluster -> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> Request body: "<ip>:<port1>"

<- OK

-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token> Request body: "<ip>:<port2>")

<- OK

#####List nodes in a cluster -> GET https://discovery-stage.hub.docker.com/v1/clusters/<token>

<- ["<ip>:<port1>", "<ip>:<port2>"]

#####Delete a cluster (all the nodes in a cluster) -> DELETE https://discovery-stage.hub.docker.com/v1/clusters/<token>

<- OK