Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WGIface ¶
type WGIface struct {
Name string
Device *wgtypes.Device
// contains filtered or unexported fields
}
WGIface represents a interface instance
func GetWgIface ¶
GetWgIface - gets the Wireguard interface config
func (*WGIface) GetListenPort ¶
WGIface.GetListenPort - returns the listening port of the Wireguard endpoint
func (*WGIface) UpdatePeerEndpoint ¶
func (w *WGIface) UpdatePeerEndpoint(peer wgtypes.PeerConfig) error
UpdatePeer updates existing Wireguard Peer or creates a new one if doesn't exist
Click to show internal directories.
Click to hide internal directories.