-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockprocessmon.go
92 lines (77 loc) · 3.7 KB
/
mockprocessmon.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Code generated by MockGen. DO NOT EDIT.
// Source: controller/internal/processmon/interfaces.go
// Package mockprocessmon is a generated GoMock package.
package mockprocessmon
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
constants "go.aporeto.io/trireme-lib/controller/constants"
rpcwrapper "go.aporeto.io/trireme-lib/controller/internal/enforcer/utils/rpcwrapper"
policy "go.aporeto.io/trireme-lib/policy"
)
// MockProcessManager is a mock of ProcessManager interface
// nolint
type MockProcessManager struct {
ctrl *gomock.Controller
recorder *MockProcessManagerMockRecorder
}
// MockProcessManagerMockRecorder is the mock recorder for MockProcessManager
// nolint
type MockProcessManagerMockRecorder struct {
mock *MockProcessManager
}
// NewMockProcessManager creates a new mock instance
// nolint
func NewMockProcessManager(ctrl *gomock.Controller) *MockProcessManager {
mock := &MockProcessManager{ctrl: ctrl}
mock.recorder = &MockProcessManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
// nolint
func (m *MockProcessManager) EXPECT() *MockProcessManagerMockRecorder {
return m.recorder
}
// KillProcess mocks base method
// nolint
func (m *MockProcessManager) KillProcess(contextID string) {
m.ctrl.Call(m, "KillProcess", contextID)
}
// KillProcess indicates an expected call of KillProcess
// nolint
func (mr *MockProcessManagerMockRecorder) KillProcess(contextID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KillProcess", reflect.TypeOf((*MockProcessManager)(nil).KillProcess), contextID)
}
// LaunchProcess mocks base method
// nolint
func (m *MockProcessManager) LaunchProcess(contextID string, refPid int, refNsPath string, rpchdl rpcwrapper.RPCClient, arg, statssecret, procMountPoint, proxyPort string) (bool, error) {
ret := m.ctrl.Call(m, "LaunchProcess", contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint, proxyPort)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LaunchProcess indicates an expected call of LaunchProcess
// nolint
func (mr *MockProcessManagerMockRecorder) LaunchProcess(contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint, proxyPort interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LaunchProcess", reflect.TypeOf((*MockProcessManager)(nil).LaunchProcess), contextID, refPid, refNsPath, rpchdl, arg, statssecret, procMountPoint, proxyPort)
}
// SetLogParameters mocks base method
// nolint
func (m *MockProcessManager) SetLogParameters(logToConsole, logWithID bool, logLevel, logFormat string, compressedTags constants.CompressionType) {
m.ctrl.Call(m, "SetLogParameters", logToConsole, logWithID, logLevel, logFormat, compressedTags)
}
// SetLogParameters indicates an expected call of SetLogParameters
// nolint
func (mr *MockProcessManagerMockRecorder) SetLogParameters(logToConsole, logWithID, logLevel, logFormat, compressedTags interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogParameters", reflect.TypeOf((*MockProcessManager)(nil).SetLogParameters), logToConsole, logWithID, logLevel, logFormat, compressedTags)
}
// SetRuntimeErrorChannel mocks base method
// nolint
func (m *MockProcessManager) SetRuntimeErrorChannel(e chan *policy.RuntimeError) {
m.ctrl.Call(m, "SetRuntimeErrorChannel", e)
}
// SetRuntimeErrorChannel indicates an expected call of SetRuntimeErrorChannel
// nolint
func (mr *MockProcessManagerMockRecorder) SetRuntimeErrorChannel(e interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRuntimeErrorChannel", reflect.TypeOf((*MockProcessManager)(nil).SetRuntimeErrorChannel), e)
}