mock

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAMI

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

MockAMI is a mock of AMI interface

func NewMockAMI

func NewMockAMI(ctrl *gomock.Controller) *MockAMI

NewMockAMI creates a new mock instance

func (*MockAMI) ApplyApp

func (m *MockAMI) ApplyApp(arg0 string, arg1 v1.Application, arg2 map[string]v1.Configuration, arg3 map[string]v1.Secret) error

ApplyApp mocks base method

func (*MockAMI) CollectNodeInfo

func (m *MockAMI) CollectNodeInfo() (map[string]interface{}, error)

CollectNodeInfo mocks base method

func (*MockAMI) CollectNodeStats

func (m *MockAMI) CollectNodeStats() (map[string]interface{}, error)

CollectNodeStats mocks base method

func (*MockAMI) DeleteApp

func (m *MockAMI) DeleteApp(arg0, arg1 string) error

DeleteApp mocks base method

func (*MockAMI) EXPECT

func (m *MockAMI) EXPECT() *MockAMIMockRecorder

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

func (*MockAMI) FetchLog

func (m *MockAMI) FetchLog(namespace, service string, tailLines, sinceSeconds int64) (io.ReadCloser, error)

FetchLog mocks base method

func (*MockAMI) GetModeInfo added in v2.2.0

func (m *MockAMI) GetModeInfo() (interface{}, error)

GetModeInfo mocks base method

func (*MockAMI) RPCApp added in v2.3.0

func (m *MockAMI) RPCApp(url string, req *v1.RPCRequest) (*v1.RPCResponse, error)

RPCApp mocks base method

func (*MockAMI) RemoteCommand

func (m *MockAMI) RemoteCommand(option *ami.DebugOptions, pipe ami.Pipe) error

RemoteCommand mocks base method

func (*MockAMI) RemoteLogs added in v2.2.0

func (m *MockAMI) RemoteLogs(option *ami.LogsOptions, pipe ami.Pipe) error

RemoteLogs mocks base method

func (*MockAMI) RemoteWebsocket added in v2.4.3

func (m *MockAMI) RemoteWebsocket(ctx context.Context, option *ami.DebugOptions, pipe ami.Pipe) error

RemoteWebsocket mocks base method

func (*MockAMI) StatsApps

func (m *MockAMI) StatsApps(arg0 string) ([]v1.AppStats, error)

StatsApps mocks base method

func (*MockAMI) UpdateNodeLabels added in v2.2.0

func (m *MockAMI) UpdateNodeLabels(arg0 string, arg1 map[string]string) error

UpdateNodeLabels mocks base method

type MockAMIMockRecorder

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

MockAMIMockRecorder is the mock recorder for MockAMI

func (*MockAMIMockRecorder) ApplyApp

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

ApplyApp indicates an expected call of ApplyApp

func (*MockAMIMockRecorder) CollectNodeInfo

func (mr *MockAMIMockRecorder) CollectNodeInfo() *gomock.Call

CollectNodeInfo indicates an expected call of CollectNodeInfo

func (*MockAMIMockRecorder) CollectNodeStats

func (mr *MockAMIMockRecorder) CollectNodeStats() *gomock.Call

CollectNodeStats indicates an expected call of CollectNodeStats

func (*MockAMIMockRecorder) DeleteApp

func (mr *MockAMIMockRecorder) DeleteApp(arg0, arg1 interface{}) *gomock.Call

DeleteApp indicates an expected call of DeleteApp

func (*MockAMIMockRecorder) FetchLog

func (mr *MockAMIMockRecorder) FetchLog(namespace, service, tailLines, sinceSeconds interface{}) *gomock.Call

FetchLog indicates an expected call of FetchLog

func (*MockAMIMockRecorder) GetModeInfo added in v2.2.0

func (mr *MockAMIMockRecorder) GetModeInfo() *gomock.Call

GetModeInfo indicates an expected call of GetModeInfo

func (*MockAMIMockRecorder) RPCApp added in v2.3.0

func (mr *MockAMIMockRecorder) RPCApp(url, req interface{}) *gomock.Call

RPCApp indicates an expected call of RPCApp

func (*MockAMIMockRecorder) RemoteCommand

func (mr *MockAMIMockRecorder) RemoteCommand(option, pipe interface{}) *gomock.Call

RemoteCommand indicates an expected call of RemoteCommand

func (*MockAMIMockRecorder) RemoteLogs added in v2.2.0

func (mr *MockAMIMockRecorder) RemoteLogs(option, pipe interface{}) *gomock.Call

RemoteLogs indicates an expected call of RemoteLogs

func (*MockAMIMockRecorder) RemoteWebsocket added in v2.4.3

func (mr *MockAMIMockRecorder) RemoteWebsocket(ctx, option, pipe interface{}) *gomock.Call

RemoteWebsocket indicates an expected call of RemoteWebsocket

func (*MockAMIMockRecorder) StatsApps

func (mr *MockAMIMockRecorder) StatsApps(arg0 interface{}) *gomock.Call

StatsApps indicates an expected call of StatsApps

func (*MockAMIMockRecorder) UpdateNodeLabels added in v2.2.0

func (mr *MockAMIMockRecorder) UpdateNodeLabels(arg0, arg1 interface{}) *gomock.Call

UpdateNodeLabels indicates an expected call of UpdateNodeLabels

type MockAgentClient added in v2.3.0

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

MockAgentClient is a mock of AgentClient interface

func NewMockAgentClient added in v2.3.0

func NewMockAgentClient(ctrl *gomock.Controller) *MockAgentClient

NewMockAgentClient creates a new mock instance

func (*MockAgentClient) EXPECT added in v2.3.0

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

func (*MockAgentClient) GetOrSetAgentFlag added in v2.3.0

func (m *MockAgentClient) GetOrSetAgentFlag(action string) (bool, error)

GetOrSetAgentFlag mocks base method

func (*MockAgentClient) SendRequest added in v2.3.0

func (m *MockAgentClient) SendRequest(ctx *routing.Context) (interface{}, error)

SendRequest mocks base method

type MockAgentClientMockRecorder added in v2.3.0

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

MockAgentClientMockRecorder is the mock recorder for MockAgentClient

func (*MockAgentClientMockRecorder) GetOrSetAgentFlag added in v2.3.0

func (mr *MockAgentClientMockRecorder) GetOrSetAgentFlag(action interface{}) *gomock.Call

GetOrSetAgentFlag indicates an expected call of GetOrSetAgentFlag

func (*MockAgentClientMockRecorder) SendRequest added in v2.3.0

func (mr *MockAgentClientMockRecorder) SendRequest(ctx interface{}) *gomock.Call

SendRequest indicates an expected call of SendRequest

type MockChain added in v2.1.1

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

MockChain is a mock of Chain interface

func NewMockChain added in v2.1.1

func NewMockChain(ctrl *gomock.Controller) *MockChain

NewMockChain creates a new mock instance

func (*MockChain) Cancel added in v2.4.3

func (m *MockChain) Cancel() error

Cancel mocks base method

func (*MockChain) Close added in v2.1.1

func (m *MockChain) Close() error

Close mocks base method

func (*MockChain) Debug added in v2.2.0

func (m *MockChain) Debug() error

Debug mocks base method

func (*MockChain) EXPECT added in v2.1.1

func (m *MockChain) EXPECT() *MockChainMockRecorder

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

func (*MockChain) ViewLogs added in v2.2.0

func (m *MockChain) ViewLogs(arg0 *ami.LogsOptions) error

ViewLogs mocks base method

type MockChainMockRecorder added in v2.1.1

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

MockChainMockRecorder is the mock recorder for MockChain

func (*MockChainMockRecorder) Cancel added in v2.4.3

func (mr *MockChainMockRecorder) Cancel() *gomock.Call

Cancel indicates an expected call of Cancel

func (*MockChainMockRecorder) Close added in v2.1.1

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

Close indicates an expected call of Close

func (*MockChainMockRecorder) Debug added in v2.2.0

func (mr *MockChainMockRecorder) Debug() *gomock.Call

Debug indicates an expected call of Debug

func (*MockChainMockRecorder) ViewLogs added in v2.2.0

func (mr *MockChainMockRecorder) ViewLogs(arg0 interface{}) *gomock.Call

ViewLogs indicates an expected call of ViewLogs

type MockEngine

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

MockEngine is a mock of Engine interface.

func NewMockEngine

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance.

func (*MockEngine) Close

func (m *MockEngine) Close()

Close mocks base method.

func (*MockEngine) Collect

func (m *MockEngine) Collect(ns string, isSys bool, desire v1.Desire) v1.Report

Collect mocks base method.

func (*MockEngine) EXPECT

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

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

func (*MockEngine) GetServiceLog

func (m *MockEngine) GetServiceLog(ctx *routing.Context) error

GetServiceLog mocks base method.

func (*MockEngine) ReportAndDesire

func (m *MockEngine) ReportAndDesire() error

ReportAndDesire mocks base method.

func (*MockEngine) Start

func (m *MockEngine) Start()

Start mocks base method.

type MockEngineMockRecorder

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

MockEngineMockRecorder is the mock recorder for MockEngine.

func (*MockEngineMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockEngineMockRecorder) Collect

func (mr *MockEngineMockRecorder) Collect(ns, isSys, desire interface{}) *gomock.Call

Collect indicates an expected call of Collect.

func (*MockEngineMockRecorder) GetServiceLog

func (mr *MockEngineMockRecorder) GetServiceLog(ctx interface{}) *gomock.Call

GetServiceLog indicates an expected call of GetServiceLog.

func (*MockEngineMockRecorder) ReportAndDesire

func (mr *MockEngineMockRecorder) ReportAndDesire() *gomock.Call

ReportAndDesire indicates an expected call of ReportAndDesire.

func (*MockEngineMockRecorder) Start

func (mr *MockEngineMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

type MockNode added in v2.3.0

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

MockNode is a mock of Node interface.

func NewMockNode added in v2.3.0

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance.

func (*MockNode) Desire added in v2.3.0

func (m *MockNode) Desire(desired v1.Desire, override bool) (v1.Delta, error)

Desire mocks base method.

func (*MockNode) EXPECT added in v2.3.0

func (m *MockNode) EXPECT() *MockNodeMockRecorder

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

func (*MockNode) Get added in v2.3.0

func (m *MockNode) Get() (*v1.Node, error)

Get mocks base method.

func (*MockNode) GetNodeProperties added in v2.3.0

func (m *MockNode) GetNodeProperties(ctx *routing.Context) (interface{}, error)

GetNodeProperties mocks base method.

func (*MockNode) GetStats added in v2.3.0

func (m *MockNode) GetStats(ctx *routing.Context) (interface{}, error)

GetStats mocks base method.

func (*MockNode) Report added in v2.3.0

func (m *MockNode) Report(reported v1.Report, override bool) (v1.Delta, error)

Report mocks base method.

func (*MockNode) UpdateNodeProperties added in v2.3.0

func (m *MockNode) UpdateNodeProperties(ctx *routing.Context) (interface{}, error)

UpdateNodeProperties mocks base method.

type MockNodeMockRecorder added in v2.3.0

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

MockNodeMockRecorder is the mock recorder for MockNode.

func (*MockNodeMockRecorder) Desire added in v2.3.0

func (mr *MockNodeMockRecorder) Desire(desired, override interface{}) *gomock.Call

Desire indicates an expected call of Desire.

func (*MockNodeMockRecorder) Get added in v2.3.0

func (mr *MockNodeMockRecorder) Get() *gomock.Call

Get indicates an expected call of Get.

func (*MockNodeMockRecorder) GetNodeProperties added in v2.3.0

func (mr *MockNodeMockRecorder) GetNodeProperties(ctx interface{}) *gomock.Call

GetNodeProperties indicates an expected call of GetNodeProperties.

func (*MockNodeMockRecorder) GetStats added in v2.3.0

func (mr *MockNodeMockRecorder) GetStats(ctx interface{}) *gomock.Call

GetStats indicates an expected call of GetStats.

func (*MockNodeMockRecorder) Report added in v2.3.0

func (mr *MockNodeMockRecorder) Report(reported, override interface{}) *gomock.Call

Report indicates an expected call of Report.

func (*MockNodeMockRecorder) UpdateNodeProperties added in v2.3.0

func (mr *MockNodeMockRecorder) UpdateNodeProperties(ctx interface{}) *gomock.Call

UpdateNodeProperties indicates an expected call of UpdateNodeProperties.

type MockSecurity

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

MockSecurity is a mock of Security interface

func NewMockSecurity

func NewMockSecurity(ctrl *gomock.Controller) *MockSecurity

NewMockSecurity creates a new mock instance

func (*MockSecurity) EXPECT

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

func (*MockSecurity) GetCA

func (m *MockSecurity) GetCA() ([]byte, error)

GetCA mocks base method

func (*MockSecurity) IssueCertificate

func (m *MockSecurity) IssueCertificate(cn string, alt security.AltNames) (*pki.CertPem, error)

IssueCertificate mocks base method

func (*MockSecurity) RevokeCertificate

func (m *MockSecurity) RevokeCertificate(cn string) error

RevokeCertificate mocks base method

func (*MockSecurity) RotateCertificate

func (m *MockSecurity) RotateCertificate(cn string) (*pki.CertPem, error)

RotateCertificate mocks base method

type MockSecurityMockRecorder

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

MockSecurityMockRecorder is the mock recorder for MockSecurity

func (*MockSecurityMockRecorder) GetCA

func (mr *MockSecurityMockRecorder) GetCA() *gomock.Call

GetCA indicates an expected call of GetCA

func (*MockSecurityMockRecorder) IssueCertificate

func (mr *MockSecurityMockRecorder) IssueCertificate(cn, alt interface{}) *gomock.Call

IssueCertificate indicates an expected call of IssueCertificate

func (*MockSecurityMockRecorder) RevokeCertificate

func (mr *MockSecurityMockRecorder) RevokeCertificate(cn interface{}) *gomock.Call

RevokeCertificate indicates an expected call of RevokeCertificate

func (*MockSecurityMockRecorder) RotateCertificate

func (mr *MockSecurityMockRecorder) RotateCertificate(cn interface{}) *gomock.Call

RotateCertificate indicates an expected call of RotateCertificate

type MockSync

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

MockSync is a mock of Sync interface.

func NewMockSync

func NewMockSync(ctrl *gomock.Controller) *MockSync

NewMockSync creates a new mock instance.

func (*MockSync) Close

func (m *MockSync) Close()

Close mocks base method.

func (*MockSync) EXPECT

func (m *MockSync) EXPECT() *MockSyncMockRecorder

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

func (*MockSync) Report

func (m *MockSync) Report(r v1.Report) (v1.Desire, error)

Report mocks base method.

func (*MockSync) Start

func (m *MockSync) Start()

Start mocks base method.

func (*MockSync) SyncApps

func (m *MockSync) SyncApps(infos []v1.AppInfo) (map[string]v1.Application, error)

SyncApps mocks base method.

func (*MockSync) SyncResource

func (m *MockSync) SyncResource(arg0 v1.AppInfo) error

SyncResource mocks base method.

type MockSyncMockRecorder

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

MockSyncMockRecorder is the mock recorder for MockSync.

func (*MockSyncMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockSyncMockRecorder) Report

func (mr *MockSyncMockRecorder) Report(r interface{}) *gomock.Call

Report indicates an expected call of Report.

func (*MockSyncMockRecorder) Start

func (mr *MockSyncMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockSyncMockRecorder) SyncApps

func (mr *MockSyncMockRecorder) SyncApps(infos interface{}) *gomock.Call

SyncApps indicates an expected call of SyncApps.

func (*MockSyncMockRecorder) SyncResource

func (mr *MockSyncMockRecorder) SyncResource(arg0 interface{}) *gomock.Call

SyncResource indicates an expected call of SyncResource.

Directories

Path Synopsis
Package plugin is a generated GoMock package.
Package plugin is a generated GoMock package.

Jump to

Keyboard shortcuts

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