mockenforcer

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPacketProcessor

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

MockPacketProcessor is a mock of PacketProcessor interface

func NewMockPacketProcessor

func NewMockPacketProcessor(ctrl *gomock.Controller) *MockPacketProcessor

NewMockPacketProcessor creates a new mock instance

func (*MockPacketProcessor) EXPECT

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

func (*MockPacketProcessor) Initialize

func (_m *MockPacketProcessor) Initialize(_param0 secrets.Secrets, _param1 *fqconfig.FilterQueue)

Initialize mocks base method

func (*MockPacketProcessor) PostProcessTCPAppPacket

func (_m *MockPacketProcessor) PostProcessTCPAppPacket(_param0 *packet.Packet, _param1 interface{}, _param2 *enforcer.PUContext, _param3 *enforcer.TCPConnection) bool

PostProcessTCPAppPacket mocks base method

func (*MockPacketProcessor) PostProcessTCPNetPacket

func (_m *MockPacketProcessor) PostProcessTCPNetPacket(_param0 *packet.Packet, _param1 interface{}, _param2 *tokens.ConnectionClaims, _param3 *enforcer.PUContext, _param4 *enforcer.TCPConnection) bool

PostProcessTCPNetPacket mocks base method

func (*MockPacketProcessor) PreProcessTCPAppPacket

func (_m *MockPacketProcessor) PreProcessTCPAppPacket(_param0 *packet.Packet, _param1 *enforcer.PUContext, _param2 *enforcer.TCPConnection) bool

PreProcessTCPAppPacket mocks base method

func (*MockPacketProcessor) PreProcessTCPNetPacket

func (_m *MockPacketProcessor) PreProcessTCPNetPacket(_param0 *packet.Packet, _param1 *enforcer.PUContext, _param2 *enforcer.TCPConnection) bool

PreProcessTCPNetPacket mocks base method

type MockPacketProcessorMockRecorder

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

MockPacketProcessorMockRecorder is the mock recorder for MockPacketProcessor

func (*MockPacketProcessorMockRecorder) Initialize

func (_mr *MockPacketProcessorMockRecorder) Initialize(arg0, arg1 interface{}) *gomock.Call

Initialize indicates an expected call of Initialize

func (*MockPacketProcessorMockRecorder) PostProcessTCPAppPacket

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

PostProcessTCPAppPacket indicates an expected call of PostProcessTCPAppPacket

func (*MockPacketProcessorMockRecorder) PostProcessTCPNetPacket

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

PostProcessTCPNetPacket indicates an expected call of PostProcessTCPNetPacket

func (*MockPacketProcessorMockRecorder) PreProcessTCPAppPacket

func (_mr *MockPacketProcessorMockRecorder) PreProcessTCPAppPacket(arg0, arg1, arg2 interface{}) *gomock.Call

PreProcessTCPAppPacket indicates an expected call of PreProcessTCPAppPacket

func (*MockPacketProcessorMockRecorder) PreProcessTCPNetPacket

func (_mr *MockPacketProcessorMockRecorder) PreProcessTCPNetPacket(arg0, arg1, arg2 interface{}) *gomock.Call

PreProcessTCPNetPacket indicates an expected call of PreProcessTCPNetPacket

type MockPolicyEnforcer

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

MockPolicyEnforcer is a mock of PolicyEnforcer interface

func NewMockPolicyEnforcer

func NewMockPolicyEnforcer(ctrl *gomock.Controller) *MockPolicyEnforcer

NewMockPolicyEnforcer creates a new mock instance

func (*MockPolicyEnforcer) EXPECT

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

func (*MockPolicyEnforcer) Enforce

func (_m *MockPolicyEnforcer) Enforce(_param0 string, _param1 *policy.PUInfo) error

Enforce mocks base method

func (*MockPolicyEnforcer) GetFilterQueue

func (_m *MockPolicyEnforcer) GetFilterQueue() *fqconfig.FilterQueue

GetFilterQueue mocks base method

func (*MockPolicyEnforcer) Start

func (_m *MockPolicyEnforcer) Start() error

Start mocks base method

func (*MockPolicyEnforcer) Stop

func (_m *MockPolicyEnforcer) Stop() error

Stop mocks base method

func (*MockPolicyEnforcer) Unenforce

func (_m *MockPolicyEnforcer) Unenforce(_param0 string) error

Unenforce mocks base method

type MockPolicyEnforcerMockRecorder

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

MockPolicyEnforcerMockRecorder is the mock recorder for MockPolicyEnforcer

func (*MockPolicyEnforcerMockRecorder) Enforce

func (_mr *MockPolicyEnforcerMockRecorder) Enforce(arg0, arg1 interface{}) *gomock.Call

Enforce indicates an expected call of Enforce

func (*MockPolicyEnforcerMockRecorder) GetFilterQueue

func (_mr *MockPolicyEnforcerMockRecorder) GetFilterQueue() *gomock.Call

GetFilterQueue indicates an expected call of GetFilterQueue

func (*MockPolicyEnforcerMockRecorder) Start

Start indicates an expected call of Start

func (*MockPolicyEnforcerMockRecorder) Stop

Stop indicates an expected call of Stop

func (*MockPolicyEnforcerMockRecorder) Unenforce

func (_mr *MockPolicyEnforcerMockRecorder) Unenforce(arg0 interface{}) *gomock.Call

Unenforce indicates an expected call of Unenforce

type MockPublicKeyAdder

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

MockPublicKeyAdder is a mock of PublicKeyAdder interface

func NewMockPublicKeyAdder

func NewMockPublicKeyAdder(ctrl *gomock.Controller) *MockPublicKeyAdder

NewMockPublicKeyAdder creates a new mock instance

func (*MockPublicKeyAdder) EXPECT

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

func (*MockPublicKeyAdder) PublicKeyAdd

func (_m *MockPublicKeyAdder) PublicKeyAdd(_param0 string, _param1 []byte) error

PublicKeyAdd mocks base method

type MockPublicKeyAdderMockRecorder

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

MockPublicKeyAdderMockRecorder is the mock recorder for MockPublicKeyAdder

func (*MockPublicKeyAdderMockRecorder) PublicKeyAdd

func (_mr *MockPublicKeyAdderMockRecorder) PublicKeyAdd(arg0, arg1 interface{}) *gomock.Call

PublicKeyAdd indicates an expected call of PublicKeyAdd

Jump to

Keyboard shortcuts

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