View Source Wireguardex.Device (Wireguardex v0.3.2)

Device represents all available information about a WireGuard device (interface).

This struct contains the current configuration of the interface and the current configuration and info for all of its peers.

  • name The interface name of the device.
  • public_key The public encryption key of the interface.
  • private_key The private encryption key of the interface.
  • fwmark The fwmark of this interface.
  • listen_port The port to listen for incoming connections.
  • peers The list of all peers registered to this interface with their configs and stats.
  • linked_name The associated "real" name of the interface.

Link to this section Summary

Link to this section Types

@type t() :: %Wireguardex.Device{
  fwmark: term(),
  linked_name: term(),
  listen_port: term(),
  name: term(),
  peers: term(),
  private_key: term(),
  public_key: term()
}