mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b0a7084c05
If user provided a non-zero listen address, honor that and bind only to that address. Right now it is not honored and we always bind to all ip addresses in the host. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
21 lines
615 B
Go
21 lines
615 B
Go
package cluster
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/network"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
// Provider provides clustering config details
|
|
type Provider interface {
|
|
IsManager() bool
|
|
IsAgent() bool
|
|
GetLocalAddress() string
|
|
GetListenAddress() string
|
|
GetAdvertiseAddress() string
|
|
GetRemoteAddress() string
|
|
ListenClusterEvents() <-chan struct{}
|
|
AttachNetwork(string, string, []string) (*network.NetworkingConfig, error)
|
|
DetachNetwork(string, string) error
|
|
UpdateAttachment(string, string, *network.NetworkingConfig) error
|
|
WaitForDetachment(context.Context, string, string, string, string) error
|
|
}
|