mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b2b87577d4
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
14 lines
345 B
Go
14 lines
345 B
Go
package cluster
|
|
|
|
import "github.com/docker/libnetwork/types"
|
|
|
|
// Provider provides clustering config details
|
|
type Provider interface {
|
|
IsManager() bool
|
|
IsAgent() bool
|
|
GetListenAddress() string
|
|
GetRemoteAddress() string
|
|
ListenClusterEvents() <-chan struct{}
|
|
GetNetworkKeys() []*types.EncryptionKey
|
|
SetNetworkKeys([]*types.EncryptionKey)
|
|
}
|