Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDevice
- func (m *MockDevice) BatchSize() int
- func (m *MockDevice) Close() error
- func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
- func (m *MockDevice) Events() <-chan tun.Event
- func (m *MockDevice) File() *os.File
- func (m *MockDevice) MTU() (int, error)
- func (m *MockDevice) Name() (string, error)
- func (m *MockDevice) Read(arg0 [][]byte, arg1 []int, arg2 int) (int, error)
- func (m *MockDevice) Write(arg0 [][]byte, arg1 int) (int, error)
- type MockDeviceMockRecorder
- func (mr *MockDeviceMockRecorder) BatchSize() *gomock.Call
- func (mr *MockDeviceMockRecorder) Close() *gomock.Call
- func (mr *MockDeviceMockRecorder) Events() *gomock.Call
- func (mr *MockDeviceMockRecorder) File() *gomock.Call
- func (mr *MockDeviceMockRecorder) MTU() *gomock.Call
- func (mr *MockDeviceMockRecorder) Name() *gomock.Call
- func (mr *MockDeviceMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
- type MockPacketFilter
- func (m *MockPacketFilter) AddUDPPacketHook(arg0 bool, arg1 netip.Addr, arg2 uint16, arg3 func([]byte) bool) string
- func (m *MockPacketFilter) EXPECT() *MockPacketFilterMockRecorder
- func (m *MockPacketFilter) FilterInbound(arg0 []byte, arg1 int) bool
- func (m *MockPacketFilter) FilterOutbound(arg0 []byte, arg1 int) bool
- func (m *MockPacketFilter) RemovePacketHook(arg0 string) error
- type MockPacketFilterMockRecorder
- func (mr *MockPacketFilterMockRecorder) AddUDPPacketHook(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) FilterInbound(arg0 interface{}, arg1 any) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) FilterOutbound(arg0 interface{}, arg1 any) *gomock.Call
- func (mr *MockPacketFilterMockRecorder) RemovePacketHook(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDevice ¶
type MockDevice struct {
// contains filtered or unexported fields
}
MockDevice is a mock of Device interface.
func NewMockDevice ¶
func NewMockDevice(ctrl *gomock.Controller) *MockDevice
NewMockDevice creates a new mock instance.
func (*MockDevice) EXPECT ¶
func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevice) Events ¶
func (m *MockDevice) Events() <-chan tun.Event
Events mocks base method.
type MockDeviceMockRecorder ¶
type MockDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceMockRecorder is the mock recorder for MockDevice.
func (*MockDeviceMockRecorder) BatchSize ¶
func (mr *MockDeviceMockRecorder) BatchSize() *gomock.Call
BatchSize indicates an expected call of BatchSize.
func (*MockDeviceMockRecorder) Close ¶
func (mr *MockDeviceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDeviceMockRecorder) Events ¶
func (mr *MockDeviceMockRecorder) Events() *gomock.Call
Events indicates an expected call of Events.
func (*MockDeviceMockRecorder) File ¶
func (mr *MockDeviceMockRecorder) File() *gomock.Call
File indicates an expected call of File.
func (*MockDeviceMockRecorder) MTU ¶
func (mr *MockDeviceMockRecorder) MTU() *gomock.Call
MTU indicates an expected call of MTU.
func (*MockDeviceMockRecorder) Name ¶
func (mr *MockDeviceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDeviceMockRecorder) Read ¶
func (mr *MockDeviceMockRecorder) Read(arg0, arg1, arg2 interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockDeviceMockRecorder) Write ¶
func (mr *MockDeviceMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockPacketFilter ¶
type MockPacketFilter struct {
// contains filtered or unexported fields
}
MockPacketFilter is a mock of PacketFilter interface.
func NewMockPacketFilter ¶
func NewMockPacketFilter(ctrl *gomock.Controller) *MockPacketFilter
NewMockPacketFilter creates a new mock instance.
func (*MockPacketFilter) AddUDPPacketHook ¶
func (m *MockPacketFilter) AddUDPPacketHook(arg0 bool, arg1 netip.Addr, arg2 uint16, arg3 func([]byte) bool) string
AddUDPPacketHook mocks base method.
func (*MockPacketFilter) EXPECT ¶
func (m *MockPacketFilter) EXPECT() *MockPacketFilterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacketFilter) FilterInbound ¶ added in v0.50.0
func (m *MockPacketFilter) FilterInbound(arg0 []byte, arg1 int) bool
FilterInbound mocks base method.
func (*MockPacketFilter) FilterOutbound ¶ added in v0.50.0
func (m *MockPacketFilter) FilterOutbound(arg0 []byte, arg1 int) bool
FilterOutbound mocks base method.
func (*MockPacketFilter) RemovePacketHook ¶
func (m *MockPacketFilter) RemovePacketHook(arg0 string) error
RemovePacketHook mocks base method.
type MockPacketFilterMockRecorder ¶
type MockPacketFilterMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketFilterMockRecorder is the mock recorder for MockPacketFilter.
func (*MockPacketFilterMockRecorder) AddUDPPacketHook ¶
func (mr *MockPacketFilterMockRecorder) AddUDPPacketHook(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AddUDPPacketHook indicates an expected call of AddUDPPacketHook.
func (*MockPacketFilterMockRecorder) FilterInbound ¶ added in v0.50.0
func (mr *MockPacketFilterMockRecorder) FilterInbound(arg0 interface{}, arg1 any) *gomock.Call
FilterInbound indicates an expected call of FilterInbound.
func (*MockPacketFilterMockRecorder) FilterOutbound ¶ added in v0.50.0
func (mr *MockPacketFilterMockRecorder) FilterOutbound(arg0 interface{}, arg1 any) *gomock.Call
FilterOutbound indicates an expected call of FilterOutbound.
func (*MockPacketFilterMockRecorder) RemovePacketHook ¶
func (mr *MockPacketFilterMockRecorder) RemovePacketHook(arg0 interface{}) *gomock.Call
RemovePacketHook indicates an expected call of RemovePacketHook.