mockinsecure

package
v0.28.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttackOrchestrator

type AttackOrchestrator struct {
	mock.Mock
}

AttackOrchestrator is an autogenerated mock type for the AttackOrchestrator type

func NewAttackOrchestrator added in v0.26.1

func NewAttackOrchestrator(t mockConstructorTestingTNewAttackOrchestrator) *AttackOrchestrator

NewAttackOrchestrator creates a new instance of AttackOrchestrator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AttackOrchestrator) HandleEgressEvent added in v0.28.0

func (_m *AttackOrchestrator) HandleEgressEvent(_a0 *insecure.EgressEvent) error

HandleEgressEvent provides a mock function with given fields: _a0

func (*AttackOrchestrator) HandleIngressEvent added in v0.28.0

func (_m *AttackOrchestrator) HandleIngressEvent(_a0 *insecure.IngressEvent) error

HandleIngressEvent provides a mock function with given fields: _a0

func (*AttackOrchestrator) Register added in v0.28.0

Register provides a mock function with given fields: _a0

type CorruptConduitFactory added in v0.28.0

type CorruptConduitFactory struct {
	mock.Mock
}

CorruptConduitFactory is an autogenerated mock type for the CorruptConduitFactory type

func NewCorruptConduitFactory added in v0.28.0

func NewCorruptConduitFactory(t mockConstructorTestingTNewCorruptConduitFactory) *CorruptConduitFactory

NewCorruptConduitFactory creates a new instance of CorruptConduitFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptConduitFactory) NewConduit added in v0.28.0

NewConduit provides a mock function with given fields: _a0, _a1

func (*CorruptConduitFactory) RegisterAdapter added in v0.28.0

func (_m *CorruptConduitFactory) RegisterAdapter(_a0 network.Adapter) error

RegisterAdapter provides a mock function with given fields: _a0

func (*CorruptConduitFactory) RegisterEgressController added in v0.28.0

func (_m *CorruptConduitFactory) RegisterEgressController(_a0 insecure.EgressController) error

RegisterEgressController provides a mock function with given fields: _a0

func (*CorruptConduitFactory) SendOnFlowNetwork added in v0.28.0

func (_m *CorruptConduitFactory) SendOnFlowNetwork(_a0 interface{}, _a1 channels.Channel, _a2 insecure.Protocol, _a3 uint, _a4 ...flow.Identifier) error

SendOnFlowNetwork provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*CorruptConduitFactory) UnregisterChannel added in v0.28.0

func (_m *CorruptConduitFactory) UnregisterChannel(_a0 channels.Channel) error

UnregisterChannel provides a mock function with given fields: _a0

type CorruptNetworkClient added in v0.28.0

type CorruptNetworkClient struct {
	mock.Mock
}

CorruptNetworkClient is an autogenerated mock type for the CorruptNetworkClient type

func NewCorruptNetworkClient added in v0.28.0

func NewCorruptNetworkClient(t mockConstructorTestingTNewCorruptNetworkClient) *CorruptNetworkClient

NewCorruptNetworkClient creates a new instance of CorruptNetworkClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetworkClient) ConnectAttacker added in v0.28.0

ConnectAttacker provides a mock function with given fields: ctx, in, opts

func (*CorruptNetworkClient) ProcessAttackerMessage added in v0.28.0

ProcessAttackerMessage provides a mock function with given fields: ctx, opts

type CorruptNetworkServer added in v0.28.0

type CorruptNetworkServer struct {
	mock.Mock
}

CorruptNetworkServer is an autogenerated mock type for the CorruptNetworkServer type

func NewCorruptNetworkServer added in v0.28.0

func NewCorruptNetworkServer(t mockConstructorTestingTNewCorruptNetworkServer) *CorruptNetworkServer

NewCorruptNetworkServer creates a new instance of CorruptNetworkServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetworkServer) ConnectAttacker added in v0.28.0

ConnectAttacker provides a mock function with given fields: _a0, _a1

func (*CorruptNetworkServer) ProcessAttackerMessage added in v0.28.0

ProcessAttackerMessage provides a mock function with given fields: _a0

type CorruptNetwork_ConnectAttackerClient added in v0.28.0

type CorruptNetwork_ConnectAttackerClient struct {
	mock.Mock
}

CorruptNetwork_ConnectAttackerClient is an autogenerated mock type for the CorruptNetwork_ConnectAttackerClient type

func NewCorruptNetwork_ConnectAttackerClient added in v0.28.0

func NewCorruptNetwork_ConnectAttackerClient(t mockConstructorTestingTNewCorruptNetwork_ConnectAttackerClient) *CorruptNetwork_ConnectAttackerClient

NewCorruptNetwork_ConnectAttackerClient creates a new instance of CorruptNetwork_ConnectAttackerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetwork_ConnectAttackerClient) CloseSend added in v0.28.0

CloseSend provides a mock function with given fields:

func (*CorruptNetwork_ConnectAttackerClient) Context added in v0.28.0

Context provides a mock function with given fields:

func (*CorruptNetwork_ConnectAttackerClient) Header added in v0.28.0

Header provides a mock function with given fields:

func (*CorruptNetwork_ConnectAttackerClient) Recv added in v0.28.0

Recv provides a mock function with given fields:

func (*CorruptNetwork_ConnectAttackerClient) RecvMsg added in v0.28.0

func (_m *CorruptNetwork_ConnectAttackerClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*CorruptNetwork_ConnectAttackerClient) SendMsg added in v0.28.0

func (_m *CorruptNetwork_ConnectAttackerClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*CorruptNetwork_ConnectAttackerClient) Trailer added in v0.28.0

Trailer provides a mock function with given fields:

type CorruptNetwork_ConnectAttackerServer added in v0.28.0

type CorruptNetwork_ConnectAttackerServer struct {
	mock.Mock
}

CorruptNetwork_ConnectAttackerServer is an autogenerated mock type for the CorruptNetwork_ConnectAttackerServer type

func NewCorruptNetwork_ConnectAttackerServer added in v0.28.0

func NewCorruptNetwork_ConnectAttackerServer(t mockConstructorTestingTNewCorruptNetwork_ConnectAttackerServer) *CorruptNetwork_ConnectAttackerServer

NewCorruptNetwork_ConnectAttackerServer creates a new instance of CorruptNetwork_ConnectAttackerServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetwork_ConnectAttackerServer) Context added in v0.28.0

Context provides a mock function with given fields:

func (*CorruptNetwork_ConnectAttackerServer) RecvMsg added in v0.28.0

func (_m *CorruptNetwork_ConnectAttackerServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*CorruptNetwork_ConnectAttackerServer) Send added in v0.28.0

Send provides a mock function with given fields: _a0

func (*CorruptNetwork_ConnectAttackerServer) SendHeader added in v0.28.0

SendHeader provides a mock function with given fields: _a0

func (*CorruptNetwork_ConnectAttackerServer) SendMsg added in v0.28.0

func (_m *CorruptNetwork_ConnectAttackerServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*CorruptNetwork_ConnectAttackerServer) SetHeader added in v0.28.0

SetHeader provides a mock function with given fields: _a0

func (*CorruptNetwork_ConnectAttackerServer) SetTrailer added in v0.28.0

func (_m *CorruptNetwork_ConnectAttackerServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type CorruptNetwork_ProcessAttackerMessageClient added in v0.28.0

type CorruptNetwork_ProcessAttackerMessageClient struct {
	mock.Mock
}

CorruptNetwork_ProcessAttackerMessageClient is an autogenerated mock type for the CorruptNetwork_ProcessAttackerMessageClient type

func NewCorruptNetwork_ProcessAttackerMessageClient added in v0.28.0

func NewCorruptNetwork_ProcessAttackerMessageClient(t mockConstructorTestingTNewCorruptNetwork_ProcessAttackerMessageClient) *CorruptNetwork_ProcessAttackerMessageClient

NewCorruptNetwork_ProcessAttackerMessageClient creates a new instance of CorruptNetwork_ProcessAttackerMessageClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetwork_ProcessAttackerMessageClient) CloseAndRecv added in v0.28.0

CloseAndRecv provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageClient) CloseSend added in v0.28.0

CloseSend provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageClient) Context added in v0.28.0

Context provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageClient) Header added in v0.28.0

Header provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageClient) RecvMsg added in v0.28.0

func (_m *CorruptNetwork_ProcessAttackerMessageClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*CorruptNetwork_ProcessAttackerMessageClient) Send added in v0.28.0

Send provides a mock function with given fields: _a0

func (*CorruptNetwork_ProcessAttackerMessageClient) SendMsg added in v0.28.0

func (_m *CorruptNetwork_ProcessAttackerMessageClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*CorruptNetwork_ProcessAttackerMessageClient) Trailer added in v0.28.0

Trailer provides a mock function with given fields:

type CorruptNetwork_ProcessAttackerMessageServer added in v0.28.0

type CorruptNetwork_ProcessAttackerMessageServer struct {
	mock.Mock
}

CorruptNetwork_ProcessAttackerMessageServer is an autogenerated mock type for the CorruptNetwork_ProcessAttackerMessageServer type

func NewCorruptNetwork_ProcessAttackerMessageServer added in v0.28.0

func NewCorruptNetwork_ProcessAttackerMessageServer(t mockConstructorTestingTNewCorruptNetwork_ProcessAttackerMessageServer) *CorruptNetwork_ProcessAttackerMessageServer

NewCorruptNetwork_ProcessAttackerMessageServer creates a new instance of CorruptNetwork_ProcessAttackerMessageServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptNetwork_ProcessAttackerMessageServer) Context added in v0.28.0

Context provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageServer) Recv added in v0.28.0

Recv provides a mock function with given fields:

func (*CorruptNetwork_ProcessAttackerMessageServer) RecvMsg added in v0.28.0

func (_m *CorruptNetwork_ProcessAttackerMessageServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*CorruptNetwork_ProcessAttackerMessageServer) SendAndClose added in v0.28.0

SendAndClose provides a mock function with given fields: _a0

func (*CorruptNetwork_ProcessAttackerMessageServer) SendHeader added in v0.28.0

SendHeader provides a mock function with given fields: _a0

func (*CorruptNetwork_ProcessAttackerMessageServer) SendMsg added in v0.28.0

func (_m *CorruptNetwork_ProcessAttackerMessageServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*CorruptNetwork_ProcessAttackerMessageServer) SetHeader added in v0.28.0

SetHeader provides a mock function with given fields: _a0

func (*CorruptNetwork_ProcessAttackerMessageServer) SetTrailer added in v0.28.0

SetTrailer provides a mock function with given fields: _a0

type CorruptedNodeConnection added in v0.25.2

type CorruptedNodeConnection struct {
	mock.Mock
}

CorruptedNodeConnection is an autogenerated mock type for the CorruptedNodeConnection type

func NewCorruptedNodeConnection added in v0.26.1

func NewCorruptedNodeConnection(t mockConstructorTestingTNewCorruptedNodeConnection) *CorruptedNodeConnection

NewCorruptedNodeConnection creates a new instance of CorruptedNodeConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptedNodeConnection) CloseConnection added in v0.25.2

func (_m *CorruptedNodeConnection) CloseConnection() error

CloseConnection provides a mock function with given fields:

func (*CorruptedNodeConnection) SendMessage added in v0.25.2

func (_m *CorruptedNodeConnection) SendMessage(_a0 *insecure.Message) error

SendMessage provides a mock function with given fields: _a0

type CorruptedNodeConnector added in v0.25.2

type CorruptedNodeConnector struct {
	mock.Mock
}

CorruptedNodeConnector is an autogenerated mock type for the CorruptedNodeConnector type

func NewCorruptedNodeConnector added in v0.26.1

func NewCorruptedNodeConnector(t mockConstructorTestingTNewCorruptedNodeConnector) *CorruptedNodeConnector

NewCorruptedNodeConnector creates a new instance of CorruptedNodeConnector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptedNodeConnector) Connect added in v0.25.2

Connect provides a mock function with given fields: _a0, _a1

func (*CorruptedNodeConnector) WithIncomingMessageHandler added in v0.27.0

func (_m *CorruptedNodeConnector) WithIncomingMessageHandler(_a0 func(*insecure.Message))

WithIncomingMessageHandler provides a mock function with given fields: _a0

type EgressController added in v0.28.0

type EgressController struct {
	mock.Mock
}

EgressController is an autogenerated mock type for the EgressController type

func NewEgressController added in v0.28.0

func NewEgressController(t mockConstructorTestingTNewEgressController) *EgressController

NewEgressController creates a new instance of EgressController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EgressController) EngineClosingChannel added in v0.28.0

func (_m *EgressController) EngineClosingChannel(_a0 channels.Channel) error

EngineClosingChannel provides a mock function with given fields: _a0

func (*EgressController) HandleOutgoingEvent added in v0.28.0

func (_m *EgressController) HandleOutgoingEvent(_a0 interface{}, _a1 channels.Channel, _a2 insecure.Protocol, _a3 uint32, _a4 ...flow.Identifier) error

HandleOutgoingEvent provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type IngressController added in v0.28.0

type IngressController struct {
	mock.Mock
}

IngressController is an autogenerated mock type for the IngressController type

func NewIngressController added in v0.28.0

func NewIngressController(t mockConstructorTestingTNewIngressController) *IngressController

NewIngressController creates a new instance of IngressController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IngressController) HandleIncomingEvent added in v0.28.0

func (_m *IngressController) HandleIncomingEvent(_a0 interface{}, _a1 channels.Channel, _a2 flow.Identifier) bool

HandleIncomingEvent provides a mock function with given fields: _a0, _a1, _a2

type OrchestratorNetwork added in v0.28.0

type OrchestratorNetwork struct {
	mock.Mock
}

OrchestratorNetwork is an autogenerated mock type for the OrchestratorNetwork type

func NewOrchestratorNetwork added in v0.28.0

func NewOrchestratorNetwork(t mockConstructorTestingTNewOrchestratorNetwork) *OrchestratorNetwork

NewOrchestratorNetwork creates a new instance of OrchestratorNetwork. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OrchestratorNetwork) Done added in v0.28.0

func (_m *OrchestratorNetwork) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*OrchestratorNetwork) Observe added in v0.28.0

func (_m *OrchestratorNetwork) Observe(_a0 *insecure.Message)

Observe provides a mock function with given fields: _a0

func (*OrchestratorNetwork) Ready added in v0.28.0

func (_m *OrchestratorNetwork) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*OrchestratorNetwork) SendEgress added in v0.28.0

func (_m *OrchestratorNetwork) SendEgress(_a0 *insecure.EgressEvent) error

SendEgress provides a mock function with given fields: _a0

func (*OrchestratorNetwork) SendIngress added in v0.28.0

func (_m *OrchestratorNetwork) SendIngress(_a0 *insecure.IngressEvent) error

SendIngress provides a mock function with given fields: _a0

func (*OrchestratorNetwork) Start added in v0.28.0

Start provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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