Documentation
¶
Overview ¶
Package netutils is the package that contains network related utilities.
Index ¶
- func AddDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, _ string, gw []net.IP) error
- func DeleteDefaultGW(netnsPath string, ifName string) error
- func DeleteDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, _ string, ...) error
- func SetDefaultGW(netnsPath string, ifName string, gateways []net.IP) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultGWCache ¶
func AddDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, _ string, gw []net.IP) error
AddDefaultGWCache updates libcni cache to add default gateway result
func DeleteDefaultGW ¶
DeleteDefaultGW removes the default gateway from marked interfaces.
func DeleteDefaultGWCache ¶
func DeleteDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, _ string, ipv4, ipv6 bool) error
DeleteDefaultGWCache updates libcni cache to remove default gateway routes in result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.