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

Method Device

client.go:63–77  ·  view source on GitHub ↗

Device retrieves a WireGuard device by its interface name. If the device specified by name does not exist or is not a WireGuard device, an error is returned which can be checked using `errors.Is(err, os.ErrNotExist)`.

(name string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestClientDeviceFunction · 0.95

Calls 1

DeviceMethod · 0.65

Tested by 1

TestClientDeviceFunction · 0.76