Documentation ¶
Overview ¶
Package mockenforcer is a generated GoMock package.
Index ¶
- type MockPacketProcessor
- func (m *MockPacketProcessor) EXPECT() *MockPacketProcessorMockRecorder
- func (m *MockPacketProcessor) Initialize(s secrets.Secrets, fq *fqconfig.FilterQueue)
- func (m *MockPacketProcessor) PostProcessTCPAppPacket(p *packet.Packet, action interface{}, context *enforcer.PUContext, ...) bool
- func (m *MockPacketProcessor) PostProcessTCPNetPacket(p *packet.Packet, action interface{}, claims *tokens.ConnectionClaims, ...) bool
- func (m *MockPacketProcessor) PreProcessTCPAppPacket(p *packet.Packet, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool
- func (m *MockPacketProcessor) PreProcessTCPNetPacket(p *packet.Packet, context *enforcer.PUContext, conn *enforcer.TCPConnection) bool
- type MockPacketProcessorMockRecorder
- func (mr *MockPacketProcessorMockRecorder) Initialize(s, fq interface{}) *gomock.Call
- func (mr *MockPacketProcessorMockRecorder) PostProcessTCPAppPacket(p, action, context, conn interface{}) *gomock.Call
- func (mr *MockPacketProcessorMockRecorder) PostProcessTCPNetPacket(p, action, claims, context, conn interface{}) *gomock.Call
- func (mr *MockPacketProcessorMockRecorder) PreProcessTCPAppPacket(p, context, conn interface{}) *gomock.Call
- func (mr *MockPacketProcessorMockRecorder) PreProcessTCPNetPacket(p, context, conn interface{}) *gomock.Call
- type MockPolicyEnforcer
- func (m *MockPolicyEnforcer) EXPECT() *MockPolicyEnforcerMockRecorder
- func (m *MockPolicyEnforcer) Enforce(contextID string, puInfo *policy.PUInfo) error
- func (m *MockPolicyEnforcer) GetFilterQueue() *fqconfig.FilterQueue
- func (m *MockPolicyEnforcer) Start() error
- func (m *MockPolicyEnforcer) Stop() error
- func (m *MockPolicyEnforcer) Unenforce(contextID string) error
- type MockPolicyEnforcerMockRecorder
- func (mr *MockPolicyEnforcerMockRecorder) Enforce(contextID, puInfo interface{}) *gomock.Call
- func (mr *MockPolicyEnforcerMockRecorder) GetFilterQueue() *gomock.Call
- func (mr *MockPolicyEnforcerMockRecorder) Start() *gomock.Call
- func (mr *MockPolicyEnforcerMockRecorder) Stop() *gomock.Call
- func (mr *MockPolicyEnforcerMockRecorder) Unenforce(contextID interface{}) *gomock.Call
- type MockPublicKeyAdder
- type MockPublicKeyAdderMockRecorder
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 ¶
func (m *MockPacketProcessor) EXPECT() *MockPacketProcessorMockRecorder
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 ¶
func (m *MockPolicyEnforcer) EXPECT() *MockPolicyEnforcerMockRecorder
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 ¶
func (mr *MockPolicyEnforcerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start nolint
func (*MockPolicyEnforcerMockRecorder) Stop ¶
func (mr *MockPolicyEnforcerMockRecorder) Stop() *gomock.Call
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 ¶
func (m *MockPublicKeyAdder) EXPECT() *MockPublicKeyAdderMockRecorder
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