diff --git a/daemon/libnetwork/discoverapi/discoverapi.go b/daemon/libnetwork/discoverapi/discoverapi.go index f57cb43b2e..faec5ebe06 100644 --- a/daemon/libnetwork/discoverapi/discoverapi.go +++ b/daemon/libnetwork/discoverapi/discoverapi.go @@ -14,12 +14,9 @@ type Discover interface { type DiscoveryType int const ( - // NodeDiscovery represents Node join/leave events provided by discovery - NodeDiscovery = iota + 1 - // EncryptionKeysConfig represents the initial key(s) for performing datapath encryption - EncryptionKeysConfig - // EncryptionKeysUpdate represents an update to the datapath encryption key(s) - EncryptionKeysUpdate + NodeDiscovery DiscoveryType = 1 // NodeDiscovery represents Node join/leave events provided by discovery. + EncryptionKeysConfig DiscoveryType = 2 // EncryptionKeysConfig represents the initial key(s) for performing datapath encryption. + EncryptionKeysUpdate DiscoveryType = 3 // EncryptionKeysUpdate represents an update to the datapath encryption key(s). ) // NodeDiscoveryData represents the structure backing the node discovery data json string