Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotExist ¶
func IsNotSupported ¶
Types ¶
type Interface ¶
type Interface interface { SetSocketTimeout(to time.Duration) error SetStrictCheck(b bool) error LinkList() ([]netlink.Link, error) LinkByName(name string) (netlink.Link, error) LinkAdd(link netlink.Link) error LinkDel(link netlink.Link) error LinkSetMTU(link netlink.Link, mtu int) error LinkSetUp(link netlink.Link) error RouteListFiltered(family int, filter *netlink.Route, filterMask uint64) ([]netlink.Route, error) RouteAdd(route *netlink.Route) error RouteDel(route *netlink.Route) error AddrList(link netlink.Link, family int) ([]netlink.Addr, error) AddrAdd(link netlink.Link, addr *netlink.Addr) error AddrDel(link netlink.Link, addr *netlink.Addr) error RuleList(family int) ([]netlink.Rule, error) RuleAdd(rule *netlink.Rule) error RuleDel(rule *netlink.Rule) error Delete() NeighAdd(neigh *netlink.Neigh) error }
func NewRealNetlink ¶
type Wireguard ¶
type Wireguard interface { Close() error DeviceByName(name string) (*wgtypes.Device, error) Devices() ([]*wgtypes.Device, error) ConfigureDevice(name string, cfg wgtypes.Config) error }
Wireguard is a shim interface for mocking linkClient calls to manage the wireguard key and peer configuration.
func NewRealWireguard ¶
Click to show internal directories.
Click to hide internal directories.