-
Notifications
You must be signed in to change notification settings - Fork 55
/
fake_apiclient.go
5497 lines (5088 loc) · 168 KB
/
fake_apiclient.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
// Copyright © 2021 - 2023 SUSE LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by counterfeiter. DO NOT EDIT.
package usercmdfakes
import (
"context"
"net/http"
"sync"
"github.com/epinio/epinio/helpers/kubernetes/tailer"
"github.com/epinio/epinio/internal/cli/usercmd"
"github.com/epinio/epinio/pkg/api/core/v1/client"
"github.com/epinio/epinio/pkg/api/core/v1/models"
"k8s.io/kubectl/pkg/util/term"
)
type FakeAPIClient struct {
AllAppsStub func() (models.AppList, error)
allAppsMutex sync.RWMutex
allAppsArgsForCall []struct {
}
allAppsReturns struct {
result1 models.AppList
result2 error
}
allAppsReturnsOnCall map[int]struct {
result1 models.AppList
result2 error
}
AllConfigurationsStub func() (models.ConfigurationResponseList, error)
allConfigurationsMutex sync.RWMutex
allConfigurationsArgsForCall []struct {
}
allConfigurationsReturns struct {
result1 models.ConfigurationResponseList
result2 error
}
allConfigurationsReturnsOnCall map[int]struct {
result1 models.ConfigurationResponseList
result2 error
}
AllServicesStub func() (models.ServiceList, error)
allServicesMutex sync.RWMutex
allServicesArgsForCall []struct {
}
allServicesReturns struct {
result1 models.ServiceList
result2 error
}
allServicesReturnsOnCall map[int]struct {
result1 models.ServiceList
result2 error
}
AppCreateStub func(models.ApplicationCreateRequest, string) (models.Response, error)
appCreateMutex sync.RWMutex
appCreateArgsForCall []struct {
arg1 models.ApplicationCreateRequest
arg2 string
}
appCreateReturns struct {
result1 models.Response
result2 error
}
appCreateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppDeleteStub func(string, []string) (models.ApplicationDeleteResponse, error)
appDeleteMutex sync.RWMutex
appDeleteArgsForCall []struct {
arg1 string
arg2 []string
}
appDeleteReturns struct {
result1 models.ApplicationDeleteResponse
result2 error
}
appDeleteReturnsOnCall map[int]struct {
result1 models.ApplicationDeleteResponse
result2 error
}
AppDeployStub func(models.DeployRequest) (*models.DeployResponse, error)
appDeployMutex sync.RWMutex
appDeployArgsForCall []struct {
arg1 models.DeployRequest
}
appDeployReturns struct {
result1 *models.DeployResponse
result2 error
}
appDeployReturnsOnCall map[int]struct {
result1 *models.DeployResponse
result2 error
}
AppExecStub func(context.Context, string, string, string, term.TTY) error
appExecMutex sync.RWMutex
appExecArgsForCall []struct {
arg1 context.Context
arg2 string
arg3 string
arg4 string
arg5 term.TTY
}
appExecReturns struct {
result1 error
}
appExecReturnsOnCall map[int]struct {
result1 error
}
AppExportStub func(string, string, models.AppExportRequest) (models.Response, error)
appExportMutex sync.RWMutex
appExportArgsForCall []struct {
arg1 string
arg2 string
arg3 models.AppExportRequest
}
appExportReturns struct {
result1 models.Response
result2 error
}
appExportReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppGetPartStub func(string, string, string) (models.AppPartResponse, error)
appGetPartMutex sync.RWMutex
appGetPartArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
appGetPartReturns struct {
result1 models.AppPartResponse
result2 error
}
appGetPartReturnsOnCall map[int]struct {
result1 models.AppPartResponse
result2 error
}
AppImportGitStub func(string, string, models.GitRef) (models.ImportGitResponse, error)
appImportGitMutex sync.RWMutex
appImportGitArgsForCall []struct {
arg1 string
arg2 string
arg3 models.GitRef
}
appImportGitReturns struct {
result1 models.ImportGitResponse
result2 error
}
appImportGitReturnsOnCall map[int]struct {
result1 models.ImportGitResponse
result2 error
}
AppLogsStub func(string, string, string, bool, func(tailer.ContainerLogLine)) error
appLogsMutex sync.RWMutex
appLogsArgsForCall []struct {
arg1 string
arg2 string
arg3 string
arg4 bool
arg5 func(tailer.ContainerLogLine)
}
appLogsReturns struct {
result1 error
}
appLogsReturnsOnCall map[int]struct {
result1 error
}
AppMatchStub func(string, string) (models.AppMatchResponse, error)
appMatchMutex sync.RWMutex
appMatchArgsForCall []struct {
arg1 string
arg2 string
}
appMatchReturns struct {
result1 models.AppMatchResponse
result2 error
}
appMatchReturnsOnCall map[int]struct {
result1 models.AppMatchResponse
result2 error
}
AppPortForwardStub func(string, string, string, *client.PortForwardOpts) error
appPortForwardMutex sync.RWMutex
appPortForwardArgsForCall []struct {
arg1 string
arg2 string
arg3 string
arg4 *client.PortForwardOpts
}
appPortForwardReturns struct {
result1 error
}
appPortForwardReturnsOnCall map[int]struct {
result1 error
}
AppRestartStub func(string, string) (models.Response, error)
appRestartMutex sync.RWMutex
appRestartArgsForCall []struct {
arg1 string
arg2 string
}
appRestartReturns struct {
result1 models.Response
result2 error
}
appRestartReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppRunningStub func(models.AppRef) (models.Response, error)
appRunningMutex sync.RWMutex
appRunningArgsForCall []struct {
arg1 models.AppRef
}
appRunningReturns struct {
result1 models.Response
result2 error
}
appRunningReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppShowStub func(string, string) (models.App, error)
appShowMutex sync.RWMutex
appShowArgsForCall []struct {
arg1 string
arg2 string
}
appShowReturns struct {
result1 models.App
result2 error
}
appShowReturnsOnCall map[int]struct {
result1 models.App
result2 error
}
AppStageStub func(models.StageRequest) (*models.StageResponse, error)
appStageMutex sync.RWMutex
appStageArgsForCall []struct {
arg1 models.StageRequest
}
appStageReturns struct {
result1 *models.StageResponse
result2 error
}
appStageReturnsOnCall map[int]struct {
result1 *models.StageResponse
result2 error
}
AppUpdateStub func(models.ApplicationUpdateRequest, string, string) (models.Response, error)
appUpdateMutex sync.RWMutex
appUpdateArgsForCall []struct {
arg1 models.ApplicationUpdateRequest
arg2 string
arg3 string
}
appUpdateReturns struct {
result1 models.Response
result2 error
}
appUpdateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppUploadStub func(string, string, client.FormFile) (models.UploadResponse, error)
appUploadMutex sync.RWMutex
appUploadArgsForCall []struct {
arg1 string
arg2 string
arg3 client.FormFile
}
appUploadReturns struct {
result1 models.UploadResponse
result2 error
}
appUploadReturnsOnCall map[int]struct {
result1 models.UploadResponse
result2 error
}
AppValidateCVStub func(string, string) (models.Response, error)
appValidateCVMutex sync.RWMutex
appValidateCVArgsForCall []struct {
arg1 string
arg2 string
}
appValidateCVReturns struct {
result1 models.Response
result2 error
}
appValidateCVReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
AppsStub func(string) (models.AppList, error)
appsMutex sync.RWMutex
appsArgsForCall []struct {
arg1 string
}
appsReturns struct {
result1 models.AppList
result2 error
}
appsReturnsOnCall map[int]struct {
result1 models.AppList
result2 error
}
AuthTokenStub func() (models.AuthTokenResponse, error)
authTokenMutex sync.RWMutex
authTokenArgsForCall []struct {
}
authTokenReturns struct {
result1 models.AuthTokenResponse
result2 error
}
authTokenReturnsOnCall map[int]struct {
result1 models.AuthTokenResponse
result2 error
}
ChartListStub func() ([]models.AppChart, error)
chartListMutex sync.RWMutex
chartListArgsForCall []struct {
}
chartListReturns struct {
result1 []models.AppChart
result2 error
}
chartListReturnsOnCall map[int]struct {
result1 []models.AppChart
result2 error
}
ChartMatchStub func(string) (models.ChartMatchResponse, error)
chartMatchMutex sync.RWMutex
chartMatchArgsForCall []struct {
arg1 string
}
chartMatchReturns struct {
result1 models.ChartMatchResponse
result2 error
}
chartMatchReturnsOnCall map[int]struct {
result1 models.ChartMatchResponse
result2 error
}
ChartShowStub func(string) (models.AppChart, error)
chartShowMutex sync.RWMutex
chartShowArgsForCall []struct {
arg1 string
}
chartShowReturns struct {
result1 models.AppChart
result2 error
}
chartShowReturnsOnCall map[int]struct {
result1 models.AppChart
result2 error
}
ConfigurationAppsStub func(string) (models.ConfigurationAppsResponse, error)
configurationAppsMutex sync.RWMutex
configurationAppsArgsForCall []struct {
arg1 string
}
configurationAppsReturns struct {
result1 models.ConfigurationAppsResponse
result2 error
}
configurationAppsReturnsOnCall map[int]struct {
result1 models.ConfigurationAppsResponse
result2 error
}
ConfigurationBindingCreateStub func(models.BindRequest, string, string) (models.BindResponse, error)
configurationBindingCreateMutex sync.RWMutex
configurationBindingCreateArgsForCall []struct {
arg1 models.BindRequest
arg2 string
arg3 string
}
configurationBindingCreateReturns struct {
result1 models.BindResponse
result2 error
}
configurationBindingCreateReturnsOnCall map[int]struct {
result1 models.BindResponse
result2 error
}
ConfigurationBindingDeleteStub func(string, string, string) (models.Response, error)
configurationBindingDeleteMutex sync.RWMutex
configurationBindingDeleteArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
configurationBindingDeleteReturns struct {
result1 models.Response
result2 error
}
configurationBindingDeleteReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ConfigurationCreateStub func(models.ConfigurationCreateRequest, string) (models.Response, error)
configurationCreateMutex sync.RWMutex
configurationCreateArgsForCall []struct {
arg1 models.ConfigurationCreateRequest
arg2 string
}
configurationCreateReturns struct {
result1 models.Response
result2 error
}
configurationCreateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ConfigurationDeleteStub func(models.ConfigurationDeleteRequest, string, []string) (models.ConfigurationDeleteResponse, error)
configurationDeleteMutex sync.RWMutex
configurationDeleteArgsForCall []struct {
arg1 models.ConfigurationDeleteRequest
arg2 string
arg3 []string
}
configurationDeleteReturns struct {
result1 models.ConfigurationDeleteResponse
result2 error
}
configurationDeleteReturnsOnCall map[int]struct {
result1 models.ConfigurationDeleteResponse
result2 error
}
ConfigurationMatchStub func(string, string) (models.ConfigurationMatchResponse, error)
configurationMatchMutex sync.RWMutex
configurationMatchArgsForCall []struct {
arg1 string
arg2 string
}
configurationMatchReturns struct {
result1 models.ConfigurationMatchResponse
result2 error
}
configurationMatchReturnsOnCall map[int]struct {
result1 models.ConfigurationMatchResponse
result2 error
}
ConfigurationShowStub func(string, string) (models.ConfigurationResponse, error)
configurationShowMutex sync.RWMutex
configurationShowArgsForCall []struct {
arg1 string
arg2 string
}
configurationShowReturns struct {
result1 models.ConfigurationResponse
result2 error
}
configurationShowReturnsOnCall map[int]struct {
result1 models.ConfigurationResponse
result2 error
}
ConfigurationUpdateStub func(models.ConfigurationUpdateRequest, string, string) (models.Response, error)
configurationUpdateMutex sync.RWMutex
configurationUpdateArgsForCall []struct {
arg1 models.ConfigurationUpdateRequest
arg2 string
arg3 string
}
configurationUpdateReturns struct {
result1 models.Response
result2 error
}
configurationUpdateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ConfigurationsStub func(string) (models.ConfigurationResponseList, error)
configurationsMutex sync.RWMutex
configurationsArgsForCall []struct {
arg1 string
}
configurationsReturns struct {
result1 models.ConfigurationResponseList
result2 error
}
configurationsReturnsOnCall map[int]struct {
result1 models.ConfigurationResponseList
result2 error
}
DisableVersionWarningStub func()
disableVersionWarningMutex sync.RWMutex
disableVersionWarningArgsForCall []struct {
}
EnvListStub func(string, string) (models.EnvVariableMap, error)
envListMutex sync.RWMutex
envListArgsForCall []struct {
arg1 string
arg2 string
}
envListReturns struct {
result1 models.EnvVariableMap
result2 error
}
envListReturnsOnCall map[int]struct {
result1 models.EnvVariableMap
result2 error
}
EnvMatchStub func(string, string, string) (models.EnvMatchResponse, error)
envMatchMutex sync.RWMutex
envMatchArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
envMatchReturns struct {
result1 models.EnvMatchResponse
result2 error
}
envMatchReturnsOnCall map[int]struct {
result1 models.EnvMatchResponse
result2 error
}
EnvSetStub func(models.EnvVariableMap, string, string) (models.Response, error)
envSetMutex sync.RWMutex
envSetArgsForCall []struct {
arg1 models.EnvVariableMap
arg2 string
arg3 string
}
envSetReturns struct {
result1 models.Response
result2 error
}
envSetReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
EnvShowStub func(string, string, string) (models.EnvVariable, error)
envShowMutex sync.RWMutex
envShowArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
envShowReturns struct {
result1 models.EnvVariable
result2 error
}
envShowReturnsOnCall map[int]struct {
result1 models.EnvVariable
result2 error
}
EnvUnsetStub func(string, string, string) (models.Response, error)
envUnsetMutex sync.RWMutex
envUnsetArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
envUnsetReturns struct {
result1 models.Response
result2 error
}
envUnsetReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ExportregistryListStub func() ([]models.ExportregistryResponse, error)
exportregistryListMutex sync.RWMutex
exportregistryListArgsForCall []struct {
}
exportregistryListReturns struct {
result1 []models.ExportregistryResponse
result2 error
}
exportregistryListReturnsOnCall map[int]struct {
result1 []models.ExportregistryResponse
result2 error
}
ExportregistryMatchStub func(string) (models.ExportregistriesMatchResponse, error)
exportregistryMatchMutex sync.RWMutex
exportregistryMatchArgsForCall []struct {
arg1 string
}
exportregistryMatchReturns struct {
result1 models.ExportregistriesMatchResponse
result2 error
}
exportregistryMatchReturnsOnCall map[int]struct {
result1 models.ExportregistriesMatchResponse
result2 error
}
GitconfigCreateStub func(models.GitconfigCreateRequest) (models.Response, error)
gitconfigCreateMutex sync.RWMutex
gitconfigCreateArgsForCall []struct {
arg1 models.GitconfigCreateRequest
}
gitconfigCreateReturns struct {
result1 models.Response
result2 error
}
gitconfigCreateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
GitconfigDeleteStub func([]string) (models.Response, error)
gitconfigDeleteMutex sync.RWMutex
gitconfigDeleteArgsForCall []struct {
arg1 []string
}
gitconfigDeleteReturns struct {
result1 models.Response
result2 error
}
gitconfigDeleteReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
GitconfigShowStub func(string) (models.Gitconfig, error)
gitconfigShowMutex sync.RWMutex
gitconfigShowArgsForCall []struct {
arg1 string
}
gitconfigShowReturns struct {
result1 models.Gitconfig
result2 error
}
gitconfigShowReturnsOnCall map[int]struct {
result1 models.Gitconfig
result2 error
}
GitconfigsStub func() (models.GitconfigList, error)
gitconfigsMutex sync.RWMutex
gitconfigsArgsForCall []struct {
}
gitconfigsReturns struct {
result1 models.GitconfigList
result2 error
}
gitconfigsReturnsOnCall map[int]struct {
result1 models.GitconfigList
result2 error
}
GitconfigsMatchStub func(string) (models.GitconfigsMatchResponse, error)
gitconfigsMatchMutex sync.RWMutex
gitconfigsMatchArgsForCall []struct {
arg1 string
}
gitconfigsMatchReturns struct {
result1 models.GitconfigsMatchResponse
result2 error
}
gitconfigsMatchReturnsOnCall map[int]struct {
result1 models.GitconfigsMatchResponse
result2 error
}
HeadersStub func() http.Header
headersMutex sync.RWMutex
headersArgsForCall []struct {
}
headersReturns struct {
result1 http.Header
}
headersReturnsOnCall map[int]struct {
result1 http.Header
}
InfoStub func() (models.InfoResponse, error)
infoMutex sync.RWMutex
infoArgsForCall []struct {
}
infoReturns struct {
result1 models.InfoResponse
result2 error
}
infoReturnsOnCall map[int]struct {
result1 models.InfoResponse
result2 error
}
MeStub func() (models.MeResponse, error)
meMutex sync.RWMutex
meArgsForCall []struct {
}
meReturns struct {
result1 models.MeResponse
result2 error
}
meReturnsOnCall map[int]struct {
result1 models.MeResponse
result2 error
}
NamespaceCreateStub func(models.NamespaceCreateRequest) (models.Response, error)
namespaceCreateMutex sync.RWMutex
namespaceCreateArgsForCall []struct {
arg1 models.NamespaceCreateRequest
}
namespaceCreateReturns struct {
result1 models.Response
result2 error
}
namespaceCreateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
NamespaceDeleteStub func([]string) (models.Response, error)
namespaceDeleteMutex sync.RWMutex
namespaceDeleteArgsForCall []struct {
arg1 []string
}
namespaceDeleteReturns struct {
result1 models.Response
result2 error
}
namespaceDeleteReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
NamespaceShowStub func(string) (models.Namespace, error)
namespaceShowMutex sync.RWMutex
namespaceShowArgsForCall []struct {
arg1 string
}
namespaceShowReturns struct {
result1 models.Namespace
result2 error
}
namespaceShowReturnsOnCall map[int]struct {
result1 models.Namespace
result2 error
}
NamespacesStub func() (models.NamespaceList, error)
namespacesMutex sync.RWMutex
namespacesArgsForCall []struct {
}
namespacesReturns struct {
result1 models.NamespaceList
result2 error
}
namespacesReturnsOnCall map[int]struct {
result1 models.NamespaceList
result2 error
}
NamespacesMatchStub func(string) (models.NamespacesMatchResponse, error)
namespacesMatchMutex sync.RWMutex
namespacesMatchArgsForCall []struct {
arg1 string
}
namespacesMatchReturns struct {
result1 models.NamespacesMatchResponse
result2 error
}
namespacesMatchReturnsOnCall map[int]struct {
result1 models.NamespacesMatchResponse
result2 error
}
ServiceBindStub func(models.ServiceBindRequest, string, string) (models.Response, error)
serviceBindMutex sync.RWMutex
serviceBindArgsForCall []struct {
arg1 models.ServiceBindRequest
arg2 string
arg3 string
}
serviceBindReturns struct {
result1 models.Response
result2 error
}
serviceBindReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ServiceCatalogStub func() (models.CatalogServices, error)
serviceCatalogMutex sync.RWMutex
serviceCatalogArgsForCall []struct {
}
serviceCatalogReturns struct {
result1 models.CatalogServices
result2 error
}
serviceCatalogReturnsOnCall map[int]struct {
result1 models.CatalogServices
result2 error
}
ServiceCatalogMatchStub func(string) (models.CatalogMatchResponse, error)
serviceCatalogMatchMutex sync.RWMutex
serviceCatalogMatchArgsForCall []struct {
arg1 string
}
serviceCatalogMatchReturns struct {
result1 models.CatalogMatchResponse
result2 error
}
serviceCatalogMatchReturnsOnCall map[int]struct {
result1 models.CatalogMatchResponse
result2 error
}
ServiceCatalogShowStub func(string) (*models.CatalogService, error)
serviceCatalogShowMutex sync.RWMutex
serviceCatalogShowArgsForCall []struct {
arg1 string
}
serviceCatalogShowReturns struct {
result1 *models.CatalogService
result2 error
}
serviceCatalogShowReturnsOnCall map[int]struct {
result1 *models.CatalogService
result2 error
}
ServiceCreateStub func(models.ServiceCreateRequest, string) (models.Response, error)
serviceCreateMutex sync.RWMutex
serviceCreateArgsForCall []struct {
arg1 models.ServiceCreateRequest
arg2 string
}
serviceCreateReturns struct {
result1 models.Response
result2 error
}
serviceCreateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ServiceDeleteStub func(models.ServiceDeleteRequest, string, []string) (models.ServiceDeleteResponse, error)
serviceDeleteMutex sync.RWMutex
serviceDeleteArgsForCall []struct {
arg1 models.ServiceDeleteRequest
arg2 string
arg3 []string
}
serviceDeleteReturns struct {
result1 models.ServiceDeleteResponse
result2 error
}
serviceDeleteReturnsOnCall map[int]struct {
result1 models.ServiceDeleteResponse
result2 error
}
ServiceListStub func(string) (models.ServiceList, error)
serviceListMutex sync.RWMutex
serviceListArgsForCall []struct {
arg1 string
}
serviceListReturns struct {
result1 models.ServiceList
result2 error
}
serviceListReturnsOnCall map[int]struct {
result1 models.ServiceList
result2 error
}
ServiceMatchStub func(string, string) (models.ServiceMatchResponse, error)
serviceMatchMutex sync.RWMutex
serviceMatchArgsForCall []struct {
arg1 string
arg2 string
}
serviceMatchReturns struct {
result1 models.ServiceMatchResponse
result2 error
}
serviceMatchReturnsOnCall map[int]struct {
result1 models.ServiceMatchResponse
result2 error
}
ServicePortForwardStub func(string, string, *client.PortForwardOpts) error
servicePortForwardMutex sync.RWMutex
servicePortForwardArgsForCall []struct {
arg1 string
arg2 string
arg3 *client.PortForwardOpts
}
servicePortForwardReturns struct {
result1 error
}
servicePortForwardReturnsOnCall map[int]struct {
result1 error
}
ServiceShowStub func(string, string) (*models.Service, error)
serviceShowMutex sync.RWMutex
serviceShowArgsForCall []struct {
arg1 string
arg2 string
}
serviceShowReturns struct {
result1 *models.Service
result2 error
}
serviceShowReturnsOnCall map[int]struct {
result1 *models.Service
result2 error
}
ServiceUnbindStub func(models.ServiceUnbindRequest, string, string) (models.Response, error)
serviceUnbindMutex sync.RWMutex
serviceUnbindArgsForCall []struct {
arg1 models.ServiceUnbindRequest
arg2 string
arg3 string
}
serviceUnbindReturns struct {
result1 models.Response
result2 error
}
serviceUnbindReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
ServiceUpdateStub func(models.ServiceUpdateRequest, string, string) (models.Response, error)
serviceUpdateMutex sync.RWMutex
serviceUpdateArgsForCall []struct {
arg1 models.ServiceUpdateRequest
arg2 string
arg3 string
}
serviceUpdateReturns struct {
result1 models.Response
result2 error
}
serviceUpdateReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
SetHeaderStub func(string, string)
setHeaderMutex sync.RWMutex
setHeaderArgsForCall []struct {
arg1 string
arg2 string
}
StagingCompleteStub func(string, string) (models.Response, error)
stagingCompleteMutex sync.RWMutex
stagingCompleteArgsForCall []struct {
arg1 string
arg2 string
}
stagingCompleteReturns struct {
result1 models.Response
result2 error
}
stagingCompleteReturnsOnCall map[int]struct {
result1 models.Response
result2 error
}
VersionWarningEnabledStub func() bool
versionWarningEnabledMutex sync.RWMutex
versionWarningEnabledArgsForCall []struct {
}
versionWarningEnabledReturns struct {
result1 bool
}
versionWarningEnabledReturnsOnCall map[int]struct {
result1 bool
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeAPIClient) AllApps() (models.AppList, error) {
fake.allAppsMutex.Lock()
ret, specificReturn := fake.allAppsReturnsOnCall[len(fake.allAppsArgsForCall)]
fake.allAppsArgsForCall = append(fake.allAppsArgsForCall, struct {
}{})
stub := fake.AllAppsStub
fakeReturns := fake.allAppsReturns
fake.recordInvocation("AllApps", []interface{}{})
fake.allAppsMutex.Unlock()
if stub != nil {
return stub()
}
if specificReturn {
return ret.result1, ret.result2
}
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeAPIClient) AllAppsCallCount() int {
fake.allAppsMutex.RLock()
defer fake.allAppsMutex.RUnlock()
return len(fake.allAppsArgsForCall)
}
func (fake *FakeAPIClient) AllAppsCalls(stub func() (models.AppList, error)) {
fake.allAppsMutex.Lock()
defer fake.allAppsMutex.Unlock()
fake.AllAppsStub = stub
}
func (fake *FakeAPIClient) AllAppsReturns(result1 models.AppList, result2 error) {
fake.allAppsMutex.Lock()
defer fake.allAppsMutex.Unlock()
fake.AllAppsStub = nil
fake.allAppsReturns = struct {
result1 models.AppList
result2 error
}{result1, result2}
}