Documentation
¶
Overview ¶
Package awguapi renders and parses the UAPI text protocol of amneziawg-go v3.1.x (device.IpcSet / IpcGet). It is pure text code and builds everywhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceSet ¶
DeviceSet renders the device part of a set operation: key, port and the obfuscation of version v. Keys of the other version are not written (amneziawg-go 0.2.x rejects the 3.x ones). Order does not matter: S/H/HPK are validated together when the message ends. IpcSet is NOT atomic: a line that fails leaves the lines before it applied (measured), so a failed set is followed by recreating the interface, never by a retry on it.
func ParseStats ¶
ParseStats reads device.IpcGet() output: per peer the public key, counters, last handshake, endpoint and allowed ips. Device lines before the first public_key are skipped (they carry the private key: never logged).
Types ¶
This section is empty.