Versions in this module Expand all Collapse all v0 v0.1.4 Dec 18, 2020 v0.1.3 Dec 18, 2020 Changes in this version + func Down(cfg *Config, iface string, logger *zap.Logger) error + func ParseKey(key string) (wgtypes.Key, error) + func Sync(cfg *Config, iface string, logger *zap.Logger) error + func SyncAddress(cfg *Config, link netlink.Link, log *zap.Logger) error + func SyncLink(cfg *Config, iface string, log *zap.Logger) (netlink.Link, error) + func SyncRoutes(cfg *Config, link netlink.Link, managedRoutes []net.IPNet, logger *zap.Logger) error + func SyncWireguardDevice(cfg *Config, link netlink.Link, log *zap.Logger) error + func Up(cfg *Config, iface string, logger *zap.Logger) error + type Config struct + Address []net.IPNet + AddressLabel string + DNS []net.IP + MTU int + PostDown string + PostUp string + PreDown string + PreUp string + RouteMetric int + RouteProtocol int + SaveConfig bool + Table int + func (cfg *Config) MarshalText() (text []byte, err error) + func (cfg *Config) String() string + func (cfg *Config) UnmarshalText(text []byte) error