-
Notifications
You must be signed in to change notification settings - Fork 927
/
fake_cloud_controller_client.go
3334 lines (3096 loc) · 126 KB
/
fake_cloud_controller_client.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 counterfeiter. DO NOT EDIT.
package v3actionfakes
import (
"sync"
"code.cloudfoundry.org/cli/actor/v3action"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3"
)
type FakeCloudControllerClient struct {
AppSSHEndpointStub func() string
appSSHEndpointMutex sync.RWMutex
appSSHEndpointArgsForCall []struct{}
appSSHEndpointReturns struct {
result1 string
}
appSSHEndpointReturnsOnCall map[int]struct {
result1 string
}
AppSSHHostKeyFingerprintStub func() string
appSSHHostKeyFingerprintMutex sync.RWMutex
appSSHHostKeyFingerprintArgsForCall []struct{}
appSSHHostKeyFingerprintReturns struct {
result1 string
}
appSSHHostKeyFingerprintReturnsOnCall map[int]struct {
result1 string
}
AssignSpaceToIsolationSegmentStub func(spaceGUID string, isolationSegmentGUID string) (ccv3.Relationship, ccv3.Warnings, error)
assignSpaceToIsolationSegmentMutex sync.RWMutex
assignSpaceToIsolationSegmentArgsForCall []struct {
spaceGUID string
isolationSegmentGUID string
}
assignSpaceToIsolationSegmentReturns struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
assignSpaceToIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
CloudControllerAPIVersionStub func() string
cloudControllerAPIVersionMutex sync.RWMutex
cloudControllerAPIVersionArgsForCall []struct{}
cloudControllerAPIVersionReturns struct {
result1 string
}
cloudControllerAPIVersionReturnsOnCall map[int]struct {
result1 string
}
CreateApplicationStub func(app ccv3.Application) (ccv3.Application, ccv3.Warnings, error)
createApplicationMutex sync.RWMutex
createApplicationArgsForCall []struct {
app ccv3.Application
}
createApplicationReturns struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
createApplicationReturnsOnCall map[int]struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
CreateApplicationProcessScaleStub func(appGUID string, process ccv3.Process) (ccv3.Process, ccv3.Warnings, error)
createApplicationProcessScaleMutex sync.RWMutex
createApplicationProcessScaleArgsForCall []struct {
appGUID string
process ccv3.Process
}
createApplicationProcessScaleReturns struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
createApplicationProcessScaleReturnsOnCall map[int]struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
CreateApplicationTaskStub func(appGUID string, task ccv3.Task) (ccv3.Task, ccv3.Warnings, error)
createApplicationTaskMutex sync.RWMutex
createApplicationTaskArgsForCall []struct {
appGUID string
task ccv3.Task
}
createApplicationTaskReturns struct {
result1 ccv3.Task
result2 ccv3.Warnings
result3 error
}
createApplicationTaskReturnsOnCall map[int]struct {
result1 ccv3.Task
result2 ccv3.Warnings
result3 error
}
CreateBuildStub func(build ccv3.Build) (ccv3.Build, ccv3.Warnings, error)
createBuildMutex sync.RWMutex
createBuildArgsForCall []struct {
build ccv3.Build
}
createBuildReturns struct {
result1 ccv3.Build
result2 ccv3.Warnings
result3 error
}
createBuildReturnsOnCall map[int]struct {
result1 ccv3.Build
result2 ccv3.Warnings
result3 error
}
CreateIsolationSegmentStub func(isolationSegment ccv3.IsolationSegment) (ccv3.IsolationSegment, ccv3.Warnings, error)
createIsolationSegmentMutex sync.RWMutex
createIsolationSegmentArgsForCall []struct {
isolationSegment ccv3.IsolationSegment
}
createIsolationSegmentReturns struct {
result1 ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
createIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
CreatePackageStub func(pkg ccv3.Package) (ccv3.Package, ccv3.Warnings, error)
createPackageMutex sync.RWMutex
createPackageArgsForCall []struct {
pkg ccv3.Package
}
createPackageReturns struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
createPackageReturnsOnCall map[int]struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
DeleteApplicationStub func(guid string) (string, ccv3.Warnings, error)
deleteApplicationMutex sync.RWMutex
deleteApplicationArgsForCall []struct {
guid string
}
deleteApplicationReturns struct {
result1 string
result2 ccv3.Warnings
result3 error
}
deleteApplicationReturnsOnCall map[int]struct {
result1 string
result2 ccv3.Warnings
result3 error
}
DeleteApplicationProcessInstanceStub func(appGUID string, processType string, instanceIndex int) (ccv3.Warnings, error)
deleteApplicationProcessInstanceMutex sync.RWMutex
deleteApplicationProcessInstanceArgsForCall []struct {
appGUID string
processType string
instanceIndex int
}
deleteApplicationProcessInstanceReturns struct {
result1 ccv3.Warnings
result2 error
}
deleteApplicationProcessInstanceReturnsOnCall map[int]struct {
result1 ccv3.Warnings
result2 error
}
DeleteIsolationSegmentStub func(guid string) (ccv3.Warnings, error)
deleteIsolationSegmentMutex sync.RWMutex
deleteIsolationSegmentArgsForCall []struct {
guid string
}
deleteIsolationSegmentReturns struct {
result1 ccv3.Warnings
result2 error
}
deleteIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.Warnings
result2 error
}
EntitleIsolationSegmentToOrganizationsStub func(isoGUID string, orgGUIDs []string) (ccv3.RelationshipList, ccv3.Warnings, error)
entitleIsolationSegmentToOrganizationsMutex sync.RWMutex
entitleIsolationSegmentToOrganizationsArgsForCall []struct {
isoGUID string
orgGUIDs []string
}
entitleIsolationSegmentToOrganizationsReturns struct {
result1 ccv3.RelationshipList
result2 ccv3.Warnings
result3 error
}
entitleIsolationSegmentToOrganizationsReturnsOnCall map[int]struct {
result1 ccv3.RelationshipList
result2 ccv3.Warnings
result3 error
}
GetApplicationDropletCurrentStub func(appGUID string) (ccv3.Droplet, ccv3.Warnings, error)
getApplicationDropletCurrentMutex sync.RWMutex
getApplicationDropletCurrentArgsForCall []struct {
appGUID string
}
getApplicationDropletCurrentReturns struct {
result1 ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
getApplicationDropletCurrentReturnsOnCall map[int]struct {
result1 ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
GetApplicationEnvironmentVariablesStub func(appGUID string) (ccv3.EnvironmentVariableGroups, ccv3.Warnings, error)
getApplicationEnvironmentVariablesMutex sync.RWMutex
getApplicationEnvironmentVariablesArgsForCall []struct {
appGUID string
}
getApplicationEnvironmentVariablesReturns struct {
result1 ccv3.EnvironmentVariableGroups
result2 ccv3.Warnings
result3 error
}
getApplicationEnvironmentVariablesReturnsOnCall map[int]struct {
result1 ccv3.EnvironmentVariableGroups
result2 ccv3.Warnings
result3 error
}
GetApplicationProcessByTypeStub func(appGUID string, processType string) (ccv3.Process, ccv3.Warnings, error)
getApplicationProcessByTypeMutex sync.RWMutex
getApplicationProcessByTypeArgsForCall []struct {
appGUID string
processType string
}
getApplicationProcessByTypeReturns struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
getApplicationProcessByTypeReturnsOnCall map[int]struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
GetApplicationProcessesStub func(appGUID string) ([]ccv3.Process, ccv3.Warnings, error)
getApplicationProcessesMutex sync.RWMutex
getApplicationProcessesArgsForCall []struct {
appGUID string
}
getApplicationProcessesReturns struct {
result1 []ccv3.Process
result2 ccv3.Warnings
result3 error
}
getApplicationProcessesReturnsOnCall map[int]struct {
result1 []ccv3.Process
result2 ccv3.Warnings
result3 error
}
GetApplicationsStub func(query ...ccv3.Query) ([]ccv3.Application, ccv3.Warnings, error)
getApplicationsMutex sync.RWMutex
getApplicationsArgsForCall []struct {
query []ccv3.Query
}
getApplicationsReturns struct {
result1 []ccv3.Application
result2 ccv3.Warnings
result3 error
}
getApplicationsReturnsOnCall map[int]struct {
result1 []ccv3.Application
result2 ccv3.Warnings
result3 error
}
GetApplicationTasksStub func(appGUID string, query ...ccv3.Query) ([]ccv3.Task, ccv3.Warnings, error)
getApplicationTasksMutex sync.RWMutex
getApplicationTasksArgsForCall []struct {
appGUID string
query []ccv3.Query
}
getApplicationTasksReturns struct {
result1 []ccv3.Task
result2 ccv3.Warnings
result3 error
}
getApplicationTasksReturnsOnCall map[int]struct {
result1 []ccv3.Task
result2 ccv3.Warnings
result3 error
}
GetBuildStub func(guid string) (ccv3.Build, ccv3.Warnings, error)
getBuildMutex sync.RWMutex
getBuildArgsForCall []struct {
guid string
}
getBuildReturns struct {
result1 ccv3.Build
result2 ccv3.Warnings
result3 error
}
getBuildReturnsOnCall map[int]struct {
result1 ccv3.Build
result2 ccv3.Warnings
result3 error
}
GetDropletStub func(guid string) (ccv3.Droplet, ccv3.Warnings, error)
getDropletMutex sync.RWMutex
getDropletArgsForCall []struct {
guid string
}
getDropletReturns struct {
result1 ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
getDropletReturnsOnCall map[int]struct {
result1 ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
GetDropletsStub func(query ...ccv3.Query) ([]ccv3.Droplet, ccv3.Warnings, error)
getDropletsMutex sync.RWMutex
getDropletsArgsForCall []struct {
query []ccv3.Query
}
getDropletsReturns struct {
result1 []ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
getDropletsReturnsOnCall map[int]struct {
result1 []ccv3.Droplet
result2 ccv3.Warnings
result3 error
}
GetIsolationSegmentStub func(guid string) (ccv3.IsolationSegment, ccv3.Warnings, error)
getIsolationSegmentMutex sync.RWMutex
getIsolationSegmentArgsForCall []struct {
guid string
}
getIsolationSegmentReturns struct {
result1 ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
getIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
GetIsolationSegmentOrganizationsByIsolationSegmentStub func(isolationSegmentGUID string) ([]ccv3.Organization, ccv3.Warnings, error)
getIsolationSegmentOrganizationsByIsolationSegmentMutex sync.RWMutex
getIsolationSegmentOrganizationsByIsolationSegmentArgsForCall []struct {
isolationSegmentGUID string
}
getIsolationSegmentOrganizationsByIsolationSegmentReturns struct {
result1 []ccv3.Organization
result2 ccv3.Warnings
result3 error
}
getIsolationSegmentOrganizationsByIsolationSegmentReturnsOnCall map[int]struct {
result1 []ccv3.Organization
result2 ccv3.Warnings
result3 error
}
GetIsolationSegmentsStub func(query ...ccv3.Query) ([]ccv3.IsolationSegment, ccv3.Warnings, error)
getIsolationSegmentsMutex sync.RWMutex
getIsolationSegmentsArgsForCall []struct {
query []ccv3.Query
}
getIsolationSegmentsReturns struct {
result1 []ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
getIsolationSegmentsReturnsOnCall map[int]struct {
result1 []ccv3.IsolationSegment
result2 ccv3.Warnings
result3 error
}
GetOrganizationDefaultIsolationSegmentStub func(orgGUID string) (ccv3.Relationship, ccv3.Warnings, error)
getOrganizationDefaultIsolationSegmentMutex sync.RWMutex
getOrganizationDefaultIsolationSegmentArgsForCall []struct {
orgGUID string
}
getOrganizationDefaultIsolationSegmentReturns struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
getOrganizationDefaultIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
GetOrganizationsStub func(query ...ccv3.Query) ([]ccv3.Organization, ccv3.Warnings, error)
getOrganizationsMutex sync.RWMutex
getOrganizationsArgsForCall []struct {
query []ccv3.Query
}
getOrganizationsReturns struct {
result1 []ccv3.Organization
result2 ccv3.Warnings
result3 error
}
getOrganizationsReturnsOnCall map[int]struct {
result1 []ccv3.Organization
result2 ccv3.Warnings
result3 error
}
GetPackageStub func(guid string) (ccv3.Package, ccv3.Warnings, error)
getPackageMutex sync.RWMutex
getPackageArgsForCall []struct {
guid string
}
getPackageReturns struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
getPackageReturnsOnCall map[int]struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
GetPackagesStub func(query ...ccv3.Query) ([]ccv3.Package, ccv3.Warnings, error)
getPackagesMutex sync.RWMutex
getPackagesArgsForCall []struct {
query []ccv3.Query
}
getPackagesReturns struct {
result1 []ccv3.Package
result2 ccv3.Warnings
result3 error
}
getPackagesReturnsOnCall map[int]struct {
result1 []ccv3.Package
result2 ccv3.Warnings
result3 error
}
GetProcessInstancesStub func(processGUID string) ([]ccv3.ProcessInstance, ccv3.Warnings, error)
getProcessInstancesMutex sync.RWMutex
getProcessInstancesArgsForCall []struct {
processGUID string
}
getProcessInstancesReturns struct {
result1 []ccv3.ProcessInstance
result2 ccv3.Warnings
result3 error
}
getProcessInstancesReturnsOnCall map[int]struct {
result1 []ccv3.ProcessInstance
result2 ccv3.Warnings
result3 error
}
GetServiceInstancesStub func(query ...ccv3.Query) ([]ccv3.ServiceInstance, ccv3.Warnings, error)
getServiceInstancesMutex sync.RWMutex
getServiceInstancesArgsForCall []struct {
query []ccv3.Query
}
getServiceInstancesReturns struct {
result1 []ccv3.ServiceInstance
result2 ccv3.Warnings
result3 error
}
getServiceInstancesReturnsOnCall map[int]struct {
result1 []ccv3.ServiceInstance
result2 ccv3.Warnings
result3 error
}
GetSpaceIsolationSegmentStub func(spaceGUID string) (ccv3.Relationship, ccv3.Warnings, error)
getSpaceIsolationSegmentMutex sync.RWMutex
getSpaceIsolationSegmentArgsForCall []struct {
spaceGUID string
}
getSpaceIsolationSegmentReturns struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
getSpaceIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
GetSpacesStub func(query ...ccv3.Query) ([]ccv3.Space, ccv3.Warnings, error)
getSpacesMutex sync.RWMutex
getSpacesArgsForCall []struct {
query []ccv3.Query
}
getSpacesReturns struct {
result1 []ccv3.Space
result2 ccv3.Warnings
result3 error
}
getSpacesReturnsOnCall map[int]struct {
result1 []ccv3.Space
result2 ccv3.Warnings
result3 error
}
PatchApplicationProcessHealthCheckStub func(processGUID string, processHealthCheckType string, processHealthCheckEndpoint string) (ccv3.Process, ccv3.Warnings, error)
patchApplicationProcessHealthCheckMutex sync.RWMutex
patchApplicationProcessHealthCheckArgsForCall []struct {
processGUID string
processHealthCheckType string
processHealthCheckEndpoint string
}
patchApplicationProcessHealthCheckReturns struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
patchApplicationProcessHealthCheckReturnsOnCall map[int]struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}
PatchApplicationUserProvidedEnvironmentVariablesStub func(appGUID string, envVars ccv3.EnvironmentVariables) (ccv3.EnvironmentVariables, ccv3.Warnings, error)
patchApplicationUserProvidedEnvironmentVariablesMutex sync.RWMutex
patchApplicationUserProvidedEnvironmentVariablesArgsForCall []struct {
appGUID string
envVars ccv3.EnvironmentVariables
}
patchApplicationUserProvidedEnvironmentVariablesReturns struct {
result1 ccv3.EnvironmentVariables
result2 ccv3.Warnings
result3 error
}
patchApplicationUserProvidedEnvironmentVariablesReturnsOnCall map[int]struct {
result1 ccv3.EnvironmentVariables
result2 ccv3.Warnings
result3 error
}
PatchOrganizationDefaultIsolationSegmentStub func(orgGUID string, isolationSegmentGUID string) (ccv3.Relationship, ccv3.Warnings, error)
patchOrganizationDefaultIsolationSegmentMutex sync.RWMutex
patchOrganizationDefaultIsolationSegmentArgsForCall []struct {
orgGUID string
isolationSegmentGUID string
}
patchOrganizationDefaultIsolationSegmentReturns struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
patchOrganizationDefaultIsolationSegmentReturnsOnCall map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
PollJobStub func(jobURL string) (ccv3.Warnings, error)
pollJobMutex sync.RWMutex
pollJobArgsForCall []struct {
jobURL string
}
pollJobReturns struct {
result1 ccv3.Warnings
result2 error
}
pollJobReturnsOnCall map[int]struct {
result1 ccv3.Warnings
result2 error
}
RevokeIsolationSegmentFromOrganizationStub func(isolationSegmentGUID string, organizationGUID string) (ccv3.Warnings, error)
revokeIsolationSegmentFromOrganizationMutex sync.RWMutex
revokeIsolationSegmentFromOrganizationArgsForCall []struct {
isolationSegmentGUID string
organizationGUID string
}
revokeIsolationSegmentFromOrganizationReturns struct {
result1 ccv3.Warnings
result2 error
}
revokeIsolationSegmentFromOrganizationReturnsOnCall map[int]struct {
result1 ccv3.Warnings
result2 error
}
SetApplicationDropletStub func(appGUID string, dropletGUID string) (ccv3.Relationship, ccv3.Warnings, error)
setApplicationDropletMutex sync.RWMutex
setApplicationDropletArgsForCall []struct {
appGUID string
dropletGUID string
}
setApplicationDropletReturns struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
setApplicationDropletReturnsOnCall map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}
ShareServiceInstanceToSpacesStub func(serviceInstanceGUID string, spaceGUIDs []string) (ccv3.RelationshipList, ccv3.Warnings, error)
shareServiceInstanceToSpacesMutex sync.RWMutex
shareServiceInstanceToSpacesArgsForCall []struct {
serviceInstanceGUID string
spaceGUIDs []string
}
shareServiceInstanceToSpacesReturns struct {
result1 ccv3.RelationshipList
result2 ccv3.Warnings
result3 error
}
shareServiceInstanceToSpacesReturnsOnCall map[int]struct {
result1 ccv3.RelationshipList
result2 ccv3.Warnings
result3 error
}
StartApplicationStub func(appGUID string) (ccv3.Application, ccv3.Warnings, error)
startApplicationMutex sync.RWMutex
startApplicationArgsForCall []struct {
appGUID string
}
startApplicationReturns struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
startApplicationReturnsOnCall map[int]struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
StopApplicationStub func(appGUID string) (ccv3.Application, ccv3.Warnings, error)
stopApplicationMutex sync.RWMutex
stopApplicationArgsForCall []struct {
appGUID string
}
stopApplicationReturns struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
stopApplicationReturnsOnCall map[int]struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
UnshareServiceInstanceFromSpaceStub func(serviceInstanceGUID string, spaceGUID string) (ccv3.Warnings, error)
unshareServiceInstanceFromSpaceMutex sync.RWMutex
unshareServiceInstanceFromSpaceArgsForCall []struct {
serviceInstanceGUID string
spaceGUID string
}
unshareServiceInstanceFromSpaceReturns struct {
result1 ccv3.Warnings
result2 error
}
unshareServiceInstanceFromSpaceReturnsOnCall map[int]struct {
result1 ccv3.Warnings
result2 error
}
UpdateApplicationStub func(app ccv3.Application) (ccv3.Application, ccv3.Warnings, error)
updateApplicationMutex sync.RWMutex
updateApplicationArgsForCall []struct {
app ccv3.Application
}
updateApplicationReturns struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
updateApplicationReturnsOnCall map[int]struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}
UpdateTaskStub func(taskGUID string) (ccv3.Task, ccv3.Warnings, error)
updateTaskMutex sync.RWMutex
updateTaskArgsForCall []struct {
taskGUID string
}
updateTaskReturns struct {
result1 ccv3.Task
result2 ccv3.Warnings
result3 error
}
updateTaskReturnsOnCall map[int]struct {
result1 ccv3.Task
result2 ccv3.Warnings
result3 error
}
UploadPackageStub func(pkg ccv3.Package, zipFilepath string) (ccv3.Package, ccv3.Warnings, error)
uploadPackageMutex sync.RWMutex
uploadPackageArgsForCall []struct {
pkg ccv3.Package
zipFilepath string
}
uploadPackageReturns struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
uploadPackageReturnsOnCall map[int]struct {
result1 ccv3.Package
result2 ccv3.Warnings
result3 error
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeCloudControllerClient) AppSSHEndpoint() string {
fake.appSSHEndpointMutex.Lock()
ret, specificReturn := fake.appSSHEndpointReturnsOnCall[len(fake.appSSHEndpointArgsForCall)]
fake.appSSHEndpointArgsForCall = append(fake.appSSHEndpointArgsForCall, struct{}{})
fake.recordInvocation("AppSSHEndpoint", []interface{}{})
fake.appSSHEndpointMutex.Unlock()
if fake.AppSSHEndpointStub != nil {
return fake.AppSSHEndpointStub()
}
if specificReturn {
return ret.result1
}
return fake.appSSHEndpointReturns.result1
}
func (fake *FakeCloudControllerClient) AppSSHEndpointCallCount() int {
fake.appSSHEndpointMutex.RLock()
defer fake.appSSHEndpointMutex.RUnlock()
return len(fake.appSSHEndpointArgsForCall)
}
func (fake *FakeCloudControllerClient) AppSSHEndpointReturns(result1 string) {
fake.AppSSHEndpointStub = nil
fake.appSSHEndpointReturns = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) AppSSHEndpointReturnsOnCall(i int, result1 string) {
fake.AppSSHEndpointStub = nil
if fake.appSSHEndpointReturnsOnCall == nil {
fake.appSSHEndpointReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.appSSHEndpointReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) AppSSHHostKeyFingerprint() string {
fake.appSSHHostKeyFingerprintMutex.Lock()
ret, specificReturn := fake.appSSHHostKeyFingerprintReturnsOnCall[len(fake.appSSHHostKeyFingerprintArgsForCall)]
fake.appSSHHostKeyFingerprintArgsForCall = append(fake.appSSHHostKeyFingerprintArgsForCall, struct{}{})
fake.recordInvocation("AppSSHHostKeyFingerprint", []interface{}{})
fake.appSSHHostKeyFingerprintMutex.Unlock()
if fake.AppSSHHostKeyFingerprintStub != nil {
return fake.AppSSHHostKeyFingerprintStub()
}
if specificReturn {
return ret.result1
}
return fake.appSSHHostKeyFingerprintReturns.result1
}
func (fake *FakeCloudControllerClient) AppSSHHostKeyFingerprintCallCount() int {
fake.appSSHHostKeyFingerprintMutex.RLock()
defer fake.appSSHHostKeyFingerprintMutex.RUnlock()
return len(fake.appSSHHostKeyFingerprintArgsForCall)
}
func (fake *FakeCloudControllerClient) AppSSHHostKeyFingerprintReturns(result1 string) {
fake.AppSSHHostKeyFingerprintStub = nil
fake.appSSHHostKeyFingerprintReturns = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) AppSSHHostKeyFingerprintReturnsOnCall(i int, result1 string) {
fake.AppSSHHostKeyFingerprintStub = nil
if fake.appSSHHostKeyFingerprintReturnsOnCall == nil {
fake.appSSHHostKeyFingerprintReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.appSSHHostKeyFingerprintReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) AssignSpaceToIsolationSegment(spaceGUID string, isolationSegmentGUID string) (ccv3.Relationship, ccv3.Warnings, error) {
fake.assignSpaceToIsolationSegmentMutex.Lock()
ret, specificReturn := fake.assignSpaceToIsolationSegmentReturnsOnCall[len(fake.assignSpaceToIsolationSegmentArgsForCall)]
fake.assignSpaceToIsolationSegmentArgsForCall = append(fake.assignSpaceToIsolationSegmentArgsForCall, struct {
spaceGUID string
isolationSegmentGUID string
}{spaceGUID, isolationSegmentGUID})
fake.recordInvocation("AssignSpaceToIsolationSegment", []interface{}{spaceGUID, isolationSegmentGUID})
fake.assignSpaceToIsolationSegmentMutex.Unlock()
if fake.AssignSpaceToIsolationSegmentStub != nil {
return fake.AssignSpaceToIsolationSegmentStub(spaceGUID, isolationSegmentGUID)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
return fake.assignSpaceToIsolationSegmentReturns.result1, fake.assignSpaceToIsolationSegmentReturns.result2, fake.assignSpaceToIsolationSegmentReturns.result3
}
func (fake *FakeCloudControllerClient) AssignSpaceToIsolationSegmentCallCount() int {
fake.assignSpaceToIsolationSegmentMutex.RLock()
defer fake.assignSpaceToIsolationSegmentMutex.RUnlock()
return len(fake.assignSpaceToIsolationSegmentArgsForCall)
}
func (fake *FakeCloudControllerClient) AssignSpaceToIsolationSegmentArgsForCall(i int) (string, string) {
fake.assignSpaceToIsolationSegmentMutex.RLock()
defer fake.assignSpaceToIsolationSegmentMutex.RUnlock()
return fake.assignSpaceToIsolationSegmentArgsForCall[i].spaceGUID, fake.assignSpaceToIsolationSegmentArgsForCall[i].isolationSegmentGUID
}
func (fake *FakeCloudControllerClient) AssignSpaceToIsolationSegmentReturns(result1 ccv3.Relationship, result2 ccv3.Warnings, result3 error) {
fake.AssignSpaceToIsolationSegmentStub = nil
fake.assignSpaceToIsolationSegmentReturns = struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) AssignSpaceToIsolationSegmentReturnsOnCall(i int, result1 ccv3.Relationship, result2 ccv3.Warnings, result3 error) {
fake.AssignSpaceToIsolationSegmentStub = nil
if fake.assignSpaceToIsolationSegmentReturnsOnCall == nil {
fake.assignSpaceToIsolationSegmentReturnsOnCall = make(map[int]struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
})
}
fake.assignSpaceToIsolationSegmentReturnsOnCall[i] = struct {
result1 ccv3.Relationship
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) CloudControllerAPIVersion() string {
fake.cloudControllerAPIVersionMutex.Lock()
ret, specificReturn := fake.cloudControllerAPIVersionReturnsOnCall[len(fake.cloudControllerAPIVersionArgsForCall)]
fake.cloudControllerAPIVersionArgsForCall = append(fake.cloudControllerAPIVersionArgsForCall, struct{}{})
fake.recordInvocation("CloudControllerAPIVersion", []interface{}{})
fake.cloudControllerAPIVersionMutex.Unlock()
if fake.CloudControllerAPIVersionStub != nil {
return fake.CloudControllerAPIVersionStub()
}
if specificReturn {
return ret.result1
}
return fake.cloudControllerAPIVersionReturns.result1
}
func (fake *FakeCloudControllerClient) CloudControllerAPIVersionCallCount() int {
fake.cloudControllerAPIVersionMutex.RLock()
defer fake.cloudControllerAPIVersionMutex.RUnlock()
return len(fake.cloudControllerAPIVersionArgsForCall)
}
func (fake *FakeCloudControllerClient) CloudControllerAPIVersionReturns(result1 string) {
fake.CloudControllerAPIVersionStub = nil
fake.cloudControllerAPIVersionReturns = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) CloudControllerAPIVersionReturnsOnCall(i int, result1 string) {
fake.CloudControllerAPIVersionStub = nil
if fake.cloudControllerAPIVersionReturnsOnCall == nil {
fake.cloudControllerAPIVersionReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.cloudControllerAPIVersionReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeCloudControllerClient) CreateApplication(app ccv3.Application) (ccv3.Application, ccv3.Warnings, error) {
fake.createApplicationMutex.Lock()
ret, specificReturn := fake.createApplicationReturnsOnCall[len(fake.createApplicationArgsForCall)]
fake.createApplicationArgsForCall = append(fake.createApplicationArgsForCall, struct {
app ccv3.Application
}{app})
fake.recordInvocation("CreateApplication", []interface{}{app})
fake.createApplicationMutex.Unlock()
if fake.CreateApplicationStub != nil {
return fake.CreateApplicationStub(app)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
return fake.createApplicationReturns.result1, fake.createApplicationReturns.result2, fake.createApplicationReturns.result3
}
func (fake *FakeCloudControllerClient) CreateApplicationCallCount() int {
fake.createApplicationMutex.RLock()
defer fake.createApplicationMutex.RUnlock()
return len(fake.createApplicationArgsForCall)
}
func (fake *FakeCloudControllerClient) CreateApplicationArgsForCall(i int) ccv3.Application {
fake.createApplicationMutex.RLock()
defer fake.createApplicationMutex.RUnlock()
return fake.createApplicationArgsForCall[i].app
}
func (fake *FakeCloudControllerClient) CreateApplicationReturns(result1 ccv3.Application, result2 ccv3.Warnings, result3 error) {
fake.CreateApplicationStub = nil
fake.createApplicationReturns = struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) CreateApplicationReturnsOnCall(i int, result1 ccv3.Application, result2 ccv3.Warnings, result3 error) {
fake.CreateApplicationStub = nil
if fake.createApplicationReturnsOnCall == nil {
fake.createApplicationReturnsOnCall = make(map[int]struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
})
}
fake.createApplicationReturnsOnCall[i] = struct {
result1 ccv3.Application
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) CreateApplicationProcessScale(appGUID string, process ccv3.Process) (ccv3.Process, ccv3.Warnings, error) {
fake.createApplicationProcessScaleMutex.Lock()
ret, specificReturn := fake.createApplicationProcessScaleReturnsOnCall[len(fake.createApplicationProcessScaleArgsForCall)]
fake.createApplicationProcessScaleArgsForCall = append(fake.createApplicationProcessScaleArgsForCall, struct {
appGUID string
process ccv3.Process
}{appGUID, process})
fake.recordInvocation("CreateApplicationProcessScale", []interface{}{appGUID, process})
fake.createApplicationProcessScaleMutex.Unlock()
if fake.CreateApplicationProcessScaleStub != nil {
return fake.CreateApplicationProcessScaleStub(appGUID, process)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
return fake.createApplicationProcessScaleReturns.result1, fake.createApplicationProcessScaleReturns.result2, fake.createApplicationProcessScaleReturns.result3
}
func (fake *FakeCloudControllerClient) CreateApplicationProcessScaleCallCount() int {
fake.createApplicationProcessScaleMutex.RLock()
defer fake.createApplicationProcessScaleMutex.RUnlock()
return len(fake.createApplicationProcessScaleArgsForCall)
}
func (fake *FakeCloudControllerClient) CreateApplicationProcessScaleArgsForCall(i int) (string, ccv3.Process) {
fake.createApplicationProcessScaleMutex.RLock()
defer fake.createApplicationProcessScaleMutex.RUnlock()
return fake.createApplicationProcessScaleArgsForCall[i].appGUID, fake.createApplicationProcessScaleArgsForCall[i].process
}
func (fake *FakeCloudControllerClient) CreateApplicationProcessScaleReturns(result1 ccv3.Process, result2 ccv3.Warnings, result3 error) {
fake.CreateApplicationProcessScaleStub = nil
fake.createApplicationProcessScaleReturns = struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) CreateApplicationProcessScaleReturnsOnCall(i int, result1 ccv3.Process, result2 ccv3.Warnings, result3 error) {
fake.CreateApplicationProcessScaleStub = nil
if fake.createApplicationProcessScaleReturnsOnCall == nil {
fake.createApplicationProcessScaleReturnsOnCall = make(map[int]struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
})
}
fake.createApplicationProcessScaleReturnsOnCall[i] = struct {
result1 ccv3.Process
result2 ccv3.Warnings
result3 error
}{result1, result2, result3}
}
func (fake *FakeCloudControllerClient) CreateApplicationTask(appGUID string, task ccv3.Task) (ccv3.Task, ccv3.Warnings, error) {
fake.createApplicationTaskMutex.Lock()
ret, specificReturn := fake.createApplicationTaskReturnsOnCall[len(fake.createApplicationTaskArgsForCall)]
fake.createApplicationTaskArgsForCall = append(fake.createApplicationTaskArgsForCall, struct {
appGUID string
task ccv3.Task
}{appGUID, task})