Documentation ¶
Index ¶
- type FakeBridge
- type FakeLink
- func (f *FakeLink) AddDefaultGW(intf *net.Interface, ip net.IP) error
- func (f *FakeLink) AddIP(intf *net.Interface, ip net.IP, subnet *net.IPNet) error
- func (f *FakeLink) InterfaceByName(name string) (*net.Interface, bool, error)
- func (f *FakeLink) SetMTU(intf *net.Interface, mtu int) error
- func (f *FakeLink) SetNs(intf *net.Interface, fd int) error
- func (f *FakeLink) SetUp(intf *net.Interface) error
- type FaveVethCreator
- type InterfaceIPAndSubnet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBridge ¶
type FakeBridge struct { CreateCalledWith struct { Name string IP net.IP Subnet *net.IPNet } CreateReturns struct { Interface *net.Interface Error error } AddCalledWith struct { Bridge, Slave *net.Interface } AddReturns error DestroyCalledWith []string DestroyReturns error }
func (*FakeBridge) Destroy ¶
func (f *FakeBridge) Destroy(bridge string) error
type FakeLink ¶
type FakeLink struct { AddIPCalledWith []InterfaceIPAndSubnet SetUpCalledWith []*net.Interface AddDefaultGWCalledWith struct { Interface *net.Interface IP net.IP } SetMTUCalledWith struct { Interface *net.Interface MTU int } SetNsCalledWith struct { Interface *net.Interface Fd int } SetUpFunc func(*net.Interface) error InterfaceByNameFunc func(string) (*net.Interface, bool, error) AddIPReturns map[string]error AddDefaultGWReturns error SetMTUReturns error SetNsReturns error }
func (*FakeLink) AddDefaultGW ¶
func (*FakeLink) InterfaceByName ¶
Click to show internal directories.
Click to hide internal directories.