kubernetes/pkg/proxy/util/testing/fake.go

type FakeNetwork

// NewFakeNetwork initializes a FakeNetwork.
func NewFakeNetwork() *FakeNetwork {}

// AddInterfaceAddr create an interface and its associated addresses for FakeNetwork implementation.
func (f *FakeNetwork) AddInterfaceAddr(intf *net.Interface, addrs []net.Addr) {}

// InterfaceAddrs is part of NetworkInterfacer interface.
func (f *FakeNetwork) InterfaceAddrs() ([]net.Addr, error) {}