Documentation
¶
Overview ¶
Common WireGuard types and constants
Index ¶
Constants ¶
View Source
const ( EnableWireguard = "enable-wireguard" WireguardPersistentKeepalive = "wireguard-persistent-keepalive" WireguardTrackAllIPsFallback = "wireguard-track-all-ips-fallback" NodeEncryptionOptOutLabels = "node-encryption-opt-out-labels" )
Command-line flags for WireGuard.
View Source
const ( // ListenPort is the port on which the WireGuard tunnel device listens on ListenPort = 51871 // IfaceName is the name of the WireGuard tunnel device IfaceName = "cilium_wg0" // PrivKeyFilename is the name of the WireGuard private key file PrivKeyFilename = "cilium_wg0.key" // StaticEncryptKey is used in the IPCache to mark entries for which we // want to enable WireGuard encryption StaticEncryptKey = uint8(0xFF) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WireguardAgent ¶ added in v1.19.0
type WireguardAgent interface {
Enabled() bool
Status(withPeers bool) (*models.WireguardStatus, error)
IfaceIndex() (uint32, error)
IfaceBufferMargins() (uint16, uint16, error)
}
WireguardAgent exports the Enabled and Status commands from the agent.
type WireguardConfig ¶ added in v1.19.0
type WireguardConfig interface {
Enabled() bool
}
WireguardConfig exports the Enabled method rather than the whole config. This is useful when the whole agent is not needed. See WireguardAgent otherwise.
Click to show internal directories.
Click to hide internal directories.