Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddDefaultRoute(arg0 net.IP, arg1 netlink.Link) error
- func (m *MockInterface) AddHostRoute(arg0 *net.IPNet, arg1 net.IP, arg2 netlink.Link) error
- func (m *MockInterface) AddRoute(arg0 *net.IPNet, arg1 net.IP, arg2 netlink.Link) error
- func (m *MockInterface) DelLinkByName(arg0 string) error
- func (m *MockInterface) DelLinkByNameAddr(arg0 string) ([]*net.IPNet, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) EnableForward(arg0 []*current.IPConfig) error
- func (m *MockInterface) EnableIP4Forward() error
- func (m *MockInterface) EnableIP6Forward() error
- func (m *MockInterface) GetVethPeerIfindex(arg0 string) (netlink.Link, int, error)
- func (m *MockInterface) RandomVethName() (string, error)
- func (m *MockInterface) RenameLink(arg0, arg1 string) error
- func (m *MockInterface) SetupIPMasq(arg0 *net.IPNet, arg1, arg2 string) error
- func (m *MockInterface) SetupVeth(arg0 string, arg1 int, arg2 ns.NetNS) (net.Interface, net.Interface, error)
- func (m *MockInterface) SetupVethWithName(arg0, arg1 string, arg2 int, arg3 ns.NetNS) (net.Interface, net.Interface, error)
- func (m *MockInterface) TeardownIPMasq(arg0 *net.IPNet, arg1, arg2 string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddDefaultRoute(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddHostRoute(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddRoute(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DelLinkByName(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DelLinkByNameAddr(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) EnableForward(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) EnableIP4Forward() *gomock.Call
- func (mr *MockInterfaceMockRecorder) EnableIP6Forward() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetVethPeerIfindex(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RandomVethName() *gomock.Call
- func (mr *MockInterfaceMockRecorder) RenameLink(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetupIPMasq(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetupVeth(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetupVethWithName(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) TeardownIPMasq(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AddDefaultRoute ¶
AddDefaultRoute mocks base method.
func (*MockInterface) AddHostRoute ¶
AddHostRoute mocks base method.
func (*MockInterface) DelLinkByName ¶
func (m *MockInterface) DelLinkByName(arg0 string) error
DelLinkByName mocks base method.
func (*MockInterface) DelLinkByNameAddr ¶
func (m *MockInterface) DelLinkByNameAddr(arg0 string) ([]*net.IPNet, error)
DelLinkByNameAddr mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) EnableForward ¶
func (m *MockInterface) EnableForward(arg0 []*current.IPConfig) error
EnableForward mocks base method.
func (*MockInterface) EnableIP4Forward ¶
func (m *MockInterface) EnableIP4Forward() error
EnableIP4Forward mocks base method.
func (*MockInterface) EnableIP6Forward ¶
func (m *MockInterface) EnableIP6Forward() error
EnableIP6Forward mocks base method.
func (*MockInterface) GetVethPeerIfindex ¶
GetVethPeerIfindex mocks base method.
func (*MockInterface) RandomVethName ¶
func (m *MockInterface) RandomVethName() (string, error)
RandomVethName mocks base method.
func (*MockInterface) RenameLink ¶
func (m *MockInterface) RenameLink(arg0, arg1 string) error
RenameLink mocks base method.
func (*MockInterface) SetupIPMasq ¶
func (m *MockInterface) SetupIPMasq(arg0 *net.IPNet, arg1, arg2 string) error
SetupIPMasq mocks base method.
func (*MockInterface) SetupVeth ¶
func (m *MockInterface) SetupVeth(arg0 string, arg1 int, arg2 ns.NetNS) (net.Interface, net.Interface, error)
SetupVeth mocks base method.
func (*MockInterface) SetupVethWithName ¶
func (m *MockInterface) SetupVethWithName(arg0, arg1 string, arg2 int, arg3 ns.NetNS) (net.Interface, net.Interface, error)
SetupVethWithName mocks base method.
func (*MockInterface) TeardownIPMasq ¶
func (m *MockInterface) TeardownIPMasq(arg0 *net.IPNet, arg1, arg2 string) error
TeardownIPMasq mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddDefaultRoute ¶
func (mr *MockInterfaceMockRecorder) AddDefaultRoute(arg0, arg1 interface{}) *gomock.Call
AddDefaultRoute indicates an expected call of AddDefaultRoute.
func (*MockInterfaceMockRecorder) AddHostRoute ¶
func (mr *MockInterfaceMockRecorder) AddHostRoute(arg0, arg1, arg2 interface{}) *gomock.Call
AddHostRoute indicates an expected call of AddHostRoute.
func (*MockInterfaceMockRecorder) AddRoute ¶
func (mr *MockInterfaceMockRecorder) AddRoute(arg0, arg1, arg2 interface{}) *gomock.Call
AddRoute indicates an expected call of AddRoute.
func (*MockInterfaceMockRecorder) DelLinkByName ¶
func (mr *MockInterfaceMockRecorder) DelLinkByName(arg0 interface{}) *gomock.Call
DelLinkByName indicates an expected call of DelLinkByName.
func (*MockInterfaceMockRecorder) DelLinkByNameAddr ¶
func (mr *MockInterfaceMockRecorder) DelLinkByNameAddr(arg0 interface{}) *gomock.Call
DelLinkByNameAddr indicates an expected call of DelLinkByNameAddr.
func (*MockInterfaceMockRecorder) EnableForward ¶
func (mr *MockInterfaceMockRecorder) EnableForward(arg0 interface{}) *gomock.Call
EnableForward indicates an expected call of EnableForward.
func (*MockInterfaceMockRecorder) EnableIP4Forward ¶
func (mr *MockInterfaceMockRecorder) EnableIP4Forward() *gomock.Call
EnableIP4Forward indicates an expected call of EnableIP4Forward.
func (*MockInterfaceMockRecorder) EnableIP6Forward ¶
func (mr *MockInterfaceMockRecorder) EnableIP6Forward() *gomock.Call
EnableIP6Forward indicates an expected call of EnableIP6Forward.
func (*MockInterfaceMockRecorder) GetVethPeerIfindex ¶
func (mr *MockInterfaceMockRecorder) GetVethPeerIfindex(arg0 interface{}) *gomock.Call
GetVethPeerIfindex indicates an expected call of GetVethPeerIfindex.
func (*MockInterfaceMockRecorder) RandomVethName ¶
func (mr *MockInterfaceMockRecorder) RandomVethName() *gomock.Call
RandomVethName indicates an expected call of RandomVethName.
func (*MockInterfaceMockRecorder) RenameLink ¶
func (mr *MockInterfaceMockRecorder) RenameLink(arg0, arg1 interface{}) *gomock.Call
RenameLink indicates an expected call of RenameLink.
func (*MockInterfaceMockRecorder) SetupIPMasq ¶
func (mr *MockInterfaceMockRecorder) SetupIPMasq(arg0, arg1, arg2 interface{}) *gomock.Call
SetupIPMasq indicates an expected call of SetupIPMasq.
func (*MockInterfaceMockRecorder) SetupVeth ¶
func (mr *MockInterfaceMockRecorder) SetupVeth(arg0, arg1, arg2 interface{}) *gomock.Call
SetupVeth indicates an expected call of SetupVeth.
func (*MockInterfaceMockRecorder) SetupVethWithName ¶
func (mr *MockInterfaceMockRecorder) SetupVethWithName(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetupVethWithName indicates an expected call of SetupVethWithName.
func (*MockInterfaceMockRecorder) TeardownIPMasq ¶
func (mr *MockInterfaceMockRecorder) TeardownIPMasq(arg0, arg1, arg2 interface{}) *gomock.Call
TeardownIPMasq indicates an expected call of TeardownIPMasq.