package
0.0.0-20241222071839-cd1864417916
Repository: https://github.com/wirekcp/wgctrl.git
Documentation: pkg.go.dev
# Functions
GenerateKey generates a Key suitable for use as a pre-shared secret key from a cryptographically safe source.
GeneratePrivateKey generates a Key suitable for use as a private key from a cryptographically safe source.
NewKey creates a Key from an existing byte slice.
ParseKey parses a Key from a base64-encoded string, as produced by the Key.String method.
# Constants
Possible DeviceType values.
wgh.KeyLen.
Possible DeviceType values.
Possible DeviceType values.
Possible DeviceType values.
Possible DeviceType values.
Possible DeviceType values.
# Variables
ErrUpdateOnlyNotSupported is returned due to missing kernel support of the PeerConfig UpdateOnly flag.
# Structs
A Config is a WireGuard device configuration.
A Device is a WireGuard device.
A Peer is a WireGuard peer to a Device.
A PeerConfig is a WireGuard device peer configuration.
# Type aliases
A DeviceType specifies the underlying implementation of a WireGuard device.
A Key is a public, private, or pre-shared secret key.