Documentation ¶
Index ¶
- Constants
- func AddRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error
- func CheckDefaultRouteExist(table int, family int) (bool, error)
- func CheckIPIsGlobalUnicast(ip net.IP) bool
- func CheckIPv6Disabled(nicName string) (bool, error)
- func CheckIPv6GlobalDisabled() (bool, error)
- func CheckPodNeighExist(podIP net.IP, forwardNodeIfIndex int, family int) (bool, error)
- func CheckPodRuleExist(podCidr *net.IPNet, family int) (bool, int, error)
- func ConfigureIface(ifName string, res *current.Result) error
- func EnableIPForward(family int) error
- func EnsureIPReachable(ip net.IP) error
- func EnsureNeighGCThresh(family int, neighGCThresh1, neighGCThresh2, neighGCThresh3 int) error
- func EnsureVlanIf(nodeIfName string, vlanID *int32) (string, error)
- func FindSubnetExcludeIPBlocks(cidr *net.IPNet, includedRanges []*IPRange, gateway net.IP, ...) ([]*net.IPNet, error)
- func GenerateIPListString(addrList []netlink.Addr) string
- func GenerateVlanNetIfName(parentName string, vlanID *int32) (string, error)
- func GenerateVxlanNetIfName(parentName string, vlanID *int32) (string, error)
- func GetDefaultInterface(family int) (*net.Interface, error)
- func GetDefaultRoute(family int) (*netlink.Route, error)
- func GetInterfaceByPreferString(preferString string) (*net.Interface, error)
- func GetSysctl(sysctlPath string) (int, error)
- func IsDefaultRoute(route *netlink.Route, family int) bool
- func IsFs(path string, magic int64) bool
- func IsNsFS(path string) bool
- func IsProcFS(path string) bool
- func LastIP(cidr *net.IPNet) net.IP
- func ListAllAddress(link netlink.Link) ([]netlink.Addr, error)
- func SetSysctl(sysctlPath string, newVal int) error
- func SetSysctlIgnoreNotExist(sysctlPath string, newVal int) error
- func ValidDockerNetnsDir(path string) bool
- type HybridnetDaemonError
- type IPInfo
- type IPRange
Constants ¶
View Source
const (
NotExist = HybridnetDaemonError("not exist")
)
Variables ¶
This section is empty.
Functions ¶
func AddRoute ¶ added in v0.4.0
AddRoute adds a universally-scoped route. If no direct route contains gw IP, add single route for gw.
func CheckDefaultRouteExist ¶ added in v0.4.0
func CheckIPIsGlobalUnicast ¶ added in v0.4.0
func CheckIPv6Disabled ¶ added in v0.4.0
func CheckIPv6GlobalDisabled ¶ added in v0.4.0
func CheckPodNeighExist ¶ added in v0.4.0
func CheckPodRuleExist ¶ added in v0.4.0
func ConfigureIface ¶ added in v0.4.0
ConfigureIface takes the result of IPAM plugin and applies to the ifName interface.
func EnableIPForward ¶ added in v0.4.0
func EnsureIPReachable ¶ added in v0.7.0
func EnsureNeighGCThresh ¶ added in v0.4.0
func EnsureVlanIf ¶ added in v0.4.0
func FindSubnetExcludeIPBlocks ¶
func FindSubnetExcludeIPBlocks(cidr *net.IPNet, includedRanges []*IPRange, gateway net.IP, excludeIPs []net.IP) ([]*net.IPNet, error)
Translate a subnet range into a series ip block description.
func GenerateIPListString ¶ added in v0.4.0
func GenerateVlanNetIfName ¶ added in v0.4.0
func GenerateVxlanNetIfName ¶ added in v0.4.0
func GetDefaultInterface ¶ added in v0.4.0
func GetInterfaceByPreferString ¶ added in v0.4.0
GetInterfaceByPreferString return first valid interface by prefer string.
func ListAllAddress ¶ added in v0.4.0
func SetSysctlIgnoreNotExist ¶
func ValidDockerNetnsDir ¶
Types ¶
type HybridnetDaemonError ¶ added in v0.3.0
type HybridnetDaemonError string
func (HybridnetDaemonError) Error ¶ added in v0.3.0
func (e HybridnetDaemonError) Error() string
Click to show internal directories.
Click to hide internal directories.