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 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockRegistrationService struct {
17 ctrl *gomock.Controller
18 recorder *MockRegistrationServiceMockRecorder
19 }
20
21
22 type MockRegistrationServiceMockRecorder struct {
23 mock *MockRegistrationService
24 }
25
26
27 func NewMockRegistrationService(ctrl *gomock.Controller) *MockRegistrationService {
28 mock := &MockRegistrationService{ctrl: ctrl}
29 mock.recorder = &MockRegistrationServiceMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockRegistrationService) EXPECT() *MockRegistrationServiceMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockRegistrationService) ClusterCaHash(arg0 context.Context, arg1 string) (string, error) {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "ClusterCaHash", arg0, arg1)
42 ret0, _ := ret[0].(string)
43 ret1, _ := ret[1].(error)
44 return ret0, ret1
45 }
46
47
48 func (mr *MockRegistrationServiceMockRecorder) ClusterCaHash(arg0, arg1 interface{}) *gomock.Call {
49 mr.mock.ctrl.T.Helper()
50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterCaHash", reflect.TypeOf((*MockRegistrationService)(nil).ClusterCaHash), arg0, arg1)
51 }
52
53
54 func (m *MockRegistrationService) CreateAClusterCR(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6 string, arg7 *model.Banner, arg8 *model.ClusterInfo) (string, error) {
55 m.ctrl.T.Helper()
56 ret := m.ctrl.Call(m, "CreateAClusterCR", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
57 ret0, _ := ret[0].(string)
58 ret1, _ := ret[1].(error)
59 return ret0, ret1
60 }
61
62
63 func (mr *MockRegistrationServiceMockRecorder) CreateAClusterCR(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call {
64 mr.mock.ctrl.T.Helper()
65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAClusterCR", reflect.TypeOf((*MockRegistrationService)(nil).CreateAClusterCR), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
66 }
67
68
69 func (m *MockRegistrationService) CreateClusterSQLEntry(arg0 context.Context, arg1 *model.RegistrationPayload, arg2, arg3, arg4, arg5 string, arg6 bool, arg7 string) error {
70 m.ctrl.T.Helper()
71 ret := m.ctrl.Call(m, "CreateClusterSQLEntry", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
72 ret0, _ := ret[0].(error)
73 return ret0
74 }
75
76
77 func (mr *MockRegistrationServiceMockRecorder) CreateClusterSQLEntry(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call {
78 mr.mock.ctrl.T.Helper()
79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterSQLEntry", reflect.TypeOf((*MockRegistrationService)(nil).CreateClusterSQLEntry), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
80 }
81
82
83 func (m *MockRegistrationService) IsClusterSQLEntryExist(arg0 context.Context, arg1, arg2 string) (bool, error) {
84 m.ctrl.T.Helper()
85 ret := m.ctrl.Call(m, "IsClusterSQLEntryExist", arg0, arg1, arg2)
86 ret0, _ := ret[0].(bool)
87 ret1, _ := ret[1].(error)
88 return ret0, ret1
89 }
90
91
92 func (mr *MockRegistrationServiceMockRecorder) IsClusterSQLEntryExist(arg0, arg1, arg2 interface{}) *gomock.Call {
93 mr.mock.ctrl.T.Helper()
94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsClusterSQLEntryExist", reflect.TypeOf((*MockRegistrationService)(nil).IsClusterSQLEntryExist), arg0, arg1, arg2)
95 }
96
97
98 func (m *MockRegistrationService) Reset(arg0 context.Context, arg1 string, arg2 bool) error {
99 m.ctrl.T.Helper()
100 ret := m.ctrl.Call(m, "Reset", arg0, arg1, arg2)
101 ret0, _ := ret[0].(error)
102 return ret0
103 }
104
105
106 func (mr *MockRegistrationServiceMockRecorder) Reset(arg0, arg1, arg2 interface{}) *gomock.Call {
107 mr.mock.ctrl.T.Helper()
108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockRegistrationService)(nil).Reset), arg0, arg1, arg2)
109 }
110
111
112 func (m *MockRegistrationService) UpdateClusterSQLEntry(arg0 context.Context, arg1 bool, arg2 string) error {
113 m.ctrl.T.Helper()
114 ret := m.ctrl.Call(m, "UpdateClusterSQLEntry", arg0, arg1, arg2)
115 ret0, _ := ret[0].(error)
116 return ret0
117 }
118
119
120 func (mr *MockRegistrationServiceMockRecorder) UpdateClusterSQLEntry(arg0, arg1, arg2 interface{}) *gomock.Call {
121 mr.mock.ctrl.T.Helper()
122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSQLEntry", reflect.TypeOf((*MockRegistrationService)(nil).UpdateClusterSQLEntry), arg0, arg1, arg2)
123 }
124
125
126 func (m *MockRegistrationService) UploadClusterCaHash(arg0 context.Context, arg1, arg2 string) error {
127 m.ctrl.T.Helper()
128 ret := m.ctrl.Call(m, "UploadClusterCaHash", arg0, arg1, arg2)
129 ret0, _ := ret[0].(error)
130 return ret0
131 }
132
133
134 func (mr *MockRegistrationServiceMockRecorder) UploadClusterCaHash(arg0, arg1, arg2 interface{}) *gomock.Call {
135 mr.mock.ctrl.T.Helper()
136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadClusterCaHash", reflect.TypeOf((*MockRegistrationService)(nil).UploadClusterCaHash), arg0, arg1, arg2)
137 }
138
View as plain text