1 diff --git a/src/controller/servicemgr/mocks/mocks_servicemgr.go b/src/controller/servicemgr/mocks/mocks_servicemgr.go
2 index 06b0cd0..259b1fa 100644
3 --- a/src/controller/servicemgr/mocks/mocks_servicemgr.go
4 +++ b/src/controller/servicemgr/mocks/mocks_servicemgr.go
6 // Code generated by MockGen. DO NOT EDIT.
7 -// Source: ./servicemgr.go
8 +// Source: controller/servicemgr (interfaces: ServiceMgr)
10 // Package mocks is a generated GoMock package.
14 executor "controller/servicemgr/executor"
15 - gomock "github.com/golang/mock/gomock"
17 client "restinterface/client"
19 + gomock "github.com/golang/mock/gomock"
22 -// MockServiceMgr is a mock of ServiceMgr interface
23 +// MockServiceMgr is a mock of ServiceMgr interface.
24 type MockServiceMgr struct {
25 ctrl *gomock.Controller
26 recorder *MockServiceMgrMockRecorder
29 -// MockServiceMgrMockRecorder is the mock recorder for MockServiceMgr
30 +// MockServiceMgrMockRecorder is the mock recorder for MockServiceMgr.
31 type MockServiceMgrMockRecorder struct {
35 -// NewMockServiceMgr creates a new mock instance
36 +// NewMockServiceMgr creates a new mock instance.
37 func NewMockServiceMgr(ctrl *gomock.Controller) *MockServiceMgr {
38 mock := &MockServiceMgr{ctrl: ctrl}
39 mock.recorder = &MockServiceMgrMockRecorder{mock}
43 -// EXPECT returns an object that allows the caller to indicate expected use
44 +// EXPECT returns an object that allows the caller to indicate expected use.
45 func (m *MockServiceMgr) EXPECT() *MockServiceMgrMockRecorder {
49 -// Execute mocks base method
50 -func (m *MockServiceMgr) Execute(target, name, requester string, args []interface{}, notiChan chan string) error {
51 +// Execute mocks base method.
52 +func (m *MockServiceMgr) Execute(arg0, arg1, arg2 string, arg3 []interface{}, arg4 chan string) error {
54 - ret := m.ctrl.Call(m, "Execute", target, name, requester, args, notiChan)
55 + ret := m.ctrl.Call(m, "Execute", arg0, arg1, arg2, arg3, arg4)
56 ret0, _ := ret[0].(error)
60 -// Execute indicates an expected call of Execute
61 -func (mr *MockServiceMgrMockRecorder) Execute(target, name, requester, args, notiChan interface{}) *gomock.Call {
62 +// Execute indicates an expected call of Execute.
63 +func (mr *MockServiceMgrMockRecorder) Execute(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
64 + mr.mock.ctrl.T.Helper()
65 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockServiceMgr)(nil).Execute), arg0, arg1, arg2, arg3, arg4)
68 +// ExecuteAppOnLocal mocks base method.
69 +func (m *MockServiceMgr) ExecuteAppOnLocal(arg0 map[string]interface{}) {
71 + m.ctrl.Call(m, "ExecuteAppOnLocal", arg0)
74 +// ExecuteAppOnLocal indicates an expected call of ExecuteAppOnLocal.
75 +func (mr *MockServiceMgrMockRecorder) ExecuteAppOnLocal(arg0 interface{}) *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockServiceMgr)(nil).Execute), target, name, requester, args, notiChan)
78 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteAppOnLocal", reflect.TypeOf((*MockServiceMgr)(nil).ExecuteAppOnLocal), arg0)
81 -// SetLocalServiceExecutor mocks base method
82 -func (m *MockServiceMgr) SetLocalServiceExecutor(s executor.ServiceExecutor) {
83 +// GetAuthenticatedDevices mocks base method.
84 +func (m *MockServiceMgr) GetAuthenticatedDevices(arg0, arg1 string) ([]string, error) {
86 - m.ctrl.Call(m, "SetLocalServiceExecutor", s)
87 + ret := m.ctrl.Call(m, "GetAuthenticatedDevices", arg0, arg1)
88 + ret0, _ := ret[0].([]string)
89 + ret1, _ := ret[1].(error)
93 -// SetLocalServiceExecutor indicates an expected call of SetLocalServiceExecutor
94 -func (mr *MockServiceMgrMockRecorder) SetLocalServiceExecutor(s interface{}) *gomock.Call {
95 +// GetAuthenticatedDevices indicates an expected call of GetAuthenticatedDevices.
96 +func (mr *MockServiceMgrMockRecorder) GetAuthenticatedDevices(arg0, arg1 interface{}) *gomock.Call {
97 mr.mock.ctrl.T.Helper()
98 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLocalServiceExecutor", reflect.TypeOf((*MockServiceMgr)(nil).SetLocalServiceExecutor), s)
99 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthenticatedDevices", reflect.TypeOf((*MockServiceMgr)(nil).GetAuthenticatedDevices), arg0, arg1)
102 -// ExecuteAppOnLocal mocks base method
103 -func (m *MockServiceMgr) ExecuteAppOnLocal(appInfo map[string]interface{}) {
104 +// SetClient mocks base method.
105 +func (m *MockServiceMgr) SetClient(arg0 client.Clienter) {
107 - m.ctrl.Call(m, "ExecuteAppOnLocal", appInfo)
108 + m.ctrl.Call(m, "SetClient", arg0)
111 -// ExecuteAppOnLocal indicates an expected call of ExecuteAppOnLocal
112 -func (mr *MockServiceMgrMockRecorder) ExecuteAppOnLocal(appInfo interface{}) *gomock.Call {
113 +// SetClient indicates an expected call of SetClient.
114 +func (mr *MockServiceMgrMockRecorder) SetClient(arg0 interface{}) *gomock.Call {
115 mr.mock.ctrl.T.Helper()
116 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteAppOnLocal", reflect.TypeOf((*MockServiceMgr)(nil).ExecuteAppOnLocal), appInfo)
117 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClient", reflect.TypeOf((*MockServiceMgr)(nil).SetClient), arg0)
120 -// SetClient mocks base method
121 -func (m *MockServiceMgr) SetClient(clientAPI client.Clienter) {
122 +// SetLocalServiceExecutor mocks base method.
123 +func (m *MockServiceMgr) SetLocalServiceExecutor(arg0 executor.ServiceExecutor) {
125 - m.ctrl.Call(m, "SetClient", clientAPI)
126 + m.ctrl.Call(m, "SetLocalServiceExecutor", arg0)
129 -// SetClient indicates an expected call of SetClient
130 -func (mr *MockServiceMgrMockRecorder) SetClient(clientAPI interface{}) *gomock.Call {
131 +// SetLocalServiceExecutor indicates an expected call of SetLocalServiceExecutor.
132 +func (mr *MockServiceMgrMockRecorder) SetLocalServiceExecutor(arg0 interface{}) *gomock.Call {
133 mr.mock.ctrl.T.Helper()
134 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClient", reflect.TypeOf((*MockServiceMgr)(nil).SetClient), clientAPI)
135 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLocalServiceExecutor", reflect.TypeOf((*MockServiceMgr)(nil).SetLocalServiceExecutor), arg0)