mock_control

package
Version: v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_control is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDataplaneSession

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

MockDataplaneSession is a mock of DataplaneSession interface

func NewMockDataplaneSession

func NewMockDataplaneSession(ctrl *gomock.Controller) *MockDataplaneSession

NewMockDataplaneSession creates a new mock instance

func (*MockDataplaneSession) Close

func (m *MockDataplaneSession) Close()

Close mocks base method

func (*MockDataplaneSession) EXPECT

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

func (*MockDataplaneSession) SetPath

func (m *MockDataplaneSession) SetPath(arg0 snet.Path) error

SetPath mocks base method

func (*MockDataplaneSession) Write

func (m *MockDataplaneSession) Write(arg0 []byte)

Write mocks base method

type MockDataplaneSessionFactory

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

MockDataplaneSessionFactory is a mock of DataplaneSessionFactory interface

func NewMockDataplaneSessionFactory

func NewMockDataplaneSessionFactory(ctrl *gomock.Controller) *MockDataplaneSessionFactory

NewMockDataplaneSessionFactory creates a new mock instance

func (*MockDataplaneSessionFactory) EXPECT

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

func (*MockDataplaneSessionFactory) New

func (m *MockDataplaneSessionFactory) New(arg0 byte, arg1 int, arg2 addr.IA, arg3 net.Addr) control.DataplaneSession

New mocks base method

type MockDataplaneSessionFactoryMockRecorder

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

MockDataplaneSessionFactoryMockRecorder is the mock recorder for MockDataplaneSessionFactory

func (*MockDataplaneSessionFactoryMockRecorder) New

func (mr *MockDataplaneSessionFactoryMockRecorder) New(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

New indicates an expected call of New

type MockDataplaneSessionMockRecorder

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

MockDataplaneSessionMockRecorder is the mock recorder for MockDataplaneSession

func (*MockDataplaneSessionMockRecorder) Close

Close indicates an expected call of Close

func (*MockDataplaneSessionMockRecorder) SetPath

func (mr *MockDataplaneSessionMockRecorder) SetPath(arg0 interface{}) *gomock.Call

SetPath indicates an expected call of SetPath

func (*MockDataplaneSessionMockRecorder) Write

func (mr *MockDataplaneSessionMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockDiscoverer

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

MockDiscoverer is a mock of Discoverer interface

func NewMockDiscoverer

func NewMockDiscoverer(ctrl *gomock.Controller) *MockDiscoverer

NewMockDiscoverer creates a new mock instance

func (*MockDiscoverer) EXPECT

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

func (*MockDiscoverer) Gateways

func (m *MockDiscoverer) Gateways(arg0 context.Context) ([]control.Gateway, error)

Gateways mocks base method

type MockDiscovererMockRecorder

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

MockDiscovererMockRecorder is the mock recorder for MockDiscoverer

func (*MockDiscovererMockRecorder) Gateways

func (mr *MockDiscovererMockRecorder) Gateways(arg0 interface{}) *gomock.Call

Gateways indicates an expected call of Gateways

type MockEngineFactory

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

MockEngineFactory is a mock of EngineFactory interface

func NewMockEngineFactory

func NewMockEngineFactory(ctrl *gomock.Controller) *MockEngineFactory

NewMockEngineFactory creates a new mock instance

func (*MockEngineFactory) EXPECT

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

func (*MockEngineFactory) New

func (m *MockEngineFactory) New(arg0 control.RoutingTable, arg1 []*control.SessionConfig, arg2 map[int][]byte) control.Worker

New mocks base method

type MockEngineFactoryMockRecorder

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

MockEngineFactoryMockRecorder is the mock recorder for MockEngineFactory

func (*MockEngineFactoryMockRecorder) New

func (mr *MockEngineFactoryMockRecorder) New(arg0, arg1, arg2 interface{}) *gomock.Call

New indicates an expected call of New

type MockGatewayWatcherFactory

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

MockGatewayWatcherFactory is a mock of GatewayWatcherFactory interface

func NewMockGatewayWatcherFactory

func NewMockGatewayWatcherFactory(ctrl *gomock.Controller) *MockGatewayWatcherFactory

NewMockGatewayWatcherFactory creates a new mock instance

func (*MockGatewayWatcherFactory) EXPECT

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

func (*MockGatewayWatcherFactory) New

New mocks base method

type MockGatewayWatcherFactoryMockRecorder

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

MockGatewayWatcherFactoryMockRecorder is the mock recorder for MockGatewayWatcherFactory

func (*MockGatewayWatcherFactoryMockRecorder) New

func (mr *MockGatewayWatcherFactoryMockRecorder) New(arg0, arg1 interface{}) *gomock.Call

New indicates an expected call of New

type MockPacketConnFactory

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

MockPacketConnFactory is a mock of PacketConnFactory interface

func NewMockPacketConnFactory

func NewMockPacketConnFactory(ctrl *gomock.Controller) *MockPacketConnFactory

NewMockPacketConnFactory creates a new mock instance

func (*MockPacketConnFactory) EXPECT

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

func (*MockPacketConnFactory) New

New mocks base method

type MockPacketConnFactoryMockRecorder

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

MockPacketConnFactoryMockRecorder is the mock recorder for MockPacketConnFactory

func (*MockPacketConnFactoryMockRecorder) New

New indicates an expected call of New

type MockPathMonitor

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

MockPathMonitor is a mock of PathMonitor interface

func NewMockPathMonitor

func NewMockPathMonitor(ctrl *gomock.Controller) *MockPathMonitor

NewMockPathMonitor creates a new mock instance

func (*MockPathMonitor) EXPECT

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

func (*MockPathMonitor) Register

func (m *MockPathMonitor) Register(arg0 addr.IA, arg1 *policies.Policies, arg2 int) control.PathMonitorRegistration

Register mocks base method

type MockPathMonitorMockRecorder

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

MockPathMonitorMockRecorder is the mock recorder for MockPathMonitor

func (*MockPathMonitorMockRecorder) Register

func (mr *MockPathMonitorMockRecorder) Register(arg0, arg1, arg2 interface{}) *gomock.Call

Register indicates an expected call of Register

type MockPathMonitorRegistration

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

MockPathMonitorRegistration is a mock of PathMonitorRegistration interface

func NewMockPathMonitorRegistration

func NewMockPathMonitorRegistration(ctrl *gomock.Controller) *MockPathMonitorRegistration

NewMockPathMonitorRegistration creates a new mock instance

func (*MockPathMonitorRegistration) Close

func (m *MockPathMonitorRegistration) Close()

Close mocks base method

func (*MockPathMonitorRegistration) EXPECT

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

func (*MockPathMonitorRegistration) Get

Get mocks base method

type MockPathMonitorRegistrationMockRecorder

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

MockPathMonitorRegistrationMockRecorder is the mock recorder for MockPathMonitorRegistration

func (*MockPathMonitorRegistrationMockRecorder) Close

Close indicates an expected call of Close

func (*MockPathMonitorRegistrationMockRecorder) Get

Get indicates an expected call of Get

type MockPktWriter

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

MockPktWriter is a mock of PktWriter interface

func NewMockPktWriter

func NewMockPktWriter(ctrl *gomock.Controller) *MockPktWriter

NewMockPktWriter creates a new mock instance

func (*MockPktWriter) EXPECT

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

func (*MockPktWriter) Write

func (m *MockPktWriter) Write(arg0 []byte)

Write mocks base method

type MockPktWriterMockRecorder

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

MockPktWriterMockRecorder is the mock recorder for MockPktWriter

func (*MockPktWriterMockRecorder) Write

func (mr *MockPktWriterMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockPrefixConsumer

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

MockPrefixConsumer is a mock of PrefixConsumer interface

func NewMockPrefixConsumer

func NewMockPrefixConsumer(ctrl *gomock.Controller) *MockPrefixConsumer

NewMockPrefixConsumer creates a new mock instance

func (*MockPrefixConsumer) EXPECT

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

func (*MockPrefixConsumer) Prefixes

func (m *MockPrefixConsumer) Prefixes(arg0 addr.IA, arg1 control.Gateway, arg2 []*net.IPNet)

Prefixes mocks base method

type MockPrefixConsumerMockRecorder

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

MockPrefixConsumerMockRecorder is the mock recorder for MockPrefixConsumer

func (*MockPrefixConsumerMockRecorder) Prefixes

func (mr *MockPrefixConsumerMockRecorder) Prefixes(arg0, arg1, arg2 interface{}) *gomock.Call

Prefixes indicates an expected call of Prefixes

type MockPrefixFetcher

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

MockPrefixFetcher is a mock of PrefixFetcher interface

func NewMockPrefixFetcher

func NewMockPrefixFetcher(ctrl *gomock.Controller) *MockPrefixFetcher

NewMockPrefixFetcher creates a new mock instance

func (*MockPrefixFetcher) EXPECT

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

func (*MockPrefixFetcher) Prefixes

func (m *MockPrefixFetcher) Prefixes(arg0 context.Context, arg1 *net.UDPAddr) ([]*net.IPNet, error)

Prefixes mocks base method

type MockPrefixFetcherMockRecorder

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

MockPrefixFetcherMockRecorder is the mock recorder for MockPrefixFetcher

func (*MockPrefixFetcherMockRecorder) Prefixes

func (mr *MockPrefixFetcherMockRecorder) Prefixes(arg0, arg1 interface{}) *gomock.Call

Prefixes indicates an expected call of Prefixes

type MockRouteExporter

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

MockRouteExporter is a mock of RouteExporter interface

func NewMockRouteExporter

func NewMockRouteExporter(ctrl *gomock.Controller) *MockRouteExporter

NewMockRouteExporter creates a new mock instance

func (*MockRouteExporter) AddNetwork

func (m *MockRouteExporter) AddNetwork(arg0 net.IPNet)

AddNetwork mocks base method

func (*MockRouteExporter) DeleteNetwork

func (m *MockRouteExporter) DeleteNetwork(arg0 net.IPNet)

DeleteNetwork mocks base method

func (*MockRouteExporter) EXPECT

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

type MockRouteExporterMockRecorder

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

MockRouteExporterMockRecorder is the mock recorder for MockRouteExporter

func (*MockRouteExporterMockRecorder) AddNetwork

func (mr *MockRouteExporterMockRecorder) AddNetwork(arg0 interface{}) *gomock.Call

AddNetwork indicates an expected call of AddNetwork

func (*MockRouteExporterMockRecorder) DeleteNetwork

func (mr *MockRouteExporterMockRecorder) DeleteNetwork(arg0 interface{}) *gomock.Call

DeleteNetwork indicates an expected call of DeleteNetwork

type MockRoutingPolicyProvider

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

MockRoutingPolicyProvider is a mock of RoutingPolicyProvider interface

func NewMockRoutingPolicyProvider

func NewMockRoutingPolicyProvider(ctrl *gomock.Controller) *MockRoutingPolicyProvider

NewMockRoutingPolicyProvider creates a new mock instance

func (*MockRoutingPolicyProvider) EXPECT

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

func (*MockRoutingPolicyProvider) RoutingPolicy

func (m *MockRoutingPolicyProvider) RoutingPolicy() *routing.Policy

RoutingPolicy mocks base method

type MockRoutingPolicyProviderMockRecorder

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

MockRoutingPolicyProviderMockRecorder is the mock recorder for MockRoutingPolicyProvider

func (*MockRoutingPolicyProviderMockRecorder) RoutingPolicy

func (mr *MockRoutingPolicyProviderMockRecorder) RoutingPolicy() *gomock.Call

RoutingPolicy indicates an expected call of RoutingPolicy

type MockRoutingTable

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

MockRoutingTable is a mock of RoutingTable interface

func NewMockRoutingTable

func NewMockRoutingTable(ctrl *gomock.Controller) *MockRoutingTable

NewMockRoutingTable creates a new mock instance

func (*MockRoutingTable) AddRoute

func (m *MockRoutingTable) AddRoute(arg0 int, arg1 control.PktWriter) error

AddRoute mocks base method

func (*MockRoutingTable) DelRoute

func (m *MockRoutingTable) DelRoute(arg0 int) error

DelRoute mocks base method

func (*MockRoutingTable) EXPECT

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

func (*MockRoutingTable) RouteIPv4

func (m *MockRoutingTable) RouteIPv4(arg0 layers.IPv4) control.PktWriter

RouteIPv4 mocks base method

func (*MockRoutingTable) RouteIPv6

func (m *MockRoutingTable) RouteIPv6(arg0 layers.IPv6) control.PktWriter

RouteIPv6 mocks base method

type MockRoutingTableFactory

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

MockRoutingTableFactory is a mock of RoutingTableFactory interface

func NewMockRoutingTableFactory

func NewMockRoutingTableFactory(ctrl *gomock.Controller) *MockRoutingTableFactory

NewMockRoutingTableFactory creates a new mock instance

func (*MockRoutingTableFactory) EXPECT

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

func (*MockRoutingTableFactory) New

New mocks base method

type MockRoutingTableFactoryMockRecorder

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

MockRoutingTableFactoryMockRecorder is the mock recorder for MockRoutingTableFactory

func (*MockRoutingTableFactoryMockRecorder) New

func (mr *MockRoutingTableFactoryMockRecorder) New(arg0 interface{}) *gomock.Call

New indicates an expected call of New

type MockRoutingTableMockRecorder

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

MockRoutingTableMockRecorder is the mock recorder for MockRoutingTable

func (*MockRoutingTableMockRecorder) AddRoute

func (mr *MockRoutingTableMockRecorder) AddRoute(arg0, arg1 interface{}) *gomock.Call

AddRoute indicates an expected call of AddRoute

func (*MockRoutingTableMockRecorder) DelRoute

func (mr *MockRoutingTableMockRecorder) DelRoute(arg0 interface{}) *gomock.Call

DelRoute indicates an expected call of DelRoute

func (*MockRoutingTableMockRecorder) RouteIPv4

func (mr *MockRoutingTableMockRecorder) RouteIPv4(arg0 interface{}) *gomock.Call

RouteIPv4 indicates an expected call of RouteIPv4

func (*MockRoutingTableMockRecorder) RouteIPv6

func (mr *MockRoutingTableMockRecorder) RouteIPv6(arg0 interface{}) *gomock.Call

RouteIPv6 indicates an expected call of RouteIPv6

type MockRoutingTableSwapper

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

MockRoutingTableSwapper is a mock of RoutingTableSwapper interface

func NewMockRoutingTableSwapper

func NewMockRoutingTableSwapper(ctrl *gomock.Controller) *MockRoutingTableSwapper

NewMockRoutingTableSwapper creates a new mock instance

func (*MockRoutingTableSwapper) EXPECT

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

func (*MockRoutingTableSwapper) SetRoutingTable

func (m *MockRoutingTableSwapper) SetRoutingTable(arg0 control.RoutingTable)

SetRoutingTable mocks base method

type MockRoutingTableSwapperMockRecorder

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

MockRoutingTableSwapperMockRecorder is the mock recorder for MockRoutingTableSwapper

func (*MockRoutingTableSwapperMockRecorder) SetRoutingTable

func (mr *MockRoutingTableSwapperMockRecorder) SetRoutingTable(arg0 interface{}) *gomock.Call

SetRoutingTable indicates an expected call of SetRoutingTable

type MockRunner

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

MockRunner is a mock of Runner interface

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

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

func (*MockRunner) Run

func (m *MockRunner) Run(arg0 context.Context) error

Run mocks base method

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run(arg0 interface{}) *gomock.Call

Run indicates an expected call of Run

type MockSessionPolicyParser

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

MockSessionPolicyParser is a mock of SessionPolicyParser interface

func NewMockSessionPolicyParser

func NewMockSessionPolicyParser(ctrl *gomock.Controller) *MockSessionPolicyParser

NewMockSessionPolicyParser creates a new mock instance

func (*MockSessionPolicyParser) EXPECT

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

func (*MockSessionPolicyParser) Parse

Parse mocks base method

type MockSessionPolicyParserMockRecorder

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

MockSessionPolicyParserMockRecorder is the mock recorder for MockSessionPolicyParser

func (*MockSessionPolicyParserMockRecorder) Parse

func (mr *MockSessionPolicyParserMockRecorder) Parse(arg0 interface{}) *gomock.Call

Parse indicates an expected call of Parse

type MockWorker

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

MockWorker is a mock of Worker interface

func NewMockWorker

func NewMockWorker(ctrl *gomock.Controller) *MockWorker

NewMockWorker creates a new mock instance

func (*MockWorker) Close

func (m *MockWorker) Close() error

Close mocks base method

func (*MockWorker) EXPECT

func (m *MockWorker) EXPECT() *MockWorkerMockRecorder

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

func (*MockWorker) Run

func (m *MockWorker) Run() error

Run mocks base method

type MockWorkerMockRecorder

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

MockWorkerMockRecorder is the mock recorder for MockWorker

func (*MockWorkerMockRecorder) Close

func (mr *MockWorkerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockWorkerMockRecorder) Run

func (mr *MockWorkerMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL