1
2
3
4
5 package preference
6
7 import (
8 reflect "reflect"
9 time "time"
10
11 gomock "github.com/golang/mock/gomock"
12 api "github.com/redhat-developer/odo/pkg/api"
13 )
14
15
16 type MockClient struct {
17 ctrl *gomock.Controller
18 recorder *MockClientMockRecorder
19 }
20
21
22 type MockClientMockRecorder struct {
23 mock *MockClient
24 }
25
26
27 func NewMockClient(ctrl *gomock.Controller) *MockClient {
28 mock := &MockClient{ctrl: ctrl}
29 mock.recorder = &MockClientMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockClient) EXPECT() *MockClientMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockClient) ConsentTelemetry() *bool {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "ConsentTelemetry")
42 ret0, _ := ret[0].(*bool)
43 return ret0
44 }
45
46
47 func (mr *MockClientMockRecorder) ConsentTelemetry() *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsentTelemetry", reflect.TypeOf((*MockClient)(nil).ConsentTelemetry))
50 }
51
52
53 func (m *MockClient) DeleteConfiguration(parameter string) error {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "DeleteConfiguration", parameter)
56 ret0, _ := ret[0].(error)
57 return ret0
58 }
59
60
61 func (mr *MockClientMockRecorder) DeleteConfiguration(parameter interface{}) *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfiguration", reflect.TypeOf((*MockClient)(nil).DeleteConfiguration), parameter)
64 }
65
66
67 func (m *MockClient) EphemeralSourceVolume() *bool {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "EphemeralSourceVolume")
70 ret0, _ := ret[0].(*bool)
71 return ret0
72 }
73
74
75 func (mr *MockClientMockRecorder) EphemeralSourceVolume() *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EphemeralSourceVolume", reflect.TypeOf((*MockClient)(nil).EphemeralSourceVolume))
78 }
79
80
81 func (m *MockClient) GetConsentTelemetry() bool {
82 m.ctrl.T.Helper()
83 ret := m.ctrl.Call(m, "GetConsentTelemetry")
84 ret0, _ := ret[0].(bool)
85 return ret0
86 }
87
88
89 func (mr *MockClientMockRecorder) GetConsentTelemetry() *gomock.Call {
90 mr.mock.ctrl.T.Helper()
91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsentTelemetry", reflect.TypeOf((*MockClient)(nil).GetConsentTelemetry))
92 }
93
94
95 func (m *MockClient) GetEphemeralSourceVolume() bool {
96 m.ctrl.T.Helper()
97 ret := m.ctrl.Call(m, "GetEphemeralSourceVolume")
98 ret0, _ := ret[0].(bool)
99 return ret0
100 }
101
102
103 func (mr *MockClientMockRecorder) GetEphemeralSourceVolume() *gomock.Call {
104 mr.mock.ctrl.T.Helper()
105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEphemeralSourceVolume", reflect.TypeOf((*MockClient)(nil).GetEphemeralSourceVolume))
106 }
107
108
109 func (m *MockClient) GetImageRegistry() string {
110 m.ctrl.T.Helper()
111 ret := m.ctrl.Call(m, "GetImageRegistry")
112 ret0, _ := ret[0].(string)
113 return ret0
114 }
115
116
117 func (mr *MockClientMockRecorder) GetImageRegistry() *gomock.Call {
118 mr.mock.ctrl.T.Helper()
119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImageRegistry", reflect.TypeOf((*MockClient)(nil).GetImageRegistry))
120 }
121
122
123 func (m *MockClient) GetPushTimeout() time.Duration {
124 m.ctrl.T.Helper()
125 ret := m.ctrl.Call(m, "GetPushTimeout")
126 ret0, _ := ret[0].(time.Duration)
127 return ret0
128 }
129
130
131 func (mr *MockClientMockRecorder) GetPushTimeout() *gomock.Call {
132 mr.mock.ctrl.T.Helper()
133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPushTimeout", reflect.TypeOf((*MockClient)(nil).GetPushTimeout))
134 }
135
136
137 func (m *MockClient) GetRegistryCacheTime() time.Duration {
138 m.ctrl.T.Helper()
139 ret := m.ctrl.Call(m, "GetRegistryCacheTime")
140 ret0, _ := ret[0].(time.Duration)
141 return ret0
142 }
143
144
145 func (mr *MockClientMockRecorder) GetRegistryCacheTime() *gomock.Call {
146 mr.mock.ctrl.T.Helper()
147 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegistryCacheTime", reflect.TypeOf((*MockClient)(nil).GetRegistryCacheTime))
148 }
149
150
151 func (m *MockClient) GetTimeout() time.Duration {
152 m.ctrl.T.Helper()
153 ret := m.ctrl.Call(m, "GetTimeout")
154 ret0, _ := ret[0].(time.Duration)
155 return ret0
156 }
157
158
159 func (mr *MockClientMockRecorder) GetTimeout() *gomock.Call {
160 mr.mock.ctrl.T.Helper()
161 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeout", reflect.TypeOf((*MockClient)(nil).GetTimeout))
162 }
163
164
165 func (m *MockClient) GetUpdateNotification() bool {
166 m.ctrl.T.Helper()
167 ret := m.ctrl.Call(m, "GetUpdateNotification")
168 ret0, _ := ret[0].(bool)
169 return ret0
170 }
171
172
173 func (mr *MockClientMockRecorder) GetUpdateNotification() *gomock.Call {
174 mr.mock.ctrl.T.Helper()
175 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdateNotification", reflect.TypeOf((*MockClient)(nil).GetUpdateNotification))
176 }
177
178
179 func (m *MockClient) IsSet(parameter string) bool {
180 m.ctrl.T.Helper()
181 ret := m.ctrl.Call(m, "IsSet", parameter)
182 ret0, _ := ret[0].(bool)
183 return ret0
184 }
185
186
187 func (mr *MockClientMockRecorder) IsSet(parameter interface{}) *gomock.Call {
188 mr.mock.ctrl.T.Helper()
189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSet", reflect.TypeOf((*MockClient)(nil).IsSet), parameter)
190 }
191
192
193 func (m *MockClient) NewPreferenceList() api.PreferenceList {
194 m.ctrl.T.Helper()
195 ret := m.ctrl.Call(m, "NewPreferenceList")
196 ret0, _ := ret[0].(api.PreferenceList)
197 return ret0
198 }
199
200
201 func (mr *MockClientMockRecorder) NewPreferenceList() *gomock.Call {
202 mr.mock.ctrl.T.Helper()
203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewPreferenceList", reflect.TypeOf((*MockClient)(nil).NewPreferenceList))
204 }
205
206
207 func (m *MockClient) PushTimeout() *time.Duration {
208 m.ctrl.T.Helper()
209 ret := m.ctrl.Call(m, "PushTimeout")
210 ret0, _ := ret[0].(*time.Duration)
211 return ret0
212 }
213
214
215 func (mr *MockClientMockRecorder) PushTimeout() *gomock.Call {
216 mr.mock.ctrl.T.Helper()
217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushTimeout", reflect.TypeOf((*MockClient)(nil).PushTimeout))
218 }
219
220
221 func (m *MockClient) RegistryCacheTime() *time.Duration {
222 m.ctrl.T.Helper()
223 ret := m.ctrl.Call(m, "RegistryCacheTime")
224 ret0, _ := ret[0].(*time.Duration)
225 return ret0
226 }
227
228
229 func (mr *MockClientMockRecorder) RegistryCacheTime() *gomock.Call {
230 mr.mock.ctrl.T.Helper()
231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryCacheTime", reflect.TypeOf((*MockClient)(nil).RegistryCacheTime))
232 }
233
234
235 func (m *MockClient) RegistryHandler(operation, registryName, registryURL string, forceFlag, isSecure bool) error {
236 m.ctrl.T.Helper()
237 ret := m.ctrl.Call(m, "RegistryHandler", operation, registryName, registryURL, forceFlag, isSecure)
238 ret0, _ := ret[0].(error)
239 return ret0
240 }
241
242
243 func (mr *MockClientMockRecorder) RegistryHandler(operation, registryName, registryURL, forceFlag, isSecure interface{}) *gomock.Call {
244 mr.mock.ctrl.T.Helper()
245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryHandler", reflect.TypeOf((*MockClient)(nil).RegistryHandler), operation, registryName, registryURL, forceFlag, isSecure)
246 }
247
248
249 func (m *MockClient) RegistryList() []api.Registry {
250 m.ctrl.T.Helper()
251 ret := m.ctrl.Call(m, "RegistryList")
252 ret0, _ := ret[0].([]api.Registry)
253 return ret0
254 }
255
256
257 func (mr *MockClientMockRecorder) RegistryList() *gomock.Call {
258 mr.mock.ctrl.T.Helper()
259 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryList", reflect.TypeOf((*MockClient)(nil).RegistryList))
260 }
261
262
263 func (m *MockClient) RegistryNameExists(name string) bool {
264 m.ctrl.T.Helper()
265 ret := m.ctrl.Call(m, "RegistryNameExists", name)
266 ret0, _ := ret[0].(bool)
267 return ret0
268 }
269
270
271 func (mr *MockClientMockRecorder) RegistryNameExists(name interface{}) *gomock.Call {
272 mr.mock.ctrl.T.Helper()
273 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegistryNameExists", reflect.TypeOf((*MockClient)(nil).RegistryNameExists), name)
274 }
275
276
277 func (m *MockClient) SetConfiguration(parameter, value string) error {
278 m.ctrl.T.Helper()
279 ret := m.ctrl.Call(m, "SetConfiguration", parameter, value)
280 ret0, _ := ret[0].(error)
281 return ret0
282 }
283
284
285 func (mr *MockClientMockRecorder) SetConfiguration(parameter, value interface{}) *gomock.Call {
286 mr.mock.ctrl.T.Helper()
287 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetConfiguration", reflect.TypeOf((*MockClient)(nil).SetConfiguration), parameter, value)
288 }
289
290
291 func (m *MockClient) Timeout() *time.Duration {
292 m.ctrl.T.Helper()
293 ret := m.ctrl.Call(m, "Timeout")
294 ret0, _ := ret[0].(*time.Duration)
295 return ret0
296 }
297
298
299 func (mr *MockClientMockRecorder) Timeout() *gomock.Call {
300 mr.mock.ctrl.T.Helper()
301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeout", reflect.TypeOf((*MockClient)(nil).Timeout))
302 }
303
304
305 func (m *MockClient) UpdateNotification() *bool {
306 m.ctrl.T.Helper()
307 ret := m.ctrl.Call(m, "UpdateNotification")
308 ret0, _ := ret[0].(*bool)
309 return ret0
310 }
311
312
313 func (mr *MockClientMockRecorder) UpdateNotification() *gomock.Call {
314 mr.mock.ctrl.T.Helper()
315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotification", reflect.TypeOf((*MockClient)(nil).UpdateNotification))
316 }
317
View as plain text