...
1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 model "edge-infra.dev/pkg/edge/api/graph/model"
12 client "edge-infra.dev/pkg/edge/chariot/client"
13 gomock "github.com/golang/mock/gomock"
14 )
15
16
17 type MockChariotService struct {
18 ctrl *gomock.Controller
19 recorder *MockChariotServiceMockRecorder
20 }
21
22
23 type MockChariotServiceMockRecorder struct {
24 mock *MockChariotService
25 }
26
27
28 func NewMockChariotService(ctrl *gomock.Controller) *MockChariotService {
29 mock := &MockChariotService{ctrl: ctrl}
30 mock.recorder = &MockChariotServiceMockRecorder{mock}
31 return mock
32 }
33
34
35 func (m *MockChariotService) EXPECT() *MockChariotServiceMockRecorder {
36 return m.recorder
37 }
38
39
40 func (m *MockChariotService) CheckClusterAndInvokeChariotPubsub(arg0 context.Context, arg1 *model.Cluster, arg2 *client.ChariotMessage, arg3 map[string]string) error {
41 m.ctrl.T.Helper()
42 ret := m.ctrl.Call(m, "CheckClusterAndInvokeChariotPubsub", arg0, arg1, arg2, arg3)
43 ret0, _ := ret[0].(error)
44 return ret0
45 }
46
47
48 func (mr *MockChariotServiceMockRecorder) CheckClusterAndInvokeChariotPubsub(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
49 mr.mock.ctrl.T.Helper()
50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckClusterAndInvokeChariotPubsub", reflect.TypeOf((*MockChariotService)(nil).CheckClusterAndInvokeChariotPubsub), arg0, arg1, arg2, arg3)
51 }
52
53
54 func (m *MockChariotService) InvokeChariotPubsub(arg0 context.Context, arg1 *client.ChariotMessage, arg2 map[string]string) error {
55 m.ctrl.T.Helper()
56 ret := m.ctrl.Call(m, "InvokeChariotPubsub", arg0, arg1, arg2)
57 ret0, _ := ret[0].(error)
58 return ret0
59 }
60
61
62 func (mr *MockChariotServiceMockRecorder) InvokeChariotPubsub(arg0, arg1, arg2 interface{}) *gomock.Call {
63 mr.mock.ctrl.T.Helper()
64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvokeChariotPubsub", reflect.TypeOf((*MockChariotService)(nil).InvokeChariotPubsub), arg0, arg1, arg2)
65 }
66
View as plain text