mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Madhu Venugopal](/assets/img/avatar_default.png)
With this change, all the auto-detection of the addresses are removed from libnetwork and the caller takes the responsibilty to have a proper advertise-addr in various scenarios (including externally facing public advertise-addr with an internal facing private listen-addr) Signed-off-by: Madhu Venugopal <madhu@docker.com>
11 lines
248 B
Go
11 lines
248 B
Go
package cluster
|
|
|
|
// Provider provides clustering config details
|
|
type Provider interface {
|
|
IsManager() bool
|
|
IsAgent() bool
|
|
GetLocalAddress() string
|
|
GetAdvertiseAddress() string
|
|
GetRemoteAddress() string
|
|
ListenClusterEvents() <-chan struct{}
|
|
}
|