Categorycisco-app-networking.github.io/networkservicemesh/controlplane/apiconnectionmechanismswireguard
# Functions
AssignPort - generate unique port by connection ID for wireguard connection.
ToMechanism - convert unified mechanism to useful wrapper.
# Constants
BasePort - Wireguard base port.
DstExternalIP - external destination ip.
DstIP - destitiona IP.
DstPort - Destination interface listening port.
DstPrivateKey - Source private key.
DstPublicKey - Destination public key.
MECHANISM type string.
TODO: verify (https://lists.zx2c4.com/pipermail/wireguard/2019-July/004289.html).
SrcIP - source IP.
SrcOriginalIP - original src IP.
SrcPort - Source interface listening port.
SrcPrivateKey - Source private key.
SrcPublicKey - Source public key.
# Interfaces
Mechanism - a wireguard mechanism utility wrapper.