 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetwork ¶
type FakeNetwork struct {
	NetworkInterfaces []net.Interface
	// The key of map Addrs is the network interface name
	Address map[string][]net.Addr
}
    FakeNetwork implements the NetworkInterfacer interface for test purpose.
func (*FakeNetwork) AddInterfaceAddr ¶
func (f *FakeNetwork) AddInterfaceAddr(intf *net.Interface, addrs []net.Addr)
AddInterfaceAddr create an interface and its associated addresses for FakeNetwork implementation.
func (*FakeNetwork) InterfaceAddrs ¶ added in v1.22.0
func (f *FakeNetwork) InterfaceAddrs() ([]net.Addr, error)
InterfaceAddrs is part of NetworkInterfacer interface.
 Click to show internal directories. 
   Click to hide internal directories.