kubernetes/staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go

const gatewayfirst

const gatewaylast

const gatewaymiddle

const noInternetConnection

const nothing

const badDestination

const badGateway

const route_Invalidhex

const v6gatewayfirst

const v6gatewaylast

const v6gatewaymiddle

const v6noDefaultRoutes

const v6nothing

const v6badDestination

const v6badGateway

const v6route_Invalidhex

const flagUp

const flagDown

const flagLoopback

const flagP2P

func makeIntf(index int, name string, flags net.Flags) net.Interface {}

var downIntf

var loopbackIntf

var p2pIntf

var upIntf

var ipv4Route

var ipv6Route

var noRoutes

var routeV4

var routeV6

var bothRoutes

func TestGetIPv4Routes(t *testing.T) {}

func TestGetIPv6Routes(t *testing.T) {}

func TestParseIP(t *testing.T) {}

func TestIsInterfaceUp(t *testing.T) {}

type addrStruct

func (a addrStruct) Network() string {}

func (a addrStruct) String() string {}

func TestFinalIP(t *testing.T) {}

func TestAddrs(t *testing.T) {}

type validNetworkInterface

func (_ validNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ validNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ validNetworkInterface) Interfaces() ([]net.Interface, error) {}

type v4v6NetworkInterface

func (_ v4v6NetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ v4v6NetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ v4v6NetworkInterface) Interfaces() ([]net.Interface, error) {}

type ipv6NetworkInterface

func (_ ipv6NetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ ipv6NetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ ipv6NetworkInterface) Interfaces() ([]net.Interface, error) {}

type networkInterfaceWithOnlyLinkLocals

func (_ networkInterfaceWithOnlyLinkLocals) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ networkInterfaceWithOnlyLinkLocals) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ networkInterfaceWithOnlyLinkLocals) Interfaces() ([]net.Interface, error) {}

type failGettingNetworkInterface

func (_ failGettingNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ failGettingNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ failGettingNetworkInterface) Interfaces() ([]net.Interface, error) {}

type noNetworkInterface

func (_ noNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ noNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ noNetworkInterface) Interfaces() ([]net.Interface, error) {}

type downNetworkInterface

func (_ downNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ downNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ downNetworkInterface) Interfaces() ([]net.Interface, error) {}

type loopbackNetworkInterface

func (_ loopbackNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ loopbackNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ loopbackNetworkInterface) Interfaces() ([]net.Interface, error) {}

type p2pNetworkInterface

func (_ p2pNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ p2pNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ p2pNetworkInterface) Interfaces() ([]net.Interface, error) {}

type linkLocalLoopbackNetworkInterface

func (_ linkLocalLoopbackNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ linkLocalLoopbackNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ linkLocalLoopbackNetworkInterface) Interfaces() ([]net.Interface, error) {}

type globalsNetworkInterface

func (_ globalsNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ globalsNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ globalsNetworkInterface) Interfaces() ([]net.Interface, error) {}

type networkInterfaceFailGetAddrs

func (_ networkInterfaceFailGetAddrs) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ networkInterfaceFailGetAddrs) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ networkInterfaceFailGetAddrs) Interfaces() ([]net.Interface, error) {}

type networkInterfaceWithNoAddrs

func (_ networkInterfaceWithNoAddrs) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ networkInterfaceWithNoAddrs) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ networkInterfaceWithNoAddrs) Interfaces() ([]net.Interface, error) {}

type networkInterfaceWithInvalidAddr

func (_ networkInterfaceWithInvalidAddr) InterfaceByName(intfName string) (*net.Interface, error) {}

func (_ networkInterfaceWithInvalidAddr) Addrs(intf *net.Interface) ([]net.Addr, error) {}

func (_ networkInterfaceWithInvalidAddr) Interfaces() ([]net.Interface, error) {}

func TestGetIPFromInterface(t *testing.T) {}

func TestGetIPFromLoopbackInterface(t *testing.T) {}

func TestChooseHostInterfaceFromRoute(t *testing.T) {}

func TestMemberOf(t *testing.T) {}

func TestGetIPFromHostInterfaces(t *testing.T) {}

func makeRouteFile(content string, t *testing.T) (*os.File, error) {}

func TestFailGettingIPv4Routes(t *testing.T) {}

func TestFailGettingIPv6Routes(t *testing.T) {}

func TestGetAllDefaultRoutesFailNoV4RouteFile(t *testing.T) {}

func TestGetAllDefaultRoutes(t *testing.T) {}