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 ¶
- type MockAMI
- func (m *MockAMI) ApplyApp(arg0 string, arg1 v1.Application, arg2 map[string]v1.Configuration, ...) error
- func (m *MockAMI) CollectNodeInfo() (map[string]interface{}, error)
- func (m *MockAMI) CollectNodeStats() (map[string]interface{}, error)
- func (m *MockAMI) DeleteApp(arg0, arg1 string) error
- func (m *MockAMI) EXPECT() *MockAMIMockRecorder
- func (m *MockAMI) FetchLog(namespace, service string, tailLines, sinceSeconds int64) (io.ReadCloser, error)
- func (m *MockAMI) GetModeInfo() (interface{}, error)
- func (m *MockAMI) RPCApp(url string, req *v1.RPCRequest) (*v1.RPCResponse, error)
- func (m *MockAMI) RemoteCommand(option *ami.DebugOptions, pipe ami.Pipe) error
- func (m *MockAMI) RemoteLogs(option *ami.LogsOptions, pipe ami.Pipe) error
- func (m *MockAMI) RemoteWebsocket(ctx context.Context, option *ami.DebugOptions, pipe ami.Pipe) error
- func (m *MockAMI) StatsApps(arg0 string) ([]v1.AppStats, error)
- func (m *MockAMI) UpdateNodeLabels(arg0 string, arg1 map[string]string) error
- type MockAMIMockRecorder
- func (mr *MockAMIMockRecorder) ApplyApp(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) CollectNodeInfo() *gomock.Call
- func (mr *MockAMIMockRecorder) CollectNodeStats() *gomock.Call
- func (mr *MockAMIMockRecorder) DeleteApp(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) FetchLog(namespace, service, tailLines, sinceSeconds interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) GetModeInfo() *gomock.Call
- func (mr *MockAMIMockRecorder) RPCApp(url, req interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) RemoteCommand(option, pipe interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) RemoteLogs(option, pipe interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) RemoteWebsocket(ctx, option, pipe interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) StatsApps(arg0 interface{}) *gomock.Call
- func (mr *MockAMIMockRecorder) UpdateNodeLabels(arg0, arg1 interface{}) *gomock.Call
- type MockAgentClient
- type MockAgentClientMockRecorder
- type MockChain
- type MockChainMockRecorder
- type MockEngine
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) Close() *gomock.Call
- func (mr *MockEngineMockRecorder) Collect(ns, isSys, desire interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) GetServiceLog(ctx interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) ReportAndDesire() *gomock.Call
- func (mr *MockEngineMockRecorder) Start() *gomock.Call
- type MockNode
- func (m *MockNode) Desire(desired v1.Desire, override bool) (v1.Delta, error)
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) Get() (*v1.Node, error)
- func (m *MockNode) GetNodeProperties(ctx *routing.Context) (interface{}, error)
- func (m *MockNode) GetStats(ctx *routing.Context) (interface{}, error)
- func (m *MockNode) Report(reported v1.Report, override bool) (v1.Delta, error)
- func (m *MockNode) UpdateNodeProperties(ctx *routing.Context) (interface{}, error)
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) Desire(desired, override interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Get() *gomock.Call
- func (mr *MockNodeMockRecorder) GetNodeProperties(ctx interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) GetStats(ctx interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Report(reported, override interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) UpdateNodeProperties(ctx interface{}) *gomock.Call
- type MockSecurity
- func (m *MockSecurity) EXPECT() *MockSecurityMockRecorder
- func (m *MockSecurity) GetCA() ([]byte, error)
- func (m *MockSecurity) IssueCertificate(cn string, alt security.AltNames) (*pki.CertPem, error)
- func (m *MockSecurity) RevokeCertificate(cn string) error
- func (m *MockSecurity) RotateCertificate(cn string) (*pki.CertPem, error)
- type MockSecurityMockRecorder
- func (mr *MockSecurityMockRecorder) GetCA() *gomock.Call
- func (mr *MockSecurityMockRecorder) IssueCertificate(cn, alt interface{}) *gomock.Call
- func (mr *MockSecurityMockRecorder) RevokeCertificate(cn interface{}) *gomock.Call
- func (mr *MockSecurityMockRecorder) RotateCertificate(cn interface{}) *gomock.Call
- type MockSync
- type MockSyncMockRecorder
- func (mr *MockSyncMockRecorder) Close() *gomock.Call
- func (mr *MockSyncMockRecorder) Report(r interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) Start() *gomock.Call
- func (mr *MockSyncMockRecorder) SyncApps(infos interface{}) *gomock.Call
- func (mr *MockSyncMockRecorder) SyncResource(arg0 interface{}) *gomock.Call
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 ¶
CollectNodeInfo mocks base method
func (*MockAMI) CollectNodeStats ¶
CollectNodeStats 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
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 ¶
RemoteCommand mocks base method
func (*MockAMI) RemoteLogs ¶ added in v2.2.0
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
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
func (m *MockAgentClient) EXPECT() *MockAgentClientMockRecorder
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) EXPECT ¶ added in v2.1.1
func (m *MockChain) EXPECT() *MockChainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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) 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.
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) 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) GetNodeProperties ¶ added in v2.3.0
GetNodeProperties 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 ¶
func (m *MockSecurity) EXPECT() *MockSecurityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSecurity) IssueCertificate ¶
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) EXPECT ¶
func (m *MockSync) EXPECT() *MockSyncMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.