README
¶
#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>?ttl=<ttl> Request body: "<ip>:<port1>"
<- OK
-> POST https://discovery-stage.hub.docker.com/v1/clusters/<token>?ttl=<ttl> 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
Documentation
¶
Index ¶
Constants ¶
const DiscoveryURL = "https://discovery-stage.hub.docker.com/v1"
DiscoveryUrl is exported
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discovery ¶ added in v0.3.0
type Discovery struct {
// contains filtered or unexported fields
}
Discovery is exported
func (*Discovery) CreateCluster ¶ added in v0.3.0
CreateCluster returns a unique cluster token
func (*Discovery) Initialize ¶ added in v0.3.0
Initialize is exported