package token
import "github.com/docker/swarm/discovery/token"
Index ¶
- func Init()
- type Discovery
- func (s *Discovery) CreateCluster() (string, error)
- func (s *Discovery) Initialize(urltoken string, heartbeat time.Duration, ttl time.Duration, _ map[string]string) error
- func (s *Discovery) Register(addr string) error
- func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error)
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 ¶
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 ¶
Register adds a new entry identified by the into the discovery service.
func (*Discovery) Watch ¶
Watch is exported.
Source Files ¶
- Version
- v1.2.9 (latest)
- Published
- Jun 1, 2018
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 weeks ago –
Tools for package owners.