token

package
v0.0.0-...-c9014b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 8 Imported by: 0

README

#discovery.hub.docker.com

Docker Swarm comes with a simple discovery service built into the Docker Hub. To read the end-user API documentation, visit the Swarm discovery documentation on docs.docker.com. If you want to modify the discovery documentation, start with [the docs/discovery.md]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init is exported

Types

type Discovery

type Discovery struct {
	// contains filtered or unexported fields
}

Discovery is exported

func (*Discovery) CreateCluster

func (s *Discovery) CreateCluster() (string, error)

CreateCluster returns a unique cluster token

func (*Discovery) Initialize

func (s *Discovery) Initialize(urltoken string, heartbeat time.Duration, ttl time.Duration, _ map[string]string) error

Initialize is exported

func (*Discovery) Register

func (s *Discovery) Register(addr string) error

Register adds a new entry identified by the into the discovery service

func (*Discovery) Watch

func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error)

Watch is exported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL