mockenforcer

package
v10.340.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 11 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 MockDebugInfo

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

MockDebugInfo is a mock of DebugInfo interface nolint

func NewMockDebugInfo

func NewMockDebugInfo(ctrl *gomock.Controller) *MockDebugInfo

NewMockDebugInfo creates a new mock instance nolint

func (*MockDebugInfo) DebugCollect

func (m *MockDebugInfo) DebugCollect(ctx context.Context, contextID string, debugConfig *policy.DebugConfig) error

DebugCollect mocks base method nolint

func (*MockDebugInfo) EXPECT

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

func (*MockDebugInfo) EnableDatapathPacketTracing

func (m *MockDebugInfo) EnableDatapathPacketTracing(ctx context.Context, contextID string, direction packettracing.TracingDirection, interval time.Duration) error

EnableDatapathPacketTracing mocks base method nolint

func (*MockDebugInfo) EnableIPTablesPacketTracing

func (m *MockDebugInfo) EnableIPTablesPacketTracing(ctx context.Context, contextID string, interval time.Duration) error

EnableIPTablesPacketTracing mocks base method nolint

func (*MockDebugInfo) Ping

func (m *MockDebugInfo) Ping(ctx context.Context, contextID string, pingConfig *policy.PingConfig) error

Ping mocks base method nolint

type MockDebugInfoMockRecorder

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

MockDebugInfoMockRecorder is the mock recorder for MockDebugInfo nolint

func (*MockDebugInfoMockRecorder) DebugCollect

func (mr *MockDebugInfoMockRecorder) DebugCollect(ctx, contextID, debugConfig interface{}) *gomock.Call

DebugCollect indicates an expected call of DebugCollect nolint

func (*MockDebugInfoMockRecorder) EnableDatapathPacketTracing

func (mr *MockDebugInfoMockRecorder) EnableDatapathPacketTracing(ctx, contextID, direction, interval interface{}) *gomock.Call

EnableDatapathPacketTracing indicates an expected call of EnableDatapathPacketTracing nolint

func (*MockDebugInfoMockRecorder) EnableIPTablesPacketTracing

func (mr *MockDebugInfoMockRecorder) EnableIPTablesPacketTracing(ctx, contextID, interval interface{}) *gomock.Call

EnableIPTablesPacketTracing indicates an expected call of EnableIPTablesPacketTracing nolint

func (*MockDebugInfoMockRecorder) Ping

func (mr *MockDebugInfoMockRecorder) Ping(ctx, contextID, pingConfig interface{}) *gomock.Call

Ping indicates an expected call of Ping nolint

type MockEnforcer

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

MockEnforcer is a mock of Enforcer interface nolint

func NewMockEnforcer

func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer

NewMockEnforcer creates a new mock instance nolint

func (*MockEnforcer) CleanUp

func (m *MockEnforcer) CleanUp() error

CleanUp mocks base method nolint

func (*MockEnforcer) DebugCollect

func (m *MockEnforcer) DebugCollect(ctx context.Context, contextID string, debugConfig *policy.DebugConfig) error

DebugCollect mocks base method nolint

func (*MockEnforcer) EXPECT

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

func (*MockEnforcer) EnableDatapathPacketTracing

func (m *MockEnforcer) EnableDatapathPacketTracing(ctx context.Context, contextID string, direction packettracing.TracingDirection, interval time.Duration) error

EnableDatapathPacketTracing mocks base method nolint

func (*MockEnforcer) EnableIPTablesPacketTracing

func (m *MockEnforcer) EnableIPTablesPacketTracing(ctx context.Context, contextID string, interval time.Duration) error

EnableIPTablesPacketTracing mocks base method nolint

func (*MockEnforcer) Enforce

func (m *MockEnforcer) Enforce(ctx context.Context, contextID string, puInfo *policy.PUInfo) error

Enforce mocks base method nolint

func (*MockEnforcer) GetBPFObject

func (m *MockEnforcer) GetBPFObject() ebpf.BPFModule

GetBPFObject mocks base method nolint

func (*MockEnforcer) GetFilterQueue

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

GetFilterQueue mocks base method nolint

func (*MockEnforcer) GetServiceMeshType

func (m *MockEnforcer) GetServiceMeshType() policy.ServiceMesh

GetServiceMeshType mocks base method nolint

func (*MockEnforcer) Ping

func (m *MockEnforcer) Ping(ctx context.Context, contextID string, pingConfig *policy.PingConfig) error

Ping mocks base method nolint

func (*MockEnforcer) Run

func (m *MockEnforcer) Run(ctx context.Context) error

Run mocks base method nolint

func (*MockEnforcer) SetLogLevel

func (m *MockEnforcer) SetLogLevel(level constants.LogLevel) error

SetLogLevel mocks base method nolint

func (*MockEnforcer) SetTargetNetworks

func (m *MockEnforcer) SetTargetNetworks(cfg *runtime.Configuration) error

SetTargetNetworks mocks base method nolint

func (*MockEnforcer) Unenforce

func (m *MockEnforcer) Unenforce(ctx context.Context, contextID string) error

Unenforce mocks base method nolint

func (*MockEnforcer) UpdateSecrets

func (m *MockEnforcer) UpdateSecrets(secrets secrets.Secrets) error

UpdateSecrets mocks base method nolint

type MockEnforcerMockRecorder

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

MockEnforcerMockRecorder is the mock recorder for MockEnforcer nolint

func (*MockEnforcerMockRecorder) CleanUp

func (mr *MockEnforcerMockRecorder) CleanUp() *gomock.Call

CleanUp indicates an expected call of CleanUp nolint

func (*MockEnforcerMockRecorder) DebugCollect

func (mr *MockEnforcerMockRecorder) DebugCollect(ctx, contextID, debugConfig interface{}) *gomock.Call

DebugCollect indicates an expected call of DebugCollect nolint

func (*MockEnforcerMockRecorder) EnableDatapathPacketTracing

func (mr *MockEnforcerMockRecorder) EnableDatapathPacketTracing(ctx, contextID, direction, interval interface{}) *gomock.Call

EnableDatapathPacketTracing indicates an expected call of EnableDatapathPacketTracing nolint

func (*MockEnforcerMockRecorder) EnableIPTablesPacketTracing

func (mr *MockEnforcerMockRecorder) EnableIPTablesPacketTracing(ctx, contextID, interval interface{}) *gomock.Call

EnableIPTablesPacketTracing indicates an expected call of EnableIPTablesPacketTracing nolint

func (*MockEnforcerMockRecorder) Enforce

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

Enforce indicates an expected call of Enforce nolint

func (*MockEnforcerMockRecorder) GetBPFObject

func (mr *MockEnforcerMockRecorder) GetBPFObject() *gomock.Call

GetBPFObject indicates an expected call of GetBPFObject nolint

func (*MockEnforcerMockRecorder) GetFilterQueue

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

GetFilterQueue indicates an expected call of GetFilterQueue nolint

func (*MockEnforcerMockRecorder) GetServiceMeshType

func (mr *MockEnforcerMockRecorder) GetServiceMeshType() *gomock.Call

GetServiceMeshType indicates an expected call of GetServiceMeshType nolint

func (*MockEnforcerMockRecorder) Ping

func (mr *MockEnforcerMockRecorder) Ping(ctx, contextID, pingConfig interface{}) *gomock.Call

Ping indicates an expected call of Ping nolint

func (*MockEnforcerMockRecorder) Run

func (mr *MockEnforcerMockRecorder) Run(ctx interface{}) *gomock.Call

Run indicates an expected call of Run nolint

func (*MockEnforcerMockRecorder) SetLogLevel

func (mr *MockEnforcerMockRecorder) SetLogLevel(level interface{}) *gomock.Call

SetLogLevel indicates an expected call of SetLogLevel nolint

func (*MockEnforcerMockRecorder) SetTargetNetworks

func (mr *MockEnforcerMockRecorder) SetTargetNetworks(cfg interface{}) *gomock.Call

SetTargetNetworks indicates an expected call of SetTargetNetworks nolint

func (*MockEnforcerMockRecorder) Unenforce

func (mr *MockEnforcerMockRecorder) Unenforce(ctx, contextID interface{}) *gomock.Call

Unenforce indicates an expected call of Unenforce nolint

func (*MockEnforcerMockRecorder) UpdateSecrets

func (mr *MockEnforcerMockRecorder) UpdateSecrets(secrets interface{}) *gomock.Call

UpdateSecrets indicates an expected call of UpdateSecrets nolint

Jump to

Keyboard shortcuts

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