docker: Index | Files

package discovery

import ""


Package Files



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

ErrDiscoveryDisabled is an error returned if the discovery is disabled

type Reloader Uses

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

Reloader is the discovery reloader of the daemon

func Init Uses

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.

Package discovery imports 7 packages (graph) and is imported by 169 packages. Updated 2020-02-14. Refresh now. Tools for package owners.