Documentation
¶
Index ¶
- func EnsureIPRule(expected *netlink.Rule) error
- func EnsureNeigh(neigh *netlink.Neigh) error
- func EnsureRoute(expected *netlink.Route) error
- func FindIPRule(rule *netlink.Rule) ([]netlink.Rule, error)
- func FoundRoutes(expected *netlink.Route) ([]netlink.Route, error)
- func GetDefaultRoute(family int) (*netlink.Route, error)
- func GetHostIP() (*types.IPSet, error)
- func GetHostLinkByDefaultRoute(family int) (netlink.Link, error)
- func GetLinkAddresses(link netlink.Link) ([]netlink.Addr, error)
- func LinkByMac(mac string) (netlink.Link, error)
- func NetlinkFamily(ip net.IP) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureIPRule ¶
EnsureIPRule add specified rule if it not exists.
func EnsureNeigh ¶
EnsureNeigh add specified neigh if it not exists.
func EnsureRoute ¶
EnsureRoute add specified route if it not exists.
func FindIPRule ¶
FindIPRule lookup expected rules.
func FoundRoutes ¶
FoundRoutes lookup expected Routes.
func GetDefaultRoute ¶
GetDefaultRoute get the default route of the corresponding family.
func GetHostLinkByDefaultRoute ¶
GetHostLinkByDefaultRoute get the link pointed to by the default route.
func GetLinkAddresses ¶
GetLinkAddresses return ips of specified link.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.