Merge pull request #51477 from thaJeztah/discovery_enum

libnetwork/discoverapi: use DiscoveryType for enum
This commit is contained in:
Sebastiaan van Stijn
2025-11-11 15:01:25 +01:00
committed by GitHub

View File

@@ -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