Documentation
¶
Overview ¶
Package wglinux provides internal access to Linux's WireGuard generic netlink interface.
This package is internal-only and not meant for end users to consume. Please use package wgctrl (an abstraction over this package) instead.
Index ¶
Constants ¶
View Source
const ( WGDEVICE_A_JC = 9 WGDEVICE_A_JMIN = 10 WGDEVICE_A_JMAX = 11 WGDEVICE_A_S1 = 12 WGDEVICE_A_S2 = 13 WGDEVICE_A_H1 = 14 WGDEVICE_A_H2 = 15 WGDEVICE_A_H3 = 16 WGDEVICE_A_H4 = 17 // WGDEVICE_A_PEER = 18 WGDEVICE_A_S3 = 19 WGDEVICE_A_S4 = 20 WGDEVICE_A_I1 = 21 WGDEVICE_A_I2 = 22 WGDEVICE_A_I3 = 23 WGDEVICE_A_I4 = 24 WGDEVICE_A_I5 = 25 )
AmneziaWG Netlink attribute constants. Derived from amneziawg-linux-kernel-module/src/uapi/wireguard.h
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client provides access to Linux WireGuard netlink information.
func New ¶
New creates a new Client and returns whether or not the generic netlink interface is available.
func (*Client) ConfigureDevice ¶
ConfigureDevice implements wginternal.Client.
Click to show internal directories.
Click to hide internal directories.