Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { OverlayNetwork net.IPNet OverlayAddr net.IPNet PublicKey wgtypes.Key // contains filtered or unexported fields }
State holds the configured state of a Wesher Wireguard interface
func New ¶
New creates a new Wesher Wireguard state The Wireguard keys are generated for every new interface The interface must later be setup using SetUpInterface
func (*State) DownInterface ¶
DownInterface shuts down the associated network interface
func (*State) SetUpInterface ¶
SetUpInterface creates and sets up the associated network interface
Click to show internal directories.
Click to hide internal directories.