package discovery

import "github.com/docker/cli/components/engine/daemon/discovery"

Index

Variables

var ErrDiscoveryDisabled = errors.New("discovery is disabled")

ErrDiscoveryDisabled is an error returned if the discovery is disabled

Types

type Reloader

type Reloader interface {
	discovery.Watcher
	Stop()
	Reload(backend, address string, clusterOpts map[string]string) error
	ReadyCh() <-chan struct{}
}

Reloader is the discovery reloader of the daemon

func Init

func Init(backendAddress, advertiseAddress string, clusterOpts map[string]string) (Reloader, error)

Init initializes the nodes discovery subsystem by connecting to the specified backend and starts a registration loop to advertise the current node under the specified address.

Source Files

discovery.go

Version
v17.12.0-ce-rc2+incompatible
Published
Dec 12, 2017
Platform
js/wasm
Imports
7 packages
Last checked
1 hour ago

Tools for package owners.