Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wgctrl-go
/ types & classes
Types & classes
79 in github.com/WireGuard/wgctrl-go
⨍
Functions
219
◇
Types & classes
79
↓ 5 callers
TypeAlias
Key
wgh.KeyLen A Key is a public, private, or pre-shared secret key. The Key constructor functions in this package can be used to create Keys suitable fo
wgtypes/types.go:77
TypeAlias
AddressFamily
AddressFamily enumeration specifies protocol family and is one of the windows.AF_* constants.
internal/wgwindows/internal/ioctl/winipcfg_windows.go:17
Struct
AllowedIP
internal/wgwindows/internal/ioctl/configuration_windows.go:15
Interface
Client
A Client is a type which can control a WireGuard device.
internal/wginternal/client.go:16
Struct
Client
A Client provides access to WireGuard device information.
client.go:15
Struct
Client
A Client provides access to OpenBSD WireGuard ioctl information.
internal/wgopenbsd/client_openbsd.go:28
Struct
Client
A Client provides access to userspace WireGuard device information.
internal/wguser/client.go:17
Struct
Client
A Client provides access to WireGuardNT ioctl information.
internal/wgwindows/client_windows.go:19
Struct
Client
A Client provides access to FreeBSD WireGuard ioctl information.
internal/wgfreebsd/client_freebsd.go:33
Struct
Client
A Client provides access to Linux WireGuard netlink information.
internal/wglinux/client_linux.go:23
Struct
Config
A Config is a WireGuard device configuration. Because the zero value of some Go types may be significant to WireGuard for Config fields, pointer type
wgtypes/types.go:212
Struct
ConfigBuilder
internal/wgwindows/internal/ioctl/configuration_windows.go:84
Struct
Device
A Device is a WireGuard device.
wgtypes/types.go:45
TypeAlias
DeviceType
A DeviceType specifies the underlying implementation of a WireGuard device.
wgtypes/types.go:14
Struct
Ifgreq
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:21
Struct
Ifgreq
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:21
Struct
Ifgreq
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:21
Struct
Ifgreq
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:21
Struct
Ifgreq
internal/wgfreebsd/internal/wgh/defs_freebsd_arm.go:24
Struct
Ifgreq
internal/wgfreebsd/internal/wgh/defs_freebsd_386.go:24
Struct
Ifgreq
internal/wgfreebsd/internal/wgh/defs_freebsd_amd64.go:24
Struct
Ifgreq
internal/wgfreebsd/internal/wgh/defs_freebsd_arm64.go:24
TypeAlias
Ifgreq
internal/wgopenbsd/internal/wgh/defs.go:37
TypeAlias
Ifgreq
internal/wgfreebsd/internal/wgh/defs.go:49
Struct
Ifgroupreq
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:13
Struct
Ifgroupreq
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:13
Struct
Ifgroupreq
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:13
Struct
Ifgroupreq
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:13
Struct
Ifgroupreq
internal/wgfreebsd/internal/wgh/defs_freebsd_arm.go:16
Struct
Ifgroupreq
internal/wgfreebsd/internal/wgh/defs_freebsd_386.go:16
Struct
Ifgroupreq
internal/wgfreebsd/internal/wgh/defs_freebsd_amd64.go:16
Struct
Ifgroupreq
internal/wgfreebsd/internal/wgh/defs_freebsd_arm64.go:16
TypeAlias
Ifgroupreq
internal/wgopenbsd/internal/wgh/defs.go:35
TypeAlias
Ifgroupreq
internal/wgfreebsd/internal/wgh/defs.go:47
Struct
Interface
internal/wgwindows/internal/ioctl/configuration_windows.go:59
TypeAlias
InterfaceFlag
internal/wgwindows/internal/ioctl/configuration_windows.go:50
TypeAlias
List
internal/wgfreebsd/internal/nv/types.go:6
Struct
Peer
A Peer is a WireGuard peer to a Device.
wgtypes/types.go:158
Struct
Peer
internal/wgwindows/internal/ioctl/configuration_windows.go:35
Struct
PeerConfig
TODO(mdlayher): consider adding ProtocolVersion in PeerConfig. A PeerConfig is a WireGuard device peer configuration. Because the zero value of some
wgtypes/types.go:241
TypeAlias
PeerFlag
internal/wgwindows/internal/ioctl/configuration_windows.go:22
Struct
RawSockaddrInet
RawSockaddrInet union contains an IPv4, an IPv6 address, or an address family. https://docs.microsoft.com/en-us/windows/desktop/api/ws2ipdef/ns-ws2ipd
internal/wgwindows/internal/ioctl/winipcfg_windows.go:21
Struct
Timespec
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:25
Struct
Timespec
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:25
Struct
Timespec
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:25
Struct
Timespec
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:25
TypeAlias
Timespec
internal/wgopenbsd/internal/wgh/defs.go:39
Struct
WGAIPIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:30
Struct
WGAIPIO
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:30
Struct
WGAIPIO
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:30
Struct
WGAIPIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:31
TypeAlias
WGAIPIO
WireGuard types and constants.
internal/wgopenbsd/internal/wgh/defs.go:43
Struct
WGDataIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:36
Struct
WGDataIO
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:36
Struct
WGDataIO
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:36
Struct
WGDataIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:37
Struct
WGDataIO
internal/wgfreebsd/internal/wgh/defs_freebsd_arm.go:28
Struct
WGDataIO
internal/wgfreebsd/internal/wgh/defs_freebsd_386.go:28
Struct
WGDataIO
internal/wgfreebsd/internal/wgh/defs_freebsd_amd64.go:28
Struct
WGDataIO
internal/wgfreebsd/internal/wgh/defs_freebsd_arm64.go:28
TypeAlias
WGDataIO
internal/wgopenbsd/internal/wgh/defs.go:45
TypeAlias
WGDataIO
internal/wgfreebsd/internal/wgh/defs.go:51
Struct
WGInterfaceIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:42
Struct
WGInterfaceIO
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:42
Struct
WGInterfaceIO
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:42
Struct
WGInterfaceIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:43
TypeAlias
WGInterfaceIO
internal/wgopenbsd/internal/wgh/defs.go:47
Struct
WGPeerIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm64.go:51
Struct
WGPeerIO
internal/wgopenbsd/internal/wgh/defs_openbsd_386.go:51
Struct
WGPeerIO
internal/wgopenbsd/internal/wgh/defs_openbsd_amd64.go:51
Struct
WGPeerIO
internal/wgopenbsd/internal/wgh/defs_openbsd_arm.go:53
TypeAlias
WGPeerIO
internal/wgopenbsd/internal/wgh/defs.go:49
FuncType
configFunc
func(name string, cfg wgtypes.Config) error
client_test.go:153
FuncType
deviceFunc
func(name string) (*wgtypes.Device, error)
client_test.go:70
Struct
deviceParser
A deviceParser accumulates information about a Device and its Peers.
internal/wguser/parse.go:75
Struct
sliceHeader
internal/wgwindows/internal/ioctl/configuration_windows.go:126
Struct
testClient
client_test.go:227
Struct
timespec32
timespec32 is a unix.Timespec with 32-bit integers.
internal/wglinux/parse_linux.go:239
Struct
timespec64
timespec64 is a unix.Timespec with 64-bit integers.
internal/wglinux/parse_linux.go:245