network

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	DetectInterfaceMTU(device string) (int, error)
	DetectDefaultRouteInterfaceName() (string, error)
	GetIPFromPodNetNS(podNSPath string, ifName string, ipFamily int) (net.IP, error)
	GetLinkByMacAddress(macAddress string) (netlink.Link, error)
	InterfaceByName(name string) (*net.Interface, error)
	GratuitousArpOverIface(srcIP net.IP, iface net.Interface) error
	PingOverIfaceByName(dstIP net.IP, ifaceName string) (net.HardwareAddr, time.Duration, error)
}

func New

func New() Interface

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL