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, pid int) error
- func (f *FakeLink) SetUp(intf *net.Interface) error
- func (f *FakeLink) Statistics() (garden.ContainerNetworkStat, 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 DeleteCalledWith []string DeleteReturns error }
func (*FakeBridge) Delete ¶
func (f *FakeBridge) Delete(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 Pid int } SetUpFunc func(*net.Interface) error InterfaceByNameFunc func(string) (*net.Interface, bool, error) AddIPReturns map[string]error AddDefaultGWReturns error SetMTUReturns error SetNsReturns error StatisticsReturns error }
func (*FakeLink) AddDefaultGW ¶
func (*FakeLink) InterfaceByName ¶
func (*FakeLink) Statistics ¶
func (f *FakeLink) Statistics() (garden.ContainerNetworkStat, error)
Click to show internal directories.
Click to hide internal directories.