Versions in this module Expand all Collapse all v1 v1.1.0 Jul 9, 2026 Changes in this version + func GenerateKey(dir string) (wgtypes.Key, error) + func LoadKey(dir string) (wgtypes.Key, error) + type Peer struct + AllowedIPs []string + Endpoint string + PublicKey string + type Wireguard struct + func GetByName(name string) (*Wireguard, error) + func New(name string) (*Wireguard, error) + func (w *Wireguard) Attrs() *netlink.LinkAttrs + func (w *Wireguard) Configure(privateKey string, listentPort int, peers []*Peer) error + func (w *Wireguard) Device() (*wgtypes.Device, error) + func (w *Wireguard) SetAddr(cidr string) error + func (w *Wireguard) Type() string + func (w *Wireguard) UnsetAddr(cidr string) error