Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) DetectDefaultRouteInterfaceName() (string, error)
- func (m *MockInterface) DetectInterfaceMTU(arg0 string) (int, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetIPFromPodNetNS(arg0, arg1 string, arg2 int) (net.IP, error)
- func (m *MockInterface) GetLinkByMacAddress(arg0 string) (netlink.Link, error)
- func (m *MockInterface) GratuitousArpOverIface(arg0 net.IP, arg1 net.Interface) error
- func (m *MockInterface) InterfaceByName(arg0 string) (*net.Interface, error)
- func (m *MockInterface) PingOverIfaceByName(arg0 net.IP, arg1 string) (net.HardwareAddr, time.Duration, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) DetectDefaultRouteInterfaceName() *gomock.Call
- func (mr *MockInterfaceMockRecorder) DetectInterfaceMTU(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetIPFromPodNetNS(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetLinkByMacAddress(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GratuitousArpOverIface(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) InterfaceByName(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PingOverIfaceByName(arg0, arg1 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) DetectDefaultRouteInterfaceName ¶
func (m *MockInterface) DetectDefaultRouteInterfaceName() (string, error)
DetectDefaultRouteInterfaceName mocks base method.
func (*MockInterface) DetectInterfaceMTU ¶
func (m *MockInterface) DetectInterfaceMTU(arg0 string) (int, error)
DetectInterfaceMTU 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) GetIPFromPodNetNS ¶
GetIPFromPodNetNS mocks base method.
func (*MockInterface) GetLinkByMacAddress ¶
func (m *MockInterface) GetLinkByMacAddress(arg0 string) (netlink.Link, error)
GetLinkByMacAddress mocks base method.
func (*MockInterface) GratuitousArpOverIface ¶
GratuitousArpOverIface mocks base method.
func (*MockInterface) InterfaceByName ¶
func (m *MockInterface) InterfaceByName(arg0 string) (*net.Interface, error)
InterfaceByName mocks base method.
func (*MockInterface) PingOverIfaceByName ¶ added in v1.9.2
func (m *MockInterface) PingOverIfaceByName(arg0 net.IP, arg1 string) (net.HardwareAddr, time.Duration, error)
PingOverIfaceByName mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) DetectDefaultRouteInterfaceName ¶
func (mr *MockInterfaceMockRecorder) DetectDefaultRouteInterfaceName() *gomock.Call
DetectDefaultRouteInterfaceName indicates an expected call of DetectDefaultRouteInterfaceName.
func (*MockInterfaceMockRecorder) DetectInterfaceMTU ¶
func (mr *MockInterfaceMockRecorder) DetectInterfaceMTU(arg0 interface{}) *gomock.Call
DetectInterfaceMTU indicates an expected call of DetectInterfaceMTU.
func (*MockInterfaceMockRecorder) GetIPFromPodNetNS ¶
func (mr *MockInterfaceMockRecorder) GetIPFromPodNetNS(arg0, arg1, arg2 interface{}) *gomock.Call
GetIPFromPodNetNS indicates an expected call of GetIPFromPodNetNS.
func (*MockInterfaceMockRecorder) GetLinkByMacAddress ¶
func (mr *MockInterfaceMockRecorder) GetLinkByMacAddress(arg0 interface{}) *gomock.Call
GetLinkByMacAddress indicates an expected call of GetLinkByMacAddress.
func (*MockInterfaceMockRecorder) GratuitousArpOverIface ¶
func (mr *MockInterfaceMockRecorder) GratuitousArpOverIface(arg0, arg1 interface{}) *gomock.Call
GratuitousArpOverIface indicates an expected call of GratuitousArpOverIface.
func (*MockInterfaceMockRecorder) InterfaceByName ¶
func (mr *MockInterfaceMockRecorder) InterfaceByName(arg0 interface{}) *gomock.Call
InterfaceByName indicates an expected call of InterfaceByName.
func (*MockInterfaceMockRecorder) PingOverIfaceByName ¶ added in v1.9.2
func (mr *MockInterfaceMockRecorder) PingOverIfaceByName(arg0, arg1 interface{}) *gomock.Call
PingOverIfaceByName indicates an expected call of PingOverIfaceByName.