Documentation
¶
Overview ¶
Package wgconfig converts protobuf Configuration types to wgtypes.Config and applies them via wgctrl.Client.ConfigureDevice().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfig ¶
ApplyConfig configures the named WireGuard device with the given configuration. Peers not in cfg are removed. Existing peers are updated in place, so their sessions survive the update.
func BuildConfig ¶
BuildConfig converts a protobuf Configuration into a wgtypes.Config that turns the current peers into the desired ones without replacing all peers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.