mocknfqueue

package
v1.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2019 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNFQueue

type MockNFQueue struct {
	// contains filtered or unexported fields
}

MockNFQueue is a mock of NFQueue interface

func NewMockNFQueue

func NewMockNFQueue(ctrl *gomock.Controller) *MockNFQueue

NewMockNFQueue creates a new mock instance

func (*MockNFQueue) BindPf

func (_m *MockNFQueue) BindPf() error

BindPf mocks base method

func (*MockNFQueue) CreateQueue

func (_m *MockNFQueue) CreateQueue(num uint16, data func(*NFPacket, interface{}), errorCallback func(error, interface{}), privateData interface{}) error

CreateQueue mocks base method

func (*MockNFQueue) EXPECT

func (_m *MockNFQueue) EXPECT() *MockNFQueueMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNFQueue) GetNotificationChannel

func (_m *MockNFQueue) GetNotificationChannel() chan *NFPacket

GetNotificationChannel mocks base method

func (*MockNFQueue) NfqClose

func (_m *MockNFQueue) NfqClose()

NfqClose mocks base method

func (*MockNFQueue) NfqDestroyQueue

func (_m *MockNFQueue) NfqDestroyQueue() error

NfqDestroyQueue mocks base method

func (*MockNFQueue) NfqOpen

func (_m *MockNFQueue) NfqOpen() (SockHandle, error)

NfqOpen mocks base method

func (*MockNFQueue) NfqSetMode

func (_m *MockNFQueue) NfqSetMode(mode nfqConfigMode, packetSize uint32) error

NfqSetMode mocks base method

func (*MockNFQueue) NfqSetQueueMaxLen

func (_m *MockNFQueue) NfqSetQueueMaxLen(queuelen uint32) error

NfqSetQueueMaxLen mocks base method

func (*MockNFQueue) ProcessPackets

func (_m *MockNFQueue) ProcessPackets(ctx context.Context)

ProcessPackets mocks base method

func (*MockNFQueue) Recv

Recv mocks base method

func (*MockNFQueue) SetVerdict

func (_m *MockNFQueue) SetVerdict(queueNum uint32, verdict uint32, packetLen uint32, packetID uint32, packet []byte)

SetVerdict mocks base method

func (*MockNFQueue) SetVerdict2

func (_m *MockNFQueue) SetVerdict2(queueNum uint32, verdict uint32, mark uint32, packetLen uint32, packetID uint32, packet []byte)

SetVerdict2 mocks base method

func (*MockNFQueue) StopQueue

func (_m *MockNFQueue) StopQueue() error

StopQueue mocks base method

func (*MockNFQueue) UnbindPf

func (_m *MockNFQueue) UnbindPf() error

UnbindPf mocks base method

type MockNFQueueMockRecorder

type MockNFQueueMockRecorder struct {
	// contains filtered or unexported fields
}

MockNFQueueMockRecorder is the mock recorder for MockNFQueue

func (*MockNFQueueMockRecorder) BindPf

func (_mr *MockNFQueueMockRecorder) BindPf() *gomock.Call

BindPf indicates an expected call of BindPf

func (*MockNFQueueMockRecorder) CreateQueue

func (_mr *MockNFQueueMockRecorder) CreateQueue(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateQueue indicates an expected call of CreateQueue

func (*MockNFQueueMockRecorder) GetNotificationChannel

func (_mr *MockNFQueueMockRecorder) GetNotificationChannel() *gomock.Call

GetNotificationChannel indicates an expected call of GetNotificationChannel

func (*MockNFQueueMockRecorder) NfqClose

func (_mr *MockNFQueueMockRecorder) NfqClose() *gomock.Call

NfqClose indicates an expected call of NfqClose

func (*MockNFQueueMockRecorder) NfqDestroyQueue

func (_mr *MockNFQueueMockRecorder) NfqDestroyQueue() *gomock.Call

NfqDestroyQueue indicates an expected call of NfqDestroyQueue

func (*MockNFQueueMockRecorder) NfqOpen

func (_mr *MockNFQueueMockRecorder) NfqOpen() *gomock.Call

NfqOpen indicates an expected call of NfqOpen

func (*MockNFQueueMockRecorder) NfqSetMode

func (_mr *MockNFQueueMockRecorder) NfqSetMode(arg0, arg1 interface{}) *gomock.Call

NfqSetMode indicates an expected call of NfqSetMode

func (*MockNFQueueMockRecorder) NfqSetQueueMaxLen

func (_mr *MockNFQueueMockRecorder) NfqSetQueueMaxLen(arg0 interface{}) *gomock.Call

NfqSetQueueMaxLen indicates an expected call of NfqSetQueueMaxLen

func (*MockNFQueueMockRecorder) ProcessPackets

func (_mr *MockNFQueueMockRecorder) ProcessPackets(arg0 interface{}) *gomock.Call

ProcessPackets indicates an expected call of ProcessPackets

func (*MockNFQueueMockRecorder) Recv

func (_mr *MockNFQueueMockRecorder) Recv() *gomock.Call

Recv indicates an expected call of Recv

func (*MockNFQueueMockRecorder) SetVerdict

func (_mr *MockNFQueueMockRecorder) SetVerdict(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SetVerdict indicates an expected call of SetVerdict

func (*MockNFQueueMockRecorder) SetVerdict2

func (_mr *MockNFQueueMockRecorder) SetVerdict2(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

SetVerdict2 indicates an expected call of SetVerdict2

func (*MockNFQueueMockRecorder) StopQueue

func (_mr *MockNFQueueMockRecorder) StopQueue() *gomock.Call

StopQueue indicates an expected call of StopQueue

func (*MockNFQueueMockRecorder) UnbindPf

func (_mr *MockNFQueueMockRecorder) UnbindPf() *gomock.Call

UnbindPf indicates an expected call of UnbindPf

type MockSockHandle

type MockSockHandle struct {
	// contains filtered or unexported fields
}

MockSockHandle is a mock of SockHandle interface

func NewMockSockHandle

func NewMockSockHandle(ctrl *gomock.Controller) *MockSockHandle

NewMockSockHandle creates a new mock instance

func (*MockSockHandle) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockSockHandleMockRecorder

type MockSockHandleMockRecorder struct {
	// contains filtered or unexported fields
}

MockSockHandleMockRecorder is the mock recorder for MockSockHandle

type MockVerdict

type MockVerdict struct {
	// contains filtered or unexported fields
}

MockVerdict is a mock of Verdict interface

func NewMockVerdict

func NewMockVerdict(ctrl *gomock.Controller) *MockVerdict

NewMockVerdict creates a new mock instance

func (*MockVerdict) EXPECT

func (_m *MockVerdict) EXPECT() *MockVerdictMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockVerdict) GetNotificationChannel

func (_m *MockVerdict) GetNotificationChannel() chan *NFPacket

GetNotificationChannel mocks base method

func (*MockVerdict) SetVerdict

func (_m *MockVerdict) SetVerdict(queueNum uint32, verdict uint32, packetLen uint32, packetID uint32, packet []byte)

SetVerdict mocks base method

func (*MockVerdict) SetVerdict2

func (_m *MockVerdict) SetVerdict2(queueNum uint32, verdict uint32, mark uint32, packetLen uint32, packetID uint32, packet []byte)

SetVerdict2 mocks base method

func (*MockVerdict) StopQueue

func (_m *MockVerdict) StopQueue() error

StopQueue mocks base method

type MockVerdictMockRecorder

type MockVerdictMockRecorder struct {
	// contains filtered or unexported fields
}

MockVerdictMockRecorder is the mock recorder for MockVerdict

func (*MockVerdictMockRecorder) GetNotificationChannel

func (_mr *MockVerdictMockRecorder) GetNotificationChannel() *gomock.Call

GetNotificationChannel indicates an expected call of GetNotificationChannel

func (*MockVerdictMockRecorder) SetVerdict

func (_mr *MockVerdictMockRecorder) SetVerdict(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SetVerdict indicates an expected call of SetVerdict

func (*MockVerdictMockRecorder) SetVerdict2

func (_mr *MockVerdictMockRecorder) SetVerdict2(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

SetVerdict2 indicates an expected call of SetVerdict2

func (*MockVerdictMockRecorder) StopQueue

func (_mr *MockVerdictMockRecorder) StopQueue() *gomock.Call

StopQueue indicates an expected call of StopQueue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL