MCPcopy Create free account
hub / github.com/WireGuard/wgctrl-go / getDevice

Method getDevice

internal/wguser/parse.go:22–45  ·  view source on GitHub ↗

The WireGuard userspace configuration protocol is described here: https://www.wireguard.com/xplatform/#cross-platform-userspace-implementation. getDevice gathers device information from a device specified by its path and returns a Device.

(device string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

DevicesMethod · 0.95
DeviceMethod · 0.95

Calls 3

parseDeviceFunction · 0.70
deviceNameFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected