Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WgInterface ¶
type WgInterface struct { Name string Device *device.Device // contains filtered or unexported fields }
WgInterface represents WireGuard tunnel with underlying device.
func New ¶
func New(cfg wgcfg.DeviceConfig, uid string) (*WgInterface, error)
New creates new WgInterface instance.
func (*WgInterface) Down ¶
func (a *WgInterface) Down()
Down closes device and user space api socket.
func (*WgInterface) Reconfigure ¶
func (a *WgInterface) Reconfigure(cfg wgcfg.DeviceConfig) error
Reconfigure applies new configuration for the existing wireguard interface.
Click to show internal directories.
Click to hide internal directories.