Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-daemon-api/go/mock/mock.go
2500 views
1
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by MockGen. DO NOT EDIT.
6
// Source: github.com/gitpod-io/gitpod/ws-daemon/api (interfaces: WorkspaceContentServiceClient,WorkspaceContentServiceServer,InWorkspaceServiceClient)
7
8
// Package mock is a generated GoMock package.
9
package mock
10
11
import (
12
context "context"
13
reflect "reflect"
14
15
api "github.com/gitpod-io/gitpod/ws-daemon/api"
16
gomock "github.com/golang/mock/gomock"
17
grpc "google.golang.org/grpc"
18
)
19
20
// MockWorkspaceContentServiceClient is a mock of WorkspaceContentServiceClient interface.
21
type MockWorkspaceContentServiceClient struct {
22
ctrl *gomock.Controller
23
recorder *MockWorkspaceContentServiceClientMockRecorder
24
}
25
26
// MockWorkspaceContentServiceClientMockRecorder is the mock recorder for MockWorkspaceContentServiceClient.
27
type MockWorkspaceContentServiceClientMockRecorder struct {
28
mock *MockWorkspaceContentServiceClient
29
}
30
31
// NewMockWorkspaceContentServiceClient creates a new mock instance.
32
func NewMockWorkspaceContentServiceClient(ctrl *gomock.Controller) *MockWorkspaceContentServiceClient {
33
mock := &MockWorkspaceContentServiceClient{ctrl: ctrl}
34
mock.recorder = &MockWorkspaceContentServiceClientMockRecorder{mock}
35
return mock
36
}
37
38
// EXPECT returns an object that allows the caller to indicate expected use.
39
func (m *MockWorkspaceContentServiceClient) EXPECT() *MockWorkspaceContentServiceClientMockRecorder {
40
return m.recorder
41
}
42
43
// BackupWorkspace mocks base method.
44
func (m *MockWorkspaceContentServiceClient) BackupWorkspace(arg0 context.Context, arg1 *api.BackupWorkspaceRequest, arg2 ...grpc.CallOption) (*api.BackupWorkspaceResponse, error) {
45
m.ctrl.T.Helper()
46
varargs := []interface{}{arg0, arg1}
47
for _, a := range arg2 {
48
varargs = append(varargs, a)
49
}
50
ret := m.ctrl.Call(m, "BackupWorkspace", varargs...)
51
ret0, _ := ret[0].(*api.BackupWorkspaceResponse)
52
ret1, _ := ret[1].(error)
53
return ret0, ret1
54
}
55
56
// BackupWorkspace indicates an expected call of BackupWorkspace.
57
func (mr *MockWorkspaceContentServiceClientMockRecorder) BackupWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
58
mr.mock.ctrl.T.Helper()
59
varargs := append([]interface{}{arg0, arg1}, arg2...)
60
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).BackupWorkspace), varargs...)
61
}
62
63
// DisposeWorkspace mocks base method.
64
func (m *MockWorkspaceContentServiceClient) DisposeWorkspace(arg0 context.Context, arg1 *api.DisposeWorkspaceRequest, arg2 ...grpc.CallOption) (*api.DisposeWorkspaceResponse, error) {
65
m.ctrl.T.Helper()
66
varargs := []interface{}{arg0, arg1}
67
for _, a := range arg2 {
68
varargs = append(varargs, a)
69
}
70
ret := m.ctrl.Call(m, "DisposeWorkspace", varargs...)
71
ret0, _ := ret[0].(*api.DisposeWorkspaceResponse)
72
ret1, _ := ret[1].(error)
73
return ret0, ret1
74
}
75
76
// DisposeWorkspace indicates an expected call of DisposeWorkspace.
77
func (mr *MockWorkspaceContentServiceClientMockRecorder) DisposeWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
78
mr.mock.ctrl.T.Helper()
79
varargs := append([]interface{}{arg0, arg1}, arg2...)
80
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisposeWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).DisposeWorkspace), varargs...)
81
}
82
83
// InitWorkspace mocks base method.
84
func (m *MockWorkspaceContentServiceClient) InitWorkspace(arg0 context.Context, arg1 *api.InitWorkspaceRequest, arg2 ...grpc.CallOption) (*api.InitWorkspaceResponse, error) {
85
m.ctrl.T.Helper()
86
varargs := []interface{}{arg0, arg1}
87
for _, a := range arg2 {
88
varargs = append(varargs, a)
89
}
90
ret := m.ctrl.Call(m, "InitWorkspace", varargs...)
91
ret0, _ := ret[0].(*api.InitWorkspaceResponse)
92
ret1, _ := ret[1].(error)
93
return ret0, ret1
94
}
95
96
// InitWorkspace indicates an expected call of InitWorkspace.
97
func (mr *MockWorkspaceContentServiceClientMockRecorder) InitWorkspace(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
98
mr.mock.ctrl.T.Helper()
99
varargs := append([]interface{}{arg0, arg1}, arg2...)
100
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).InitWorkspace), varargs...)
101
}
102
103
// IsWorkspaceExists mocks base method.
104
func (m *MockWorkspaceContentServiceClient) IsWorkspaceExists(arg0 context.Context, arg1 *api.IsWorkspaceExistsRequest, arg2 ...grpc.CallOption) (*api.IsWorkspaceExistsResponse, error) {
105
m.ctrl.T.Helper()
106
varargs := []interface{}{arg0, arg1}
107
for _, a := range arg2 {
108
varargs = append(varargs, a)
109
}
110
ret := m.ctrl.Call(m, "IsWorkspaceExists", varargs...)
111
ret0, _ := ret[0].(*api.IsWorkspaceExistsResponse)
112
ret1, _ := ret[1].(error)
113
return ret0, ret1
114
}
115
116
// IsWorkspaceExists indicates an expected call of IsWorkspaceExists.
117
func (mr *MockWorkspaceContentServiceClientMockRecorder) IsWorkspaceExists(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
118
mr.mock.ctrl.T.Helper()
119
varargs := append([]interface{}{arg0, arg1}, arg2...)
120
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsWorkspaceExists", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).IsWorkspaceExists), varargs...)
121
}
122
123
// TakeSnapshot mocks base method.
124
func (m *MockWorkspaceContentServiceClient) TakeSnapshot(arg0 context.Context, arg1 *api.TakeSnapshotRequest, arg2 ...grpc.CallOption) (*api.TakeSnapshotResponse, error) {
125
m.ctrl.T.Helper()
126
varargs := []interface{}{arg0, arg1}
127
for _, a := range arg2 {
128
varargs = append(varargs, a)
129
}
130
ret := m.ctrl.Call(m, "TakeSnapshot", varargs...)
131
ret0, _ := ret[0].(*api.TakeSnapshotResponse)
132
ret1, _ := ret[1].(error)
133
return ret0, ret1
134
}
135
136
// TakeSnapshot indicates an expected call of TakeSnapshot.
137
func (mr *MockWorkspaceContentServiceClientMockRecorder) TakeSnapshot(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
138
mr.mock.ctrl.T.Helper()
139
varargs := append([]interface{}{arg0, arg1}, arg2...)
140
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TakeSnapshot", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).TakeSnapshot), varargs...)
141
}
142
143
// WaitForInit mocks base method.
144
func (m *MockWorkspaceContentServiceClient) WaitForInit(arg0 context.Context, arg1 *api.WaitForInitRequest, arg2 ...grpc.CallOption) (*api.WaitForInitResponse, error) {
145
m.ctrl.T.Helper()
146
varargs := []interface{}{arg0, arg1}
147
for _, a := range arg2 {
148
varargs = append(varargs, a)
149
}
150
ret := m.ctrl.Call(m, "WaitForInit", varargs...)
151
ret0, _ := ret[0].(*api.WaitForInitResponse)
152
ret1, _ := ret[1].(error)
153
return ret0, ret1
154
}
155
156
// WaitForInit indicates an expected call of WaitForInit.
157
func (mr *MockWorkspaceContentServiceClientMockRecorder) WaitForInit(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
158
mr.mock.ctrl.T.Helper()
159
varargs := append([]interface{}{arg0, arg1}, arg2...)
160
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForInit", reflect.TypeOf((*MockWorkspaceContentServiceClient)(nil).WaitForInit), varargs...)
161
}
162
163
// MockWorkspaceContentServiceServer is a mock of WorkspaceContentServiceServer interface.
164
type MockWorkspaceContentServiceServer struct {
165
ctrl *gomock.Controller
166
recorder *MockWorkspaceContentServiceServerMockRecorder
167
api.UnimplementedWorkspaceContentServiceServer
168
}
169
170
// MockWorkspaceContentServiceServerMockRecorder is the mock recorder for MockWorkspaceContentServiceServer.
171
type MockWorkspaceContentServiceServerMockRecorder struct {
172
mock *MockWorkspaceContentServiceServer
173
}
174
175
// NewMockWorkspaceContentServiceServer creates a new mock instance.
176
func NewMockWorkspaceContentServiceServer(ctrl *gomock.Controller) *MockWorkspaceContentServiceServer {
177
mock := &MockWorkspaceContentServiceServer{ctrl: ctrl}
178
mock.recorder = &MockWorkspaceContentServiceServerMockRecorder{mock}
179
return mock
180
}
181
182
// EXPECT returns an object that allows the caller to indicate expected use.
183
func (m *MockWorkspaceContentServiceServer) EXPECT() *MockWorkspaceContentServiceServerMockRecorder {
184
return m.recorder
185
}
186
187
// BackupWorkspace mocks base method.
188
func (m *MockWorkspaceContentServiceServer) BackupWorkspace(arg0 context.Context, arg1 *api.BackupWorkspaceRequest) (*api.BackupWorkspaceResponse, error) {
189
m.ctrl.T.Helper()
190
ret := m.ctrl.Call(m, "BackupWorkspace", arg0, arg1)
191
ret0, _ := ret[0].(*api.BackupWorkspaceResponse)
192
ret1, _ := ret[1].(error)
193
return ret0, ret1
194
}
195
196
// BackupWorkspace indicates an expected call of BackupWorkspace.
197
func (mr *MockWorkspaceContentServiceServerMockRecorder) BackupWorkspace(arg0, arg1 interface{}) *gomock.Call {
198
mr.mock.ctrl.T.Helper()
199
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).BackupWorkspace), arg0, arg1)
200
}
201
202
// DisposeWorkspace mocks base method.
203
func (m *MockWorkspaceContentServiceServer) DisposeWorkspace(arg0 context.Context, arg1 *api.DisposeWorkspaceRequest) (*api.DisposeWorkspaceResponse, error) {
204
m.ctrl.T.Helper()
205
ret := m.ctrl.Call(m, "DisposeWorkspace", arg0, arg1)
206
ret0, _ := ret[0].(*api.DisposeWorkspaceResponse)
207
ret1, _ := ret[1].(error)
208
return ret0, ret1
209
}
210
211
// DisposeWorkspace indicates an expected call of DisposeWorkspace.
212
func (mr *MockWorkspaceContentServiceServerMockRecorder) DisposeWorkspace(arg0, arg1 interface{}) *gomock.Call {
213
mr.mock.ctrl.T.Helper()
214
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisposeWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).DisposeWorkspace), arg0, arg1)
215
}
216
217
// InitWorkspace mocks base method.
218
func (m *MockWorkspaceContentServiceServer) InitWorkspace(arg0 context.Context, arg1 *api.InitWorkspaceRequest) (*api.InitWorkspaceResponse, error) {
219
m.ctrl.T.Helper()
220
ret := m.ctrl.Call(m, "InitWorkspace", arg0, arg1)
221
ret0, _ := ret[0].(*api.InitWorkspaceResponse)
222
ret1, _ := ret[1].(error)
223
return ret0, ret1
224
}
225
226
// InitWorkspace indicates an expected call of InitWorkspace.
227
func (mr *MockWorkspaceContentServiceServerMockRecorder) InitWorkspace(arg0, arg1 interface{}) *gomock.Call {
228
mr.mock.ctrl.T.Helper()
229
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitWorkspace", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).InitWorkspace), arg0, arg1)
230
}
231
232
// IsWorkspaceExists mocks base method.
233
func (m *MockWorkspaceContentServiceServer) IsWorkspaceExists(arg0 context.Context, arg1 *api.IsWorkspaceExistsRequest) (*api.IsWorkspaceExistsResponse, error) {
234
m.ctrl.T.Helper()
235
ret := m.ctrl.Call(m, "IsWorkspaceExists", arg0, arg1)
236
ret0, _ := ret[0].(*api.IsWorkspaceExistsResponse)
237
ret1, _ := ret[1].(error)
238
return ret0, ret1
239
}
240
241
// IsWorkspaceExists indicates an expected call of IsWorkspaceExists.
242
func (mr *MockWorkspaceContentServiceServerMockRecorder) IsWorkspaceExists(arg0, arg1 interface{}) *gomock.Call {
243
mr.mock.ctrl.T.Helper()
244
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsWorkspaceExists", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).IsWorkspaceExists), arg0, arg1)
245
}
246
247
// TakeSnapshot mocks base method.
248
func (m *MockWorkspaceContentServiceServer) TakeSnapshot(arg0 context.Context, arg1 *api.TakeSnapshotRequest) (*api.TakeSnapshotResponse, error) {
249
m.ctrl.T.Helper()
250
ret := m.ctrl.Call(m, "TakeSnapshot", arg0, arg1)
251
ret0, _ := ret[0].(*api.TakeSnapshotResponse)
252
ret1, _ := ret[1].(error)
253
return ret0, ret1
254
}
255
256
// TakeSnapshot indicates an expected call of TakeSnapshot.
257
func (mr *MockWorkspaceContentServiceServerMockRecorder) TakeSnapshot(arg0, arg1 interface{}) *gomock.Call {
258
mr.mock.ctrl.T.Helper()
259
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TakeSnapshot", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).TakeSnapshot), arg0, arg1)
260
}
261
262
// WaitForInit mocks base method.
263
func (m *MockWorkspaceContentServiceServer) WaitForInit(arg0 context.Context, arg1 *api.WaitForInitRequest) (*api.WaitForInitResponse, error) {
264
m.ctrl.T.Helper()
265
ret := m.ctrl.Call(m, "WaitForInit", arg0, arg1)
266
ret0, _ := ret[0].(*api.WaitForInitResponse)
267
ret1, _ := ret[1].(error)
268
return ret0, ret1
269
}
270
271
// WaitForInit indicates an expected call of WaitForInit.
272
func (mr *MockWorkspaceContentServiceServerMockRecorder) WaitForInit(arg0, arg1 interface{}) *gomock.Call {
273
mr.mock.ctrl.T.Helper()
274
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForInit", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).WaitForInit), arg0, arg1)
275
}
276
277
// mustEmbedUnimplementedWorkspaceContentServiceServer mocks base method.
278
func (m *MockWorkspaceContentServiceServer) mustEmbedUnimplementedWorkspaceContentServiceServer() {
279
m.ctrl.T.Helper()
280
m.ctrl.Call(m, "mustEmbedUnimplementedWorkspaceContentServiceServer")
281
}
282
283
// mustEmbedUnimplementedWorkspaceContentServiceServer indicates an expected call of mustEmbedUnimplementedWorkspaceContentServiceServer.
284
func (mr *MockWorkspaceContentServiceServerMockRecorder) mustEmbedUnimplementedWorkspaceContentServiceServer() *gomock.Call {
285
mr.mock.ctrl.T.Helper()
286
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedWorkspaceContentServiceServer", reflect.TypeOf((*MockWorkspaceContentServiceServer)(nil).mustEmbedUnimplementedWorkspaceContentServiceServer))
287
}
288
289
// MockInWorkspaceServiceClient is a mock of InWorkspaceServiceClient interface.
290
type MockInWorkspaceServiceClient struct {
291
ctrl *gomock.Controller
292
recorder *MockInWorkspaceServiceClientMockRecorder
293
}
294
295
// MockInWorkspaceServiceClientMockRecorder is the mock recorder for MockInWorkspaceServiceClient.
296
type MockInWorkspaceServiceClientMockRecorder struct {
297
mock *MockInWorkspaceServiceClient
298
}
299
300
// NewMockInWorkspaceServiceClient creates a new mock instance.
301
func NewMockInWorkspaceServiceClient(ctrl *gomock.Controller) *MockInWorkspaceServiceClient {
302
mock := &MockInWorkspaceServiceClient{ctrl: ctrl}
303
mock.recorder = &MockInWorkspaceServiceClientMockRecorder{mock}
304
return mock
305
}
306
307
// EXPECT returns an object that allows the caller to indicate expected use.
308
func (m *MockInWorkspaceServiceClient) EXPECT() *MockInWorkspaceServiceClientMockRecorder {
309
return m.recorder
310
}
311
312
// EvacuateCGroup mocks base method.
313
func (m *MockInWorkspaceServiceClient) EvacuateCGroup(arg0 context.Context, arg1 *api.EvacuateCGroupRequest, arg2 ...grpc.CallOption) (*api.EvacuateCGroupResponse, error) {
314
m.ctrl.T.Helper()
315
varargs := []interface{}{arg0, arg1}
316
for _, a := range arg2 {
317
varargs = append(varargs, a)
318
}
319
ret := m.ctrl.Call(m, "EvacuateCGroup", varargs...)
320
ret0, _ := ret[0].(*api.EvacuateCGroupResponse)
321
ret1, _ := ret[1].(error)
322
return ret0, ret1
323
}
324
325
// EvacuateCGroup indicates an expected call of EvacuateCGroup.
326
func (mr *MockInWorkspaceServiceClientMockRecorder) EvacuateCGroup(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
327
mr.mock.ctrl.T.Helper()
328
varargs := append([]interface{}{arg0, arg1}, arg2...)
329
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvacuateCGroup", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).EvacuateCGroup), varargs...)
330
}
331
332
// MountNfs mocks base method.
333
func (m *MockInWorkspaceServiceClient) MountNfs(arg0 context.Context, arg1 *api.MountNfsRequest, arg2 ...grpc.CallOption) (*api.MountNfsResponse, error) {
334
m.ctrl.T.Helper()
335
varargs := []interface{}{arg0, arg1}
336
for _, a := range arg2 {
337
varargs = append(varargs, a)
338
}
339
ret := m.ctrl.Call(m, "MountNfs", varargs...)
340
ret0, _ := ret[0].(*api.MountNfsResponse)
341
ret1, _ := ret[1].(error)
342
return ret0, ret1
343
}
344
345
// MountNfs indicates an expected call of MountNfs.
346
func (mr *MockInWorkspaceServiceClientMockRecorder) MountNfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
347
mr.mock.ctrl.T.Helper()
348
varargs := append([]interface{}{arg0, arg1}, arg2...)
349
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountNfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountNfs), varargs...)
350
}
351
352
// MountProc mocks base method.
353
func (m *MockInWorkspaceServiceClient) MountProc(arg0 context.Context, arg1 *api.MountProcRequest, arg2 ...grpc.CallOption) (*api.MountProcResponse, error) {
354
m.ctrl.T.Helper()
355
varargs := []interface{}{arg0, arg1}
356
for _, a := range arg2 {
357
varargs = append(varargs, a)
358
}
359
ret := m.ctrl.Call(m, "MountProc", varargs...)
360
ret0, _ := ret[0].(*api.MountProcResponse)
361
ret1, _ := ret[1].(error)
362
return ret0, ret1
363
}
364
365
// MountProc indicates an expected call of MountProc.
366
func (mr *MockInWorkspaceServiceClientMockRecorder) MountProc(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
367
mr.mock.ctrl.T.Helper()
368
varargs := append([]interface{}{arg0, arg1}, arg2...)
369
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountProc", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountProc), varargs...)
370
}
371
372
// MountSysfs mocks base method.
373
func (m *MockInWorkspaceServiceClient) MountSysfs(arg0 context.Context, arg1 *api.MountProcRequest, arg2 ...grpc.CallOption) (*api.MountProcResponse, error) {
374
m.ctrl.T.Helper()
375
varargs := []interface{}{arg0, arg1}
376
for _, a := range arg2 {
377
varargs = append(varargs, a)
378
}
379
ret := m.ctrl.Call(m, "MountSysfs", varargs...)
380
ret0, _ := ret[0].(*api.MountProcResponse)
381
ret1, _ := ret[1].(error)
382
return ret0, ret1
383
}
384
385
// MountSysfs indicates an expected call of MountSysfs.
386
func (mr *MockInWorkspaceServiceClientMockRecorder) MountSysfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
387
mr.mock.ctrl.T.Helper()
388
varargs := append([]interface{}{arg0, arg1}, arg2...)
389
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MountSysfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).MountSysfs), varargs...)
390
}
391
392
// PrepareForUserNS mocks base method.
393
func (m *MockInWorkspaceServiceClient) PrepareForUserNS(arg0 context.Context, arg1 *api.PrepareForUserNSRequest, arg2 ...grpc.CallOption) (*api.PrepareForUserNSResponse, error) {
394
m.ctrl.T.Helper()
395
varargs := []interface{}{arg0, arg1}
396
for _, a := range arg2 {
397
varargs = append(varargs, a)
398
}
399
ret := m.ctrl.Call(m, "PrepareForUserNS", varargs...)
400
ret0, _ := ret[0].(*api.PrepareForUserNSResponse)
401
ret1, _ := ret[1].(error)
402
return ret0, ret1
403
}
404
405
// PrepareForUserNS indicates an expected call of PrepareForUserNS.
406
func (mr *MockInWorkspaceServiceClientMockRecorder) PrepareForUserNS(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
407
mr.mock.ctrl.T.Helper()
408
varargs := append([]interface{}{arg0, arg1}, arg2...)
409
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareForUserNS", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).PrepareForUserNS), varargs...)
410
}
411
412
// SetupPairVeths mocks base method.
413
func (m *MockInWorkspaceServiceClient) SetupPairVeths(arg0 context.Context, arg1 *api.SetupPairVethsRequest, arg2 ...grpc.CallOption) (*api.SetupPairVethsResponse, error) {
414
m.ctrl.T.Helper()
415
varargs := []interface{}{arg0, arg1}
416
for _, a := range arg2 {
417
varargs = append(varargs, a)
418
}
419
ret := m.ctrl.Call(m, "SetupPairVeths", varargs...)
420
ret0, _ := ret[0].(*api.SetupPairVethsResponse)
421
ret1, _ := ret[1].(error)
422
return ret0, ret1
423
}
424
425
// SetupPairVeths indicates an expected call of SetupPairVeths.
426
func (mr *MockInWorkspaceServiceClientMockRecorder) SetupPairVeths(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
427
mr.mock.ctrl.T.Helper()
428
varargs := append([]interface{}{arg0, arg1}, arg2...)
429
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupPairVeths", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).SetupPairVeths), varargs...)
430
}
431
432
// Teardown mocks base method.
433
func (m *MockInWorkspaceServiceClient) Teardown(arg0 context.Context, arg1 *api.TeardownRequest, arg2 ...grpc.CallOption) (*api.TeardownResponse, error) {
434
m.ctrl.T.Helper()
435
varargs := []interface{}{arg0, arg1}
436
for _, a := range arg2 {
437
varargs = append(varargs, a)
438
}
439
ret := m.ctrl.Call(m, "Teardown", varargs...)
440
ret0, _ := ret[0].(*api.TeardownResponse)
441
ret1, _ := ret[1].(error)
442
return ret0, ret1
443
}
444
445
// Teardown indicates an expected call of Teardown.
446
func (mr *MockInWorkspaceServiceClientMockRecorder) Teardown(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
447
mr.mock.ctrl.T.Helper()
448
varargs := append([]interface{}{arg0, arg1}, arg2...)
449
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Teardown", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).Teardown), varargs...)
450
}
451
452
// UmountNfs mocks base method.
453
func (m *MockInWorkspaceServiceClient) UmountNfs(arg0 context.Context, arg1 *api.UmountNfsRequest, arg2 ...grpc.CallOption) (*api.UmountNfsResponse, error) {
454
m.ctrl.T.Helper()
455
varargs := []interface{}{arg0, arg1}
456
for _, a := range arg2 {
457
varargs = append(varargs, a)
458
}
459
ret := m.ctrl.Call(m, "UmountNfs", varargs...)
460
ret0, _ := ret[0].(*api.UmountNfsResponse)
461
ret1, _ := ret[1].(error)
462
return ret0, ret1
463
}
464
465
// UmountNfs indicates an expected call of UmountNfs.
466
func (mr *MockInWorkspaceServiceClientMockRecorder) UmountNfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
467
mr.mock.ctrl.T.Helper()
468
varargs := append([]interface{}{arg0, arg1}, arg2...)
469
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountNfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountNfs), varargs...)
470
}
471
472
// UmountProc mocks base method.
473
func (m *MockInWorkspaceServiceClient) UmountProc(arg0 context.Context, arg1 *api.UmountProcRequest, arg2 ...grpc.CallOption) (*api.UmountProcResponse, error) {
474
m.ctrl.T.Helper()
475
varargs := []interface{}{arg0, arg1}
476
for _, a := range arg2 {
477
varargs = append(varargs, a)
478
}
479
ret := m.ctrl.Call(m, "UmountProc", varargs...)
480
ret0, _ := ret[0].(*api.UmountProcResponse)
481
ret1, _ := ret[1].(error)
482
return ret0, ret1
483
}
484
485
// UmountProc indicates an expected call of UmountProc.
486
func (mr *MockInWorkspaceServiceClientMockRecorder) UmountProc(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
487
mr.mock.ctrl.T.Helper()
488
varargs := append([]interface{}{arg0, arg1}, arg2...)
489
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountProc", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountProc), varargs...)
490
}
491
492
// UmountSysfs mocks base method.
493
func (m *MockInWorkspaceServiceClient) UmountSysfs(arg0 context.Context, arg1 *api.UmountProcRequest, arg2 ...grpc.CallOption) (*api.UmountProcResponse, error) {
494
m.ctrl.T.Helper()
495
varargs := []interface{}{arg0, arg1}
496
for _, a := range arg2 {
497
varargs = append(varargs, a)
498
}
499
ret := m.ctrl.Call(m, "UmountSysfs", varargs...)
500
ret0, _ := ret[0].(*api.UmountProcResponse)
501
ret1, _ := ret[1].(error)
502
return ret0, ret1
503
}
504
505
// UmountSysfs indicates an expected call of UmountSysfs.
506
func (mr *MockInWorkspaceServiceClientMockRecorder) UmountSysfs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
507
mr.mock.ctrl.T.Helper()
508
varargs := append([]interface{}{arg0, arg1}, arg2...)
509
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UmountSysfs", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).UmountSysfs), varargs...)
510
}
511
512
// WipingTeardown mocks base method.
513
func (m *MockInWorkspaceServiceClient) WipingTeardown(arg0 context.Context, arg1 *api.WipingTeardownRequest, arg2 ...grpc.CallOption) (*api.WipingTeardownResponse, error) {
514
m.ctrl.T.Helper()
515
varargs := []interface{}{arg0, arg1}
516
for _, a := range arg2 {
517
varargs = append(varargs, a)
518
}
519
ret := m.ctrl.Call(m, "WipingTeardown", varargs...)
520
ret0, _ := ret[0].(*api.WipingTeardownResponse)
521
ret1, _ := ret[1].(error)
522
return ret0, ret1
523
}
524
525
// WipingTeardown indicates an expected call of WipingTeardown.
526
func (mr *MockInWorkspaceServiceClientMockRecorder) WipingTeardown(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
527
mr.mock.ctrl.T.Helper()
528
varargs := append([]interface{}{arg0, arg1}, arg2...)
529
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WipingTeardown", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WipingTeardown), varargs...)
530
}
531
532
// WorkspaceInfo mocks base method.
533
func (m *MockInWorkspaceServiceClient) WorkspaceInfo(arg0 context.Context, arg1 *api.WorkspaceInfoRequest, arg2 ...grpc.CallOption) (*api.WorkspaceInfoResponse, error) {
534
m.ctrl.T.Helper()
535
varargs := []interface{}{arg0, arg1}
536
for _, a := range arg2 {
537
varargs = append(varargs, a)
538
}
539
ret := m.ctrl.Call(m, "WorkspaceInfo", varargs...)
540
ret0, _ := ret[0].(*api.WorkspaceInfoResponse)
541
ret1, _ := ret[1].(error)
542
return ret0, ret1
543
}
544
545
// WorkspaceInfo indicates an expected call of WorkspaceInfo.
546
func (mr *MockInWorkspaceServiceClientMockRecorder) WorkspaceInfo(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
547
mr.mock.ctrl.T.Helper()
548
varargs := append([]interface{}{arg0, arg1}, arg2...)
549
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkspaceInfo", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WorkspaceInfo), varargs...)
550
}
551
552
// WriteIDMapping mocks base method.
553
func (m *MockInWorkspaceServiceClient) WriteIDMapping(arg0 context.Context, arg1 *api.WriteIDMappingRequest, arg2 ...grpc.CallOption) (*api.WriteIDMappingResponse, error) {
554
m.ctrl.T.Helper()
555
varargs := []interface{}{arg0, arg1}
556
for _, a := range arg2 {
557
varargs = append(varargs, a)
558
}
559
ret := m.ctrl.Call(m, "WriteIDMapping", varargs...)
560
ret0, _ := ret[0].(*api.WriteIDMappingResponse)
561
ret1, _ := ret[1].(error)
562
return ret0, ret1
563
}
564
565
// WriteIDMapping indicates an expected call of WriteIDMapping.
566
func (mr *MockInWorkspaceServiceClientMockRecorder) WriteIDMapping(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
567
mr.mock.ctrl.T.Helper()
568
varargs := append([]interface{}{arg0, arg1}, arg2...)
569
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteIDMapping", reflect.TypeOf((*MockInWorkspaceServiceClient)(nil).WriteIDMapping), varargs...)
570
}
571
572