Versions in this module Expand all Collapse all v0 v0.2.4 May 2, 2022 v0.2.3 May 2, 2022 v0.2.2 May 1, 2022 v0.2.1 May 1, 2022 Changes in this version + func Down(cfg *Config, iface string, logger logrus.FieldLogger) error + func ParseKey(key string) (wgtypes.Key, error) + func Sync(cfg *Config, iface string, logger logrus.FieldLogger) error + func SyncAddress(cfg *Config, link netlink.Link, log logrus.FieldLogger) error + func SyncLink(cfg *Config, iface string, log logrus.FieldLogger) (netlink.Link, error) + func SyncRoutes(cfg *Config, link netlink.Link, managedRoutes []net.IPNet, ...) error + func SyncWireguardDevice(cfg *Config, link netlink.Link, log logrus.FieldLogger) error + func Up(cfg *Config, iface string, logger logrus.FieldLogger) 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