-
Notifications
You must be signed in to change notification settings - Fork 51
/
mockdocker.go
2843 lines (2394 loc) · 130 KB
/
mockdocker.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by MockGen. DO NOT EDIT.
// Source: /home/ubuntu/workspace/code/go/src/github.com/docker/docker/client/interface.go
// Package mockdocker is a generated GoMock package.
package mockdocker
import (
io "io"
reflect "reflect"
time "time"
types "github.com/docker/docker/api/types"
containerpkg "github.com/docker/docker/api/types/container"
events "github.com/docker/docker/api/types/events"
filters "github.com/docker/docker/api/types/filters"
imagepkg "github.com/docker/docker/api/types/image"
network "github.com/docker/docker/api/types/network"
registry "github.com/docker/docker/api/types/registry"
swarm "github.com/docker/docker/api/types/swarm"
volume "github.com/docker/docker/api/types/volume"
gomock "github.com/golang/mock/gomock"
context "golang.org/x/net/context"
)
// MockCommonAPIClient is a mock of CommonAPIClient interface
type MockCommonAPIClient struct {
ctrl *gomock.Controller
recorder *MockCommonAPIClientMockRecorder
}
// MockCommonAPIClientMockRecorder is the mock recorder for MockCommonAPIClient
type MockCommonAPIClientMockRecorder struct {
mock *MockCommonAPIClient
}
// NewMockCommonAPIClient creates a new mock instance
func NewMockCommonAPIClient(ctrl *gomock.Controller) *MockCommonAPIClient {
mock := &MockCommonAPIClient{ctrl: ctrl}
mock.recorder = &MockCommonAPIClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCommonAPIClient) EXPECT() *MockCommonAPIClientMockRecorder {
return m.recorder
}
// ContainerAttach mocks base method
func (m *MockCommonAPIClient) ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) {
ret := m.ctrl.Call(m, "ContainerAttach", ctx, container, options)
ret0, _ := ret[0].(types.HijackedResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerAttach indicates an expected call of ContainerAttach
func (mr *MockCommonAPIClientMockRecorder) ContainerAttach(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerAttach", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerAttach), ctx, container, options)
}
// ContainerCommit mocks base method
func (m *MockCommonAPIClient) ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error) {
ret := m.ctrl.Call(m, "ContainerCommit", ctx, container, options)
ret0, _ := ret[0].(types.IDResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerCommit indicates an expected call of ContainerCommit
func (mr *MockCommonAPIClientMockRecorder) ContainerCommit(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerCommit", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerCommit), ctx, container, options)
}
// ContainerCreate mocks base method
func (m *MockCommonAPIClient) ContainerCreate(ctx context.Context, config *containerpkg.Config, hostConfig *containerpkg.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (containerpkg.ContainerCreateCreatedBody, error) {
ret := m.ctrl.Call(m, "ContainerCreate", ctx, config, hostConfig, networkingConfig, containerName)
ret0, _ := ret[0].(containerpkg.ContainerCreateCreatedBody)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerCreate indicates an expected call of ContainerCreate
func (mr *MockCommonAPIClientMockRecorder) ContainerCreate(ctx, config, hostConfig, networkingConfig, containerName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerCreate), ctx, config, hostConfig, networkingConfig, containerName)
}
// ContainerDiff mocks base method
func (m *MockCommonAPIClient) ContainerDiff(ctx context.Context, container string) ([]containerpkg.ContainerChangeResponseItem, error) {
ret := m.ctrl.Call(m, "ContainerDiff", ctx, container)
ret0, _ := ret[0].([]containerpkg.ContainerChangeResponseItem)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerDiff indicates an expected call of ContainerDiff
func (mr *MockCommonAPIClientMockRecorder) ContainerDiff(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerDiff", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerDiff), ctx, container)
}
// ContainerExecAttach mocks base method
func (m *MockCommonAPIClient) ContainerExecAttach(ctx context.Context, execID string, config types.ExecConfig) (types.HijackedResponse, error) {
ret := m.ctrl.Call(m, "ContainerExecAttach", ctx, execID, config)
ret0, _ := ret[0].(types.HijackedResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerExecAttach indicates an expected call of ContainerExecAttach
func (mr *MockCommonAPIClientMockRecorder) ContainerExecAttach(ctx, execID, config interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecAttach", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExecAttach), ctx, execID, config)
}
// ContainerExecCreate mocks base method
func (m *MockCommonAPIClient) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) {
ret := m.ctrl.Call(m, "ContainerExecCreate", ctx, container, config)
ret0, _ := ret[0].(types.IDResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerExecCreate indicates an expected call of ContainerExecCreate
func (mr *MockCommonAPIClientMockRecorder) ContainerExecCreate(ctx, container, config interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExecCreate), ctx, container, config)
}
// ContainerExecInspect mocks base method
func (m *MockCommonAPIClient) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) {
ret := m.ctrl.Call(m, "ContainerExecInspect", ctx, execID)
ret0, _ := ret[0].(types.ContainerExecInspect)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerExecInspect indicates an expected call of ContainerExecInspect
func (mr *MockCommonAPIClientMockRecorder) ContainerExecInspect(ctx, execID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecInspect", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExecInspect), ctx, execID)
}
// ContainerExecResize mocks base method
func (m *MockCommonAPIClient) ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error {
ret := m.ctrl.Call(m, "ContainerExecResize", ctx, execID, options)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerExecResize indicates an expected call of ContainerExecResize
func (mr *MockCommonAPIClientMockRecorder) ContainerExecResize(ctx, execID, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecResize", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExecResize), ctx, execID, options)
}
// ContainerExecStart mocks base method
func (m *MockCommonAPIClient) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error {
ret := m.ctrl.Call(m, "ContainerExecStart", ctx, execID, config)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerExecStart indicates an expected call of ContainerExecStart
func (mr *MockCommonAPIClientMockRecorder) ContainerExecStart(ctx, execID, config interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExecStart", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExecStart), ctx, execID, config)
}
// ContainerExport mocks base method
func (m *MockCommonAPIClient) ContainerExport(ctx context.Context, container string) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ContainerExport", ctx, container)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerExport indicates an expected call of ContainerExport
func (mr *MockCommonAPIClientMockRecorder) ContainerExport(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerExport", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerExport), ctx, container)
}
// ContainerInspect mocks base method
func (m *MockCommonAPIClient) ContainerInspect(ctx context.Context, container string) (types.ContainerJSON, error) {
ret := m.ctrl.Call(m, "ContainerInspect", ctx, container)
ret0, _ := ret[0].(types.ContainerJSON)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerInspect indicates an expected call of ContainerInspect
func (mr *MockCommonAPIClientMockRecorder) ContainerInspect(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInspect", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerInspect), ctx, container)
}
// ContainerInspectWithRaw mocks base method
func (m *MockCommonAPIClient) ContainerInspectWithRaw(ctx context.Context, container string, getSize bool) (types.ContainerJSON, []byte, error) {
ret := m.ctrl.Call(m, "ContainerInspectWithRaw", ctx, container, getSize)
ret0, _ := ret[0].(types.ContainerJSON)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// ContainerInspectWithRaw indicates an expected call of ContainerInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) ContainerInspectWithRaw(ctx, container, getSize interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerInspectWithRaw), ctx, container, getSize)
}
// ContainerKill mocks base method
func (m *MockCommonAPIClient) ContainerKill(ctx context.Context, container, signal string) error {
ret := m.ctrl.Call(m, "ContainerKill", ctx, container, signal)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerKill indicates an expected call of ContainerKill
func (mr *MockCommonAPIClientMockRecorder) ContainerKill(ctx, container, signal interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerKill", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerKill), ctx, container, signal)
}
// ContainerList mocks base method
func (m *MockCommonAPIClient) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) {
ret := m.ctrl.Call(m, "ContainerList", ctx, options)
ret0, _ := ret[0].([]types.Container)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerList indicates an expected call of ContainerList
func (mr *MockCommonAPIClientMockRecorder) ContainerList(ctx, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerList", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerList), ctx, options)
}
// ContainerLogs mocks base method
func (m *MockCommonAPIClient) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ContainerLogs", ctx, container, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerLogs indicates an expected call of ContainerLogs
func (mr *MockCommonAPIClientMockRecorder) ContainerLogs(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerLogs", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerLogs), ctx, container, options)
}
// ContainerPause mocks base method
func (m *MockCommonAPIClient) ContainerPause(ctx context.Context, container string) error {
ret := m.ctrl.Call(m, "ContainerPause", ctx, container)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerPause indicates an expected call of ContainerPause
func (mr *MockCommonAPIClientMockRecorder) ContainerPause(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerPause", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerPause), ctx, container)
}
// ContainerRemove mocks base method
func (m *MockCommonAPIClient) ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error {
ret := m.ctrl.Call(m, "ContainerRemove", ctx, container, options)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerRemove indicates an expected call of ContainerRemove
func (mr *MockCommonAPIClientMockRecorder) ContainerRemove(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerRemove), ctx, container, options)
}
// ContainerRename mocks base method
func (m *MockCommonAPIClient) ContainerRename(ctx context.Context, container, newContainerName string) error {
ret := m.ctrl.Call(m, "ContainerRename", ctx, container, newContainerName)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerRename indicates an expected call of ContainerRename
func (mr *MockCommonAPIClientMockRecorder) ContainerRename(ctx, container, newContainerName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRename", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerRename), ctx, container, newContainerName)
}
// ContainerResize mocks base method
func (m *MockCommonAPIClient) ContainerResize(ctx context.Context, container string, options types.ResizeOptions) error {
ret := m.ctrl.Call(m, "ContainerResize", ctx, container, options)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerResize indicates an expected call of ContainerResize
func (mr *MockCommonAPIClientMockRecorder) ContainerResize(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerResize", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerResize), ctx, container, options)
}
// ContainerRestart mocks base method
func (m *MockCommonAPIClient) ContainerRestart(ctx context.Context, container string, timeout *time.Duration) error {
ret := m.ctrl.Call(m, "ContainerRestart", ctx, container, timeout)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerRestart indicates an expected call of ContainerRestart
func (mr *MockCommonAPIClientMockRecorder) ContainerRestart(ctx, container, timeout interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerRestart", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerRestart), ctx, container, timeout)
}
// ContainerStatPath mocks base method
func (m *MockCommonAPIClient) ContainerStatPath(ctx context.Context, container, path string) (types.ContainerPathStat, error) {
ret := m.ctrl.Call(m, "ContainerStatPath", ctx, container, path)
ret0, _ := ret[0].(types.ContainerPathStat)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerStatPath indicates an expected call of ContainerStatPath
func (mr *MockCommonAPIClientMockRecorder) ContainerStatPath(ctx, container, path interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStatPath", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerStatPath), ctx, container, path)
}
// ContainerStats mocks base method
func (m *MockCommonAPIClient) ContainerStats(ctx context.Context, container string, stream bool) (types.ContainerStats, error) {
ret := m.ctrl.Call(m, "ContainerStats", ctx, container, stream)
ret0, _ := ret[0].(types.ContainerStats)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerStats indicates an expected call of ContainerStats
func (mr *MockCommonAPIClientMockRecorder) ContainerStats(ctx, container, stream interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStats", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerStats), ctx, container, stream)
}
// ContainerStart mocks base method
func (m *MockCommonAPIClient) ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error {
ret := m.ctrl.Call(m, "ContainerStart", ctx, container, options)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerStart indicates an expected call of ContainerStart
func (mr *MockCommonAPIClientMockRecorder) ContainerStart(ctx, container, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStart", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerStart), ctx, container, options)
}
// ContainerStop mocks base method
func (m *MockCommonAPIClient) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error {
ret := m.ctrl.Call(m, "ContainerStop", ctx, container, timeout)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerStop indicates an expected call of ContainerStop
func (mr *MockCommonAPIClientMockRecorder) ContainerStop(ctx, container, timeout interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerStop", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerStop), ctx, container, timeout)
}
// ContainerTop mocks base method
func (m *MockCommonAPIClient) ContainerTop(ctx context.Context, container string, arguments []string) (containerpkg.ContainerTopOKBody, error) {
ret := m.ctrl.Call(m, "ContainerTop", ctx, container, arguments)
ret0, _ := ret[0].(containerpkg.ContainerTopOKBody)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerTop indicates an expected call of ContainerTop
func (mr *MockCommonAPIClientMockRecorder) ContainerTop(ctx, container, arguments interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerTop", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerTop), ctx, container, arguments)
}
// ContainerUnpause mocks base method
func (m *MockCommonAPIClient) ContainerUnpause(ctx context.Context, container string) error {
ret := m.ctrl.Call(m, "ContainerUnpause", ctx, container)
ret0, _ := ret[0].(error)
return ret0
}
// ContainerUnpause indicates an expected call of ContainerUnpause
func (mr *MockCommonAPIClientMockRecorder) ContainerUnpause(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerUnpause", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerUnpause), ctx, container)
}
// ContainerUpdate mocks base method
func (m *MockCommonAPIClient) ContainerUpdate(ctx context.Context, container string, updateConfig containerpkg.UpdateConfig) (containerpkg.ContainerUpdateOKBody, error) {
ret := m.ctrl.Call(m, "ContainerUpdate", ctx, container, updateConfig)
ret0, _ := ret[0].(containerpkg.ContainerUpdateOKBody)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerUpdate indicates an expected call of ContainerUpdate
func (mr *MockCommonAPIClientMockRecorder) ContainerUpdate(ctx, container, updateConfig interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerUpdate", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerUpdate), ctx, container, updateConfig)
}
// ContainerWait mocks base method
func (m *MockCommonAPIClient) ContainerWait(ctx context.Context, container string) (int64, error) {
ret := m.ctrl.Call(m, "ContainerWait", ctx, container)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerWait indicates an expected call of ContainerWait
func (mr *MockCommonAPIClientMockRecorder) ContainerWait(ctx, container interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerWait", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainerWait), ctx, container)
}
// CopyFromContainer mocks base method
func (m *MockCommonAPIClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) {
ret := m.ctrl.Call(m, "CopyFromContainer", ctx, container, srcPath)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(types.ContainerPathStat)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// CopyFromContainer indicates an expected call of CopyFromContainer
func (mr *MockCommonAPIClientMockRecorder) CopyFromContainer(ctx, container, srcPath interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyFromContainer", reflect.TypeOf((*MockCommonAPIClient)(nil).CopyFromContainer), ctx, container, srcPath)
}
// CopyToContainer mocks base method
func (m *MockCommonAPIClient) CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error {
ret := m.ctrl.Call(m, "CopyToContainer", ctx, container, path, content, options)
ret0, _ := ret[0].(error)
return ret0
}
// CopyToContainer indicates an expected call of CopyToContainer
func (mr *MockCommonAPIClientMockRecorder) CopyToContainer(ctx, container, path, content, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyToContainer", reflect.TypeOf((*MockCommonAPIClient)(nil).CopyToContainer), ctx, container, path, content, options)
}
// ContainersPrune mocks base method
func (m *MockCommonAPIClient) ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error) {
ret := m.ctrl.Call(m, "ContainersPrune", ctx, pruneFilters)
ret0, _ := ret[0].(types.ContainersPruneReport)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainersPrune indicates an expected call of ContainersPrune
func (mr *MockCommonAPIClientMockRecorder) ContainersPrune(ctx, pruneFilters interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainersPrune", reflect.TypeOf((*MockCommonAPIClient)(nil).ContainersPrune), ctx, pruneFilters)
}
// ImageBuild mocks base method
func (m *MockCommonAPIClient) ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) {
ret := m.ctrl.Call(m, "ImageBuild", ctx, context, options)
ret0, _ := ret[0].(types.ImageBuildResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageBuild indicates an expected call of ImageBuild
func (mr *MockCommonAPIClientMockRecorder) ImageBuild(ctx, context, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageBuild", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageBuild), ctx, context, options)
}
// ImageCreate mocks base method
func (m *MockCommonAPIClient) ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ImageCreate", ctx, parentReference, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageCreate indicates an expected call of ImageCreate
func (mr *MockCommonAPIClientMockRecorder) ImageCreate(ctx, parentReference, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageCreate), ctx, parentReference, options)
}
// ImageHistory mocks base method
func (m *MockCommonAPIClient) ImageHistory(ctx context.Context, image string) ([]imagepkg.HistoryResponseItem, error) {
ret := m.ctrl.Call(m, "ImageHistory", ctx, image)
ret0, _ := ret[0].([]imagepkg.HistoryResponseItem)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageHistory indicates an expected call of ImageHistory
func (mr *MockCommonAPIClientMockRecorder) ImageHistory(ctx, image interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageHistory", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageHistory), ctx, image)
}
// ImageImport mocks base method
func (m *MockCommonAPIClient) ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ImageImport", ctx, source, ref, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageImport indicates an expected call of ImageImport
func (mr *MockCommonAPIClientMockRecorder) ImageImport(ctx, source, ref, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageImport", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageImport), ctx, source, ref, options)
}
// ImageInspectWithRaw mocks base method
func (m *MockCommonAPIClient) ImageInspectWithRaw(ctx context.Context, image string) (types.ImageInspect, []byte, error) {
ret := m.ctrl.Call(m, "ImageInspectWithRaw", ctx, image)
ret0, _ := ret[0].(types.ImageInspect)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// ImageInspectWithRaw indicates an expected call of ImageInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) ImageInspectWithRaw(ctx, image interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageInspectWithRaw), ctx, image)
}
// ImageList mocks base method
func (m *MockCommonAPIClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) {
ret := m.ctrl.Call(m, "ImageList", ctx, options)
ret0, _ := ret[0].([]types.ImageSummary)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageList indicates an expected call of ImageList
func (mr *MockCommonAPIClientMockRecorder) ImageList(ctx, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageList", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageList), ctx, options)
}
// ImageLoad mocks base method
func (m *MockCommonAPIClient) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error) {
ret := m.ctrl.Call(m, "ImageLoad", ctx, input, quiet)
ret0, _ := ret[0].(types.ImageLoadResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageLoad indicates an expected call of ImageLoad
func (mr *MockCommonAPIClientMockRecorder) ImageLoad(ctx, input, quiet interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageLoad", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageLoad), ctx, input, quiet)
}
// ImagePull mocks base method
func (m *MockCommonAPIClient) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ImagePull", ctx, ref, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImagePull indicates an expected call of ImagePull
func (mr *MockCommonAPIClientMockRecorder) ImagePull(ctx, ref, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagePull", reflect.TypeOf((*MockCommonAPIClient)(nil).ImagePull), ctx, ref, options)
}
// ImagePush mocks base method
func (m *MockCommonAPIClient) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ImagePush", ctx, ref, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImagePush indicates an expected call of ImagePush
func (mr *MockCommonAPIClientMockRecorder) ImagePush(ctx, ref, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagePush", reflect.TypeOf((*MockCommonAPIClient)(nil).ImagePush), ctx, ref, options)
}
// ImageRemove mocks base method
func (m *MockCommonAPIClient) ImageRemove(ctx context.Context, image string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) {
ret := m.ctrl.Call(m, "ImageRemove", ctx, image, options)
ret0, _ := ret[0].([]types.ImageDeleteResponseItem)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageRemove indicates an expected call of ImageRemove
func (mr *MockCommonAPIClientMockRecorder) ImageRemove(ctx, image, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageRemove), ctx, image, options)
}
// ImageSearch mocks base method
func (m *MockCommonAPIClient) ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error) {
ret := m.ctrl.Call(m, "ImageSearch", ctx, term, options)
ret0, _ := ret[0].([]registry.SearchResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageSearch indicates an expected call of ImageSearch
func (mr *MockCommonAPIClientMockRecorder) ImageSearch(ctx, term, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSearch", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageSearch), ctx, term, options)
}
// ImageSave mocks base method
func (m *MockCommonAPIClient) ImageSave(ctx context.Context, images []string) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ImageSave", ctx, images)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImageSave indicates an expected call of ImageSave
func (mr *MockCommonAPIClientMockRecorder) ImageSave(ctx, images interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageSave", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageSave), ctx, images)
}
// ImageTag mocks base method
func (m *MockCommonAPIClient) ImageTag(ctx context.Context, image, ref string) error {
ret := m.ctrl.Call(m, "ImageTag", ctx, image, ref)
ret0, _ := ret[0].(error)
return ret0
}
// ImageTag indicates an expected call of ImageTag
func (mr *MockCommonAPIClientMockRecorder) ImageTag(ctx, image, ref interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageTag", reflect.TypeOf((*MockCommonAPIClient)(nil).ImageTag), ctx, image, ref)
}
// ImagesPrune mocks base method
func (m *MockCommonAPIClient) ImagesPrune(ctx context.Context, pruneFilter filters.Args) (types.ImagesPruneReport, error) {
ret := m.ctrl.Call(m, "ImagesPrune", ctx, pruneFilter)
ret0, _ := ret[0].(types.ImagesPruneReport)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ImagesPrune indicates an expected call of ImagesPrune
func (mr *MockCommonAPIClientMockRecorder) ImagesPrune(ctx, pruneFilter interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesPrune", reflect.TypeOf((*MockCommonAPIClient)(nil).ImagesPrune), ctx, pruneFilter)
}
// NodeInspectWithRaw mocks base method
func (m *MockCommonAPIClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (swarm.Node, []byte, error) {
ret := m.ctrl.Call(m, "NodeInspectWithRaw", ctx, nodeID)
ret0, _ := ret[0].(swarm.Node)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// NodeInspectWithRaw indicates an expected call of NodeInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) NodeInspectWithRaw(ctx, nodeID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).NodeInspectWithRaw), ctx, nodeID)
}
// NodeList mocks base method
func (m *MockCommonAPIClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) {
ret := m.ctrl.Call(m, "NodeList", ctx, options)
ret0, _ := ret[0].([]swarm.Node)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NodeList indicates an expected call of NodeList
func (mr *MockCommonAPIClientMockRecorder) NodeList(ctx, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeList", reflect.TypeOf((*MockCommonAPIClient)(nil).NodeList), ctx, options)
}
// NodeRemove mocks base method
func (m *MockCommonAPIClient) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error {
ret := m.ctrl.Call(m, "NodeRemove", ctx, nodeID, options)
ret0, _ := ret[0].(error)
return ret0
}
// NodeRemove indicates an expected call of NodeRemove
func (mr *MockCommonAPIClientMockRecorder) NodeRemove(ctx, nodeID, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).NodeRemove), ctx, nodeID, options)
}
// NodeUpdate mocks base method
func (m *MockCommonAPIClient) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error {
ret := m.ctrl.Call(m, "NodeUpdate", ctx, nodeID, version, node)
ret0, _ := ret[0].(error)
return ret0
}
// NodeUpdate indicates an expected call of NodeUpdate
func (mr *MockCommonAPIClientMockRecorder) NodeUpdate(ctx, nodeID, version, node interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeUpdate", reflect.TypeOf((*MockCommonAPIClient)(nil).NodeUpdate), ctx, nodeID, version, node)
}
// NetworkConnect mocks base method
func (m *MockCommonAPIClient) NetworkConnect(ctx context.Context, networkID, container string, config *network.EndpointSettings) error {
ret := m.ctrl.Call(m, "NetworkConnect", ctx, networkID, container, config)
ret0, _ := ret[0].(error)
return ret0
}
// NetworkConnect indicates an expected call of NetworkConnect
func (mr *MockCommonAPIClientMockRecorder) NetworkConnect(ctx, networkID, container, config interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkConnect", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkConnect), ctx, networkID, container, config)
}
// NetworkCreate mocks base method
func (m *MockCommonAPIClient) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) {
ret := m.ctrl.Call(m, "NetworkCreate", ctx, name, options)
ret0, _ := ret[0].(types.NetworkCreateResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NetworkCreate indicates an expected call of NetworkCreate
func (mr *MockCommonAPIClientMockRecorder) NetworkCreate(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkCreate), ctx, name, options)
}
// NetworkDisconnect mocks base method
func (m *MockCommonAPIClient) NetworkDisconnect(ctx context.Context, networkID, container string, force bool) error {
ret := m.ctrl.Call(m, "NetworkDisconnect", ctx, networkID, container, force)
ret0, _ := ret[0].(error)
return ret0
}
// NetworkDisconnect indicates an expected call of NetworkDisconnect
func (mr *MockCommonAPIClientMockRecorder) NetworkDisconnect(ctx, networkID, container, force interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkDisconnect", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkDisconnect), ctx, networkID, container, force)
}
// NetworkInspect mocks base method
func (m *MockCommonAPIClient) NetworkInspect(ctx context.Context, networkID string, verbose bool) (types.NetworkResource, error) {
ret := m.ctrl.Call(m, "NetworkInspect", ctx, networkID, verbose)
ret0, _ := ret[0].(types.NetworkResource)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NetworkInspect indicates an expected call of NetworkInspect
func (mr *MockCommonAPIClientMockRecorder) NetworkInspect(ctx, networkID, verbose interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkInspect", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkInspect), ctx, networkID, verbose)
}
// NetworkInspectWithRaw mocks base method
func (m *MockCommonAPIClient) NetworkInspectWithRaw(ctx context.Context, networkID string, verbose bool) (types.NetworkResource, []byte, error) {
ret := m.ctrl.Call(m, "NetworkInspectWithRaw", ctx, networkID, verbose)
ret0, _ := ret[0].(types.NetworkResource)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// NetworkInspectWithRaw indicates an expected call of NetworkInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) NetworkInspectWithRaw(ctx, networkID, verbose interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkInspectWithRaw), ctx, networkID, verbose)
}
// NetworkList mocks base method
func (m *MockCommonAPIClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) {
ret := m.ctrl.Call(m, "NetworkList", ctx, options)
ret0, _ := ret[0].([]types.NetworkResource)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NetworkList indicates an expected call of NetworkList
func (mr *MockCommonAPIClientMockRecorder) NetworkList(ctx, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkList", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkList), ctx, options)
}
// NetworkRemove mocks base method
func (m *MockCommonAPIClient) NetworkRemove(ctx context.Context, networkID string) error {
ret := m.ctrl.Call(m, "NetworkRemove", ctx, networkID)
ret0, _ := ret[0].(error)
return ret0
}
// NetworkRemove indicates an expected call of NetworkRemove
func (mr *MockCommonAPIClientMockRecorder) NetworkRemove(ctx, networkID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworkRemove), ctx, networkID)
}
// NetworksPrune mocks base method
func (m *MockCommonAPIClient) NetworksPrune(ctx context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error) {
ret := m.ctrl.Call(m, "NetworksPrune", ctx, pruneFilter)
ret0, _ := ret[0].(types.NetworksPruneReport)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NetworksPrune indicates an expected call of NetworksPrune
func (mr *MockCommonAPIClientMockRecorder) NetworksPrune(ctx, pruneFilter interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworksPrune", reflect.TypeOf((*MockCommonAPIClient)(nil).NetworksPrune), ctx, pruneFilter)
}
// PluginList mocks base method
func (m *MockCommonAPIClient) PluginList(ctx context.Context, filter filters.Args) (types.PluginsListResponse, error) {
ret := m.ctrl.Call(m, "PluginList", ctx, filter)
ret0, _ := ret[0].(types.PluginsListResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PluginList indicates an expected call of PluginList
func (mr *MockCommonAPIClientMockRecorder) PluginList(ctx, filter interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginList", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginList), ctx, filter)
}
// PluginRemove mocks base method
func (m *MockCommonAPIClient) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error {
ret := m.ctrl.Call(m, "PluginRemove", ctx, name, options)
ret0, _ := ret[0].(error)
return ret0
}
// PluginRemove indicates an expected call of PluginRemove
func (mr *MockCommonAPIClientMockRecorder) PluginRemove(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginRemove), ctx, name, options)
}
// PluginEnable mocks base method
func (m *MockCommonAPIClient) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error {
ret := m.ctrl.Call(m, "PluginEnable", ctx, name, options)
ret0, _ := ret[0].(error)
return ret0
}
// PluginEnable indicates an expected call of PluginEnable
func (mr *MockCommonAPIClientMockRecorder) PluginEnable(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginEnable", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginEnable), ctx, name, options)
}
// PluginDisable mocks base method
func (m *MockCommonAPIClient) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error {
ret := m.ctrl.Call(m, "PluginDisable", ctx, name, options)
ret0, _ := ret[0].(error)
return ret0
}
// PluginDisable indicates an expected call of PluginDisable
func (mr *MockCommonAPIClientMockRecorder) PluginDisable(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDisable", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginDisable), ctx, name, options)
}
// PluginInstall mocks base method
func (m *MockCommonAPIClient) PluginInstall(ctx context.Context, name string, options types.PluginInstallOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "PluginInstall", ctx, name, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PluginInstall indicates an expected call of PluginInstall
func (mr *MockCommonAPIClientMockRecorder) PluginInstall(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginInstall", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginInstall), ctx, name, options)
}
// PluginUpgrade mocks base method
func (m *MockCommonAPIClient) PluginUpgrade(ctx context.Context, name string, options types.PluginInstallOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "PluginUpgrade", ctx, name, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PluginUpgrade indicates an expected call of PluginUpgrade
func (mr *MockCommonAPIClientMockRecorder) PluginUpgrade(ctx, name, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpgrade", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginUpgrade), ctx, name, options)
}
// PluginPush mocks base method
func (m *MockCommonAPIClient) PluginPush(ctx context.Context, name, registryAuth string) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "PluginPush", ctx, name, registryAuth)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PluginPush indicates an expected call of PluginPush
func (mr *MockCommonAPIClientMockRecorder) PluginPush(ctx, name, registryAuth interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginPush", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginPush), ctx, name, registryAuth)
}
// PluginSet mocks base method
func (m *MockCommonAPIClient) PluginSet(ctx context.Context, name string, args []string) error {
ret := m.ctrl.Call(m, "PluginSet", ctx, name, args)
ret0, _ := ret[0].(error)
return ret0
}
// PluginSet indicates an expected call of PluginSet
func (mr *MockCommonAPIClientMockRecorder) PluginSet(ctx, name, args interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginSet", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginSet), ctx, name, args)
}
// PluginInspectWithRaw mocks base method
func (m *MockCommonAPIClient) PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) {
ret := m.ctrl.Call(m, "PluginInspectWithRaw", ctx, name)
ret0, _ := ret[0].(*types.Plugin)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// PluginInspectWithRaw indicates an expected call of PluginInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) PluginInspectWithRaw(ctx, name interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginInspectWithRaw), ctx, name)
}
// PluginCreate mocks base method
func (m *MockCommonAPIClient) PluginCreate(ctx context.Context, createContext io.Reader, options types.PluginCreateOptions) error {
ret := m.ctrl.Call(m, "PluginCreate", ctx, createContext, options)
ret0, _ := ret[0].(error)
return ret0
}
// PluginCreate indicates an expected call of PluginCreate
func (mr *MockCommonAPIClientMockRecorder) PluginCreate(ctx, createContext, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).PluginCreate), ctx, createContext, options)
}
// ServiceCreate mocks base method
func (m *MockCommonAPIClient) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options types.ServiceCreateOptions) (types.ServiceCreateResponse, error) {
ret := m.ctrl.Call(m, "ServiceCreate", ctx, service, options)
ret0, _ := ret[0].(types.ServiceCreateResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ServiceCreate indicates an expected call of ServiceCreate
func (mr *MockCommonAPIClientMockRecorder) ServiceCreate(ctx, service, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCreate", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceCreate), ctx, service, options)
}
// ServiceInspectWithRaw mocks base method
func (m *MockCommonAPIClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, options types.ServiceInspectOptions) (swarm.Service, []byte, error) {
ret := m.ctrl.Call(m, "ServiceInspectWithRaw", ctx, serviceID, options)
ret0, _ := ret[0].(swarm.Service)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// ServiceInspectWithRaw indicates an expected call of ServiceInspectWithRaw
func (mr *MockCommonAPIClientMockRecorder) ServiceInspectWithRaw(ctx, serviceID, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceInspectWithRaw", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceInspectWithRaw), ctx, serviceID, options)
}
// ServiceList mocks base method
func (m *MockCommonAPIClient) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) {
ret := m.ctrl.Call(m, "ServiceList", ctx, options)
ret0, _ := ret[0].([]swarm.Service)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ServiceList indicates an expected call of ServiceList
func (mr *MockCommonAPIClientMockRecorder) ServiceList(ctx, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceList", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceList), ctx, options)
}
// ServiceRemove mocks base method
func (m *MockCommonAPIClient) ServiceRemove(ctx context.Context, serviceID string) error {
ret := m.ctrl.Call(m, "ServiceRemove", ctx, serviceID)
ret0, _ := ret[0].(error)
return ret0
}
// ServiceRemove indicates an expected call of ServiceRemove
func (mr *MockCommonAPIClientMockRecorder) ServiceRemove(ctx, serviceID interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceRemove", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceRemove), ctx, serviceID)
}
// ServiceUpdate mocks base method
func (m *MockCommonAPIClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) {
ret := m.ctrl.Call(m, "ServiceUpdate", ctx, serviceID, version, service, options)
ret0, _ := ret[0].(types.ServiceUpdateResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ServiceUpdate indicates an expected call of ServiceUpdate
func (mr *MockCommonAPIClientMockRecorder) ServiceUpdate(ctx, serviceID, version, service, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceUpdate", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceUpdate), ctx, serviceID, version, service, options)
}
// ServiceLogs mocks base method
func (m *MockCommonAPIClient) ServiceLogs(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "ServiceLogs", ctx, serviceID, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ServiceLogs indicates an expected call of ServiceLogs
func (mr *MockCommonAPIClientMockRecorder) ServiceLogs(ctx, serviceID, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceLogs", reflect.TypeOf((*MockCommonAPIClient)(nil).ServiceLogs), ctx, serviceID, options)
}
// TaskLogs mocks base method
func (m *MockCommonAPIClient) TaskLogs(ctx context.Context, taskID string, options types.ContainerLogsOptions) (io.ReadCloser, error) {
ret := m.ctrl.Call(m, "TaskLogs", ctx, taskID, options)
ret0, _ := ret[0].(io.ReadCloser)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TaskLogs indicates an expected call of TaskLogs
func (mr *MockCommonAPIClientMockRecorder) TaskLogs(ctx, taskID, options interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskLogs", reflect.TypeOf((*MockCommonAPIClient)(nil).TaskLogs), ctx, taskID, options)
}
// TaskInspectWithRaw mocks base method
func (m *MockCommonAPIClient) TaskInspectWithRaw(ctx context.Context, taskID string) (swarm.Task, []byte, error) {
ret := m.ctrl.Call(m, "TaskInspectWithRaw", ctx, taskID)
ret0, _ := ret[0].(swarm.Task)
ret1, _ := ret[1].([]byte)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}