Skip to content

Commit

Permalink
add Name to Node
Browse files Browse the repository at this point in the history
Signed-off-by: Seán C McCord <ulexus@gmail.com>
  • Loading branch information
Ulexus committed May 9, 2021
1 parent eb0e8ba commit d3fd1f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ package types

// Node describes a Wireguard Peer
type Node struct {
// Name is the human-readable identifier of this Node.
// Usually, this is the kubernetes Node name.
// It *should* generally be unique, but it is not required to be so.
Name string

// ID is the unique identifier for this Node.
// Usually, this is the Wireguard Public Key of the Node.
ID string

// IP is the Wireguard interface IP of this Node.
IP string

// KnownEndpoints is a list of known endpoints (host:port) for this Node.
KnownEndpoints []string
}

0 comments on commit d3fd1f3

Please sign in to comment.