import "github.com/docker/docker/vendor/github.com/docker/libnetwork/hostdiscovery"
hostdiscovery.go hostdiscovery_api.go
type ActiveCallback func()
ActiveCallback provides a callback event for active discovery event
type HostDiscovery interface { //Watch Node join and leave cluster events Watch(activeCallback ActiveCallback, joinCallback JoinCallback, leaveCallback LeaveCallback) error // StopDiscovery stops the discovery process StopDiscovery() error // Fetch returns a list of host IPs that are currently discovered Fetch() []net.IP }
HostDiscovery primary interface
func NewHostDiscovery(watcher discovery.Watcher) HostDiscovery
NewHostDiscovery function creates a host discovery object
JoinCallback provides a callback event for new node joining the cluster
LeaveCallback provides a callback event for node leaving the cluster
Package hostdiscovery imports 10 packages (graph). Updated 2018-02-14. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).