mockenforcer

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mockenforcer is a generated GoMock package.

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 nolint

func NewMockPacketProcessor

func NewMockPacketProcessor(ctrl *gomock.Controller) *MockPacketProcessor

NewMockPacketProcessor creates a new mock instance nolint

func (*MockPacketProcessor) EXPECT

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

func (*MockPacketProcessor) Initialize

func (m *MockPacketProcessor) Initialize(s secrets.Secrets, fq *fqconfig.FilterQueue)

Initialize mocks base method nolint

func (*MockPacketProcessor) PostProcessTCPAppPacket

func (m *MockPacketProcessor) PostProcessTCPAppPacket(p *packet.Packet, action interface{}, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool

PostProcessTCPAppPacket mocks base method nolint

func (*MockPacketProcessor) PostProcessTCPNetPacket

func (m *MockPacketProcessor) PostProcessTCPNetPacket(p *packet.Packet, action interface{}, claims *tokens.ConnectionClaims, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool

PostProcessTCPNetPacket mocks base method nolint

func (*MockPacketProcessor) PreProcessTCPAppPacket

func (m *MockPacketProcessor) PreProcessTCPAppPacket(p *packet.Packet, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool

PreProcessTCPAppPacket mocks base method nolint

func (*MockPacketProcessor) PreProcessTCPNetPacket

func (m *MockPacketProcessor) PreProcessTCPNetPacket(p *packet.Packet, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool

PreProcessTCPNetPacket mocks base method nolint

type MockPacketProcessorMockRecorder

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

MockPacketProcessorMockRecorder is the mock recorder for MockPacketProcessor nolint

func (*MockPacketProcessorMockRecorder) Initialize

func (mr *MockPacketProcessorMockRecorder) Initialize(s, fq interface{}) *gomock.Call

Initialize indicates an expected call of Initialize nolint

func (*MockPacketProcessorMockRecorder) PostProcessTCPAppPacket

func (mr *MockPacketProcessorMockRecorder) PostProcessTCPAppPacket(p, action, context, conn interface{}) *gomock.Call

PostProcessTCPAppPacket indicates an expected call of PostProcessTCPAppPacket nolint

func (*MockPacketProcessorMockRecorder) PostProcessTCPNetPacket

func (mr *MockPacketProcessorMockRecorder) PostProcessTCPNetPacket(p, action, claims, context, conn interface{}) *gomock.Call

PostProcessTCPNetPacket indicates an expected call of PostProcessTCPNetPacket nolint

func (*MockPacketProcessorMockRecorder) PreProcessTCPAppPacket

func (mr *MockPacketProcessorMockRecorder) PreProcessTCPAppPacket(p, context, conn interface{}) *gomock.Call

PreProcessTCPAppPacket indicates an expected call of PreProcessTCPAppPacket nolint

func (*MockPacketProcessorMockRecorder) PreProcessTCPNetPacket

func (mr *MockPacketProcessorMockRecorder) PreProcessTCPNetPacket(p, context, conn interface{}) *gomock.Call

PreProcessTCPNetPacket indicates an expected call of PreProcessTCPNetPacket nolint

type MockPolicyEnforcer

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

MockPolicyEnforcer is a mock of PolicyEnforcer interface nolint

func NewMockPolicyEnforcer

func NewMockPolicyEnforcer(ctrl *gomock.Controller) *MockPolicyEnforcer

NewMockPolicyEnforcer creates a new mock instance nolint

func (*MockPolicyEnforcer) EXPECT

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

func (*MockPolicyEnforcer) Enforce

func (m *MockPolicyEnforcer) Enforce(contextID string, puInfo *policy.PUInfo) error

Enforce mocks base method nolint

func (*MockPolicyEnforcer) GetFilterQueue

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

GetFilterQueue mocks base method nolint

func (*MockPolicyEnforcer) Start

func (m *MockPolicyEnforcer) Start() error

Start mocks base method nolint

func (*MockPolicyEnforcer) Stop

func (m *MockPolicyEnforcer) Stop() error

Stop mocks base method nolint

func (*MockPolicyEnforcer) Unenforce

func (m *MockPolicyEnforcer) Unenforce(contextID string) error

Unenforce mocks base method nolint

type MockPolicyEnforcerMockRecorder

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

MockPolicyEnforcerMockRecorder is the mock recorder for MockPolicyEnforcer nolint

func (*MockPolicyEnforcerMockRecorder) Enforce

func (mr *MockPolicyEnforcerMockRecorder) Enforce(contextID, puInfo interface{}) *gomock.Call

Enforce indicates an expected call of Enforce nolint

func (*MockPolicyEnforcerMockRecorder) GetFilterQueue

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

GetFilterQueue indicates an expected call of GetFilterQueue nolint

func (*MockPolicyEnforcerMockRecorder) Start

Start indicates an expected call of Start nolint

func (*MockPolicyEnforcerMockRecorder) Stop

Stop indicates an expected call of Stop nolint

func (*MockPolicyEnforcerMockRecorder) Unenforce

func (mr *MockPolicyEnforcerMockRecorder) Unenforce(contextID interface{}) *gomock.Call

Unenforce indicates an expected call of Unenforce nolint

type MockPublicKeyAdder

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

MockPublicKeyAdder is a mock of PublicKeyAdder interface nolint

func NewMockPublicKeyAdder

func NewMockPublicKeyAdder(ctrl *gomock.Controller) *MockPublicKeyAdder

NewMockPublicKeyAdder creates a new mock instance nolint

func (*MockPublicKeyAdder) EXPECT

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

func (*MockPublicKeyAdder) PublicKeyAdd

func (m *MockPublicKeyAdder) PublicKeyAdd(host string, cert []byte) error

PublicKeyAdd mocks base method nolint

type MockPublicKeyAdderMockRecorder

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

MockPublicKeyAdderMockRecorder is the mock recorder for MockPublicKeyAdder nolint

func (*MockPublicKeyAdderMockRecorder) PublicKeyAdd

func (mr *MockPublicKeyAdderMockRecorder) PublicKeyAdd(host, cert interface{}) *gomock.Call

PublicKeyAdd indicates an expected call of PublicKeyAdd nolint

Jump to

Keyboard shortcuts

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