-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use controller methods for handling the encyrption keys from agent
instead of the Provider interface methods. Signed-off-by: Santhosh Manohar <santhosh@docker.com>
- Loading branch information
Santhosh Manohar
committed
Jun 5, 2016
1 parent
b85caa0
commit c4d5bba
Showing
3 changed files
with
106 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters