mocksupervisor

package
v10.193.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_supervisor is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImplementor

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

MockImplementor is a mock of Implementor interface

func NewMockImplementor

func NewMockImplementor(ctrl *gomock.Controller) *MockImplementor

NewMockImplementor creates a new mock instance

func (*MockImplementor) ACLProvider

func (m *MockImplementor) ACLProvider() []aclprovider.IptablesProvider

ACLProvider mocks base method

func (*MockImplementor) CleanUp

func (m *MockImplementor) CleanUp() error

CleanUp mocks base method

func (*MockImplementor) ConfigureRules

func (m *MockImplementor) ConfigureRules(version int, contextID string, containerInfo *policy.PUInfo) error

ConfigureRules mocks base method

func (*MockImplementor) DeleteRules

func (m *MockImplementor) DeleteRules(version int, context, tcpPorts, udpPorts, mark, uid, proxyPort string, puType common.PUType) error

DeleteRules mocks base method

func (*MockImplementor) EXPECT

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

func (*MockImplementor) Run

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

Run mocks base method

func (*MockImplementor) SetTargetNetworks

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

SetTargetNetworks mocks base method

func (*MockImplementor) UpdateRules

func (m *MockImplementor) UpdateRules(version int, contextID string, containerInfo, oldContainerInfo *policy.PUInfo) error

UpdateRules mocks base method

type MockImplementorMockRecorder

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

MockImplementorMockRecorder is the mock recorder for MockImplementor

func (*MockImplementorMockRecorder) ACLProvider

func (mr *MockImplementorMockRecorder) ACLProvider() *gomock.Call

ACLProvider indicates an expected call of ACLProvider

func (*MockImplementorMockRecorder) CleanUp

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

CleanUp indicates an expected call of CleanUp

func (*MockImplementorMockRecorder) ConfigureRules

func (mr *MockImplementorMockRecorder) ConfigureRules(version, contextID, containerInfo interface{}) *gomock.Call

ConfigureRules indicates an expected call of ConfigureRules

func (*MockImplementorMockRecorder) DeleteRules

func (mr *MockImplementorMockRecorder) DeleteRules(version, context, tcpPorts, udpPorts, mark, uid, proxyPort, puType interface{}) *gomock.Call

DeleteRules indicates an expected call of DeleteRules

func (*MockImplementorMockRecorder) Run

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

Run indicates an expected call of Run

func (*MockImplementorMockRecorder) SetTargetNetworks

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

SetTargetNetworks indicates an expected call of SetTargetNetworks

func (*MockImplementorMockRecorder) UpdateRules

func (mr *MockImplementorMockRecorder) UpdateRules(version, contextID, containerInfo, oldContainerInfo interface{}) *gomock.Call

UpdateRules indicates an expected call of UpdateRules

type MockSupervisor

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

MockSupervisor is a mock of Supervisor interface

func NewMockSupervisor

func NewMockSupervisor(ctrl *gomock.Controller) *MockSupervisor

NewMockSupervisor creates a new mock instance

func (*MockSupervisor) CleanUp

func (m *MockSupervisor) CleanUp() error

CleanUp mocks base method

func (*MockSupervisor) EXPECT

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

func (*MockSupervisor) EnableIPTablesPacketTracing

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

EnableIPTablesPacketTracing mocks base method

func (*MockSupervisor) Run

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

Run mocks base method

func (*MockSupervisor) SetTargetNetworks

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

SetTargetNetworks mocks base method

func (*MockSupervisor) Supervise

func (m *MockSupervisor) Supervise(contextID string, puInfo *policy.PUInfo) error

Supervise mocks base method

func (*MockSupervisor) Unsupervise

func (m *MockSupervisor) Unsupervise(contextID string) error

Unsupervise mocks base method

type MockSupervisorMockRecorder

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

MockSupervisorMockRecorder is the mock recorder for MockSupervisor

func (*MockSupervisorMockRecorder) CleanUp

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

CleanUp indicates an expected call of CleanUp

func (*MockSupervisorMockRecorder) EnableIPTablesPacketTracing

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

EnableIPTablesPacketTracing indicates an expected call of EnableIPTablesPacketTracing

func (*MockSupervisorMockRecorder) Run

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

Run indicates an expected call of Run

func (*MockSupervisorMockRecorder) SetTargetNetworks

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

SetTargetNetworks indicates an expected call of SetTargetNetworks

func (*MockSupervisorMockRecorder) Supervise

func (mr *MockSupervisorMockRecorder) Supervise(contextID, puInfo interface{}) *gomock.Call

Supervise indicates an expected call of Supervise

func (*MockSupervisorMockRecorder) Unsupervise

func (mr *MockSupervisorMockRecorder) Unsupervise(contextID interface{}) *gomock.Call

Unsupervise indicates an expected call of Unsupervise

Jump to

Keyboard shortcuts

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