forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_config.go
799 lines (731 loc) · 25.4 KB
/
fake_config.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
// Code generated by counterfeiter. DO NOT EDIT.
package v2actionfakes
import (
"sync"
"time"
"code.cloudfoundry.org/cli/actor/v2action"
)
type FakeConfig struct {
AccessTokenStub func() string
accessTokenMutex sync.RWMutex
accessTokenArgsForCall []struct{}
accessTokenReturns struct {
result1 string
}
accessTokenReturnsOnCall map[int]struct {
result1 string
}
PollingIntervalStub func() time.Duration
pollingIntervalMutex sync.RWMutex
pollingIntervalArgsForCall []struct{}
pollingIntervalReturns struct {
result1 time.Duration
}
pollingIntervalReturnsOnCall map[int]struct {
result1 time.Duration
}
RefreshTokenStub func() string
refreshTokenMutex sync.RWMutex
refreshTokenArgsForCall []struct{}
refreshTokenReturns struct {
result1 string
}
refreshTokenReturnsOnCall map[int]struct {
result1 string
}
SetAccessTokenStub func(accessToken string)
setAccessTokenMutex sync.RWMutex
setAccessTokenArgsForCall []struct {
accessToken string
}
SetRefreshTokenStub func(refreshToken string)
setRefreshTokenMutex sync.RWMutex
setRefreshTokenArgsForCall []struct {
refreshToken string
}
SetTargetInformationStub func(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool)
setTargetInformationMutex sync.RWMutex
setTargetInformationArgsForCall []struct {
api string
apiVersion string
auth string
minCLIVersion string
doppler string
routing string
skipSSLValidation bool
}
SetTokenInformationStub func(accessToken string, refreshToken string, sshOAuthClient string)
setTokenInformationMutex sync.RWMutex
setTokenInformationArgsForCall []struct {
accessToken string
refreshToken string
sshOAuthClient string
}
SetUAAClientCredentialsStub func(client string, clientSecret string)
setUAAClientCredentialsMutex sync.RWMutex
setUAAClientCredentialsArgsForCall []struct {
client string
clientSecret string
}
SetUAAGrantTypeStub func(uaaGrantType string)
setUAAGrantTypeMutex sync.RWMutex
setUAAGrantTypeArgsForCall []struct {
uaaGrantType string
}
SkipSSLValidationStub func() bool
skipSSLValidationMutex sync.RWMutex
skipSSLValidationArgsForCall []struct{}
skipSSLValidationReturns struct {
result1 bool
}
skipSSLValidationReturnsOnCall map[int]struct {
result1 bool
}
SSHOAuthClientStub func() string
sSHOAuthClientMutex sync.RWMutex
sSHOAuthClientArgsForCall []struct{}
sSHOAuthClientReturns struct {
result1 string
}
sSHOAuthClientReturnsOnCall map[int]struct {
result1 string
}
StagingTimeoutStub func() time.Duration
stagingTimeoutMutex sync.RWMutex
stagingTimeoutArgsForCall []struct{}
stagingTimeoutReturns struct {
result1 time.Duration
}
stagingTimeoutReturnsOnCall map[int]struct {
result1 time.Duration
}
StartupTimeoutStub func() time.Duration
startupTimeoutMutex sync.RWMutex
startupTimeoutArgsForCall []struct{}
startupTimeoutReturns struct {
result1 time.Duration
}
startupTimeoutReturnsOnCall map[int]struct {
result1 time.Duration
}
TargetStub func() string
targetMutex sync.RWMutex
targetArgsForCall []struct{}
targetReturns struct {
result1 string
}
targetReturnsOnCall map[int]struct {
result1 string
}
UAAGrantTypeStub func() string
uAAGrantTypeMutex sync.RWMutex
uAAGrantTypeArgsForCall []struct{}
uAAGrantTypeReturns struct {
result1 string
}
uAAGrantTypeReturnsOnCall map[int]struct {
result1 string
}
UnsetOrganizationAndSpaceInformationStub func()
unsetOrganizationAndSpaceInformationMutex sync.RWMutex
unsetOrganizationAndSpaceInformationArgsForCall []struct{}
UnsetSpaceInformationStub func()
unsetSpaceInformationMutex sync.RWMutex
unsetSpaceInformationArgsForCall []struct{}
VerboseStub func() (bool, []string)
verboseMutex sync.RWMutex
verboseArgsForCall []struct{}
verboseReturns struct {
result1 bool
result2 []string
}
verboseReturnsOnCall map[int]struct {
result1 bool
result2 []string
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeConfig) AccessToken() string {
fake.accessTokenMutex.Lock()
ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)]
fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct{}{})
fake.recordInvocation("AccessToken", []interface{}{})
fake.accessTokenMutex.Unlock()
if fake.AccessTokenStub != nil {
return fake.AccessTokenStub()
}
if specificReturn {
return ret.result1
}
return fake.accessTokenReturns.result1
}
func (fake *FakeConfig) AccessTokenCallCount() int {
fake.accessTokenMutex.RLock()
defer fake.accessTokenMutex.RUnlock()
return len(fake.accessTokenArgsForCall)
}
func (fake *FakeConfig) AccessTokenReturns(result1 string) {
fake.AccessTokenStub = nil
fake.accessTokenReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) {
fake.AccessTokenStub = nil
if fake.accessTokenReturnsOnCall == nil {
fake.accessTokenReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.accessTokenReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) PollingInterval() time.Duration {
fake.pollingIntervalMutex.Lock()
ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)]
fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct{}{})
fake.recordInvocation("PollingInterval", []interface{}{})
fake.pollingIntervalMutex.Unlock()
if fake.PollingIntervalStub != nil {
return fake.PollingIntervalStub()
}
if specificReturn {
return ret.result1
}
return fake.pollingIntervalReturns.result1
}
func (fake *FakeConfig) PollingIntervalCallCount() int {
fake.pollingIntervalMutex.RLock()
defer fake.pollingIntervalMutex.RUnlock()
return len(fake.pollingIntervalArgsForCall)
}
func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) {
fake.PollingIntervalStub = nil
fake.pollingIntervalReturns = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) {
fake.PollingIntervalStub = nil
if fake.pollingIntervalReturnsOnCall == nil {
fake.pollingIntervalReturnsOnCall = make(map[int]struct {
result1 time.Duration
})
}
fake.pollingIntervalReturnsOnCall[i] = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) RefreshToken() string {
fake.refreshTokenMutex.Lock()
ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)]
fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct{}{})
fake.recordInvocation("RefreshToken", []interface{}{})
fake.refreshTokenMutex.Unlock()
if fake.RefreshTokenStub != nil {
return fake.RefreshTokenStub()
}
if specificReturn {
return ret.result1
}
return fake.refreshTokenReturns.result1
}
func (fake *FakeConfig) RefreshTokenCallCount() int {
fake.refreshTokenMutex.RLock()
defer fake.refreshTokenMutex.RUnlock()
return len(fake.refreshTokenArgsForCall)
}
func (fake *FakeConfig) RefreshTokenReturns(result1 string) {
fake.RefreshTokenStub = nil
fake.refreshTokenReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) {
fake.RefreshTokenStub = nil
if fake.refreshTokenReturnsOnCall == nil {
fake.refreshTokenReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.refreshTokenReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) SetAccessToken(accessToken string) {
fake.setAccessTokenMutex.Lock()
fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct {
accessToken string
}{accessToken})
fake.recordInvocation("SetAccessToken", []interface{}{accessToken})
fake.setAccessTokenMutex.Unlock()
if fake.SetAccessTokenStub != nil {
fake.SetAccessTokenStub(accessToken)
}
}
func (fake *FakeConfig) SetAccessTokenCallCount() int {
fake.setAccessTokenMutex.RLock()
defer fake.setAccessTokenMutex.RUnlock()
return len(fake.setAccessTokenArgsForCall)
}
func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string {
fake.setAccessTokenMutex.RLock()
defer fake.setAccessTokenMutex.RUnlock()
return fake.setAccessTokenArgsForCall[i].accessToken
}
func (fake *FakeConfig) SetRefreshToken(refreshToken string) {
fake.setRefreshTokenMutex.Lock()
fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct {
refreshToken string
}{refreshToken})
fake.recordInvocation("SetRefreshToken", []interface{}{refreshToken})
fake.setRefreshTokenMutex.Unlock()
if fake.SetRefreshTokenStub != nil {
fake.SetRefreshTokenStub(refreshToken)
}
}
func (fake *FakeConfig) SetRefreshTokenCallCount() int {
fake.setRefreshTokenMutex.RLock()
defer fake.setRefreshTokenMutex.RUnlock()
return len(fake.setRefreshTokenArgsForCall)
}
func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string {
fake.setRefreshTokenMutex.RLock()
defer fake.setRefreshTokenMutex.RUnlock()
return fake.setRefreshTokenArgsForCall[i].refreshToken
}
func (fake *FakeConfig) SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) {
fake.setTargetInformationMutex.Lock()
fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct {
api string
apiVersion string
auth string
minCLIVersion string
doppler string
routing string
skipSSLValidation bool
}{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation})
fake.recordInvocation("SetTargetInformation", []interface{}{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation})
fake.setTargetInformationMutex.Unlock()
if fake.SetTargetInformationStub != nil {
fake.SetTargetInformationStub(api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation)
}
}
func (fake *FakeConfig) SetTargetInformationCallCount() int {
fake.setTargetInformationMutex.RLock()
defer fake.setTargetInformationMutex.RUnlock()
return len(fake.setTargetInformationArgsForCall)
}
func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, bool) {
fake.setTargetInformationMutex.RLock()
defer fake.setTargetInformationMutex.RUnlock()
return fake.setTargetInformationArgsForCall[i].api, fake.setTargetInformationArgsForCall[i].apiVersion, fake.setTargetInformationArgsForCall[i].auth, fake.setTargetInformationArgsForCall[i].minCLIVersion, fake.setTargetInformationArgsForCall[i].doppler, fake.setTargetInformationArgsForCall[i].routing, fake.setTargetInformationArgsForCall[i].skipSSLValidation
}
func (fake *FakeConfig) SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string) {
fake.setTokenInformationMutex.Lock()
fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct {
accessToken string
refreshToken string
sshOAuthClient string
}{accessToken, refreshToken, sshOAuthClient})
fake.recordInvocation("SetTokenInformation", []interface{}{accessToken, refreshToken, sshOAuthClient})
fake.setTokenInformationMutex.Unlock()
if fake.SetTokenInformationStub != nil {
fake.SetTokenInformationStub(accessToken, refreshToken, sshOAuthClient)
}
}
func (fake *FakeConfig) SetTokenInformationCallCount() int {
fake.setTokenInformationMutex.RLock()
defer fake.setTokenInformationMutex.RUnlock()
return len(fake.setTokenInformationArgsForCall)
}
func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) {
fake.setTokenInformationMutex.RLock()
defer fake.setTokenInformationMutex.RUnlock()
return fake.setTokenInformationArgsForCall[i].accessToken, fake.setTokenInformationArgsForCall[i].refreshToken, fake.setTokenInformationArgsForCall[i].sshOAuthClient
}
func (fake *FakeConfig) SetUAAClientCredentials(client string, clientSecret string) {
fake.setUAAClientCredentialsMutex.Lock()
fake.setUAAClientCredentialsArgsForCall = append(fake.setUAAClientCredentialsArgsForCall, struct {
client string
clientSecret string
}{client, clientSecret})
fake.recordInvocation("SetUAAClientCredentials", []interface{}{client, clientSecret})
fake.setUAAClientCredentialsMutex.Unlock()
if fake.SetUAAClientCredentialsStub != nil {
fake.SetUAAClientCredentialsStub(client, clientSecret)
}
}
func (fake *FakeConfig) SetUAAClientCredentialsCallCount() int {
fake.setUAAClientCredentialsMutex.RLock()
defer fake.setUAAClientCredentialsMutex.RUnlock()
return len(fake.setUAAClientCredentialsArgsForCall)
}
func (fake *FakeConfig) SetUAAClientCredentialsArgsForCall(i int) (string, string) {
fake.setUAAClientCredentialsMutex.RLock()
defer fake.setUAAClientCredentialsMutex.RUnlock()
return fake.setUAAClientCredentialsArgsForCall[i].client, fake.setUAAClientCredentialsArgsForCall[i].clientSecret
}
func (fake *FakeConfig) SetUAAGrantType(uaaGrantType string) {
fake.setUAAGrantTypeMutex.Lock()
fake.setUAAGrantTypeArgsForCall = append(fake.setUAAGrantTypeArgsForCall, struct {
uaaGrantType string
}{uaaGrantType})
fake.recordInvocation("SetUAAGrantType", []interface{}{uaaGrantType})
fake.setUAAGrantTypeMutex.Unlock()
if fake.SetUAAGrantTypeStub != nil {
fake.SetUAAGrantTypeStub(uaaGrantType)
}
}
func (fake *FakeConfig) SetUAAGrantTypeCallCount() int {
fake.setUAAGrantTypeMutex.RLock()
defer fake.setUAAGrantTypeMutex.RUnlock()
return len(fake.setUAAGrantTypeArgsForCall)
}
func (fake *FakeConfig) SetUAAGrantTypeArgsForCall(i int) string {
fake.setUAAGrantTypeMutex.RLock()
defer fake.setUAAGrantTypeMutex.RUnlock()
return fake.setUAAGrantTypeArgsForCall[i].uaaGrantType
}
func (fake *FakeConfig) SkipSSLValidation() bool {
fake.skipSSLValidationMutex.Lock()
ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)]
fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct{}{})
fake.recordInvocation("SkipSSLValidation", []interface{}{})
fake.skipSSLValidationMutex.Unlock()
if fake.SkipSSLValidationStub != nil {
return fake.SkipSSLValidationStub()
}
if specificReturn {
return ret.result1
}
return fake.skipSSLValidationReturns.result1
}
func (fake *FakeConfig) SkipSSLValidationCallCount() int {
fake.skipSSLValidationMutex.RLock()
defer fake.skipSSLValidationMutex.RUnlock()
return len(fake.skipSSLValidationArgsForCall)
}
func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) {
fake.SkipSSLValidationStub = nil
fake.skipSSLValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) {
fake.SkipSSLValidationStub = nil
if fake.skipSSLValidationReturnsOnCall == nil {
fake.skipSSLValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.skipSSLValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *FakeConfig) SSHOAuthClient() string {
fake.sSHOAuthClientMutex.Lock()
ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)]
fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct{}{})
fake.recordInvocation("SSHOAuthClient", []interface{}{})
fake.sSHOAuthClientMutex.Unlock()
if fake.SSHOAuthClientStub != nil {
return fake.SSHOAuthClientStub()
}
if specificReturn {
return ret.result1
}
return fake.sSHOAuthClientReturns.result1
}
func (fake *FakeConfig) SSHOAuthClientCallCount() int {
fake.sSHOAuthClientMutex.RLock()
defer fake.sSHOAuthClientMutex.RUnlock()
return len(fake.sSHOAuthClientArgsForCall)
}
func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) {
fake.SSHOAuthClientStub = nil
fake.sSHOAuthClientReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) {
fake.SSHOAuthClientStub = nil
if fake.sSHOAuthClientReturnsOnCall == nil {
fake.sSHOAuthClientReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.sSHOAuthClientReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) StagingTimeout() time.Duration {
fake.stagingTimeoutMutex.Lock()
ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)]
fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct{}{})
fake.recordInvocation("StagingTimeout", []interface{}{})
fake.stagingTimeoutMutex.Unlock()
if fake.StagingTimeoutStub != nil {
return fake.StagingTimeoutStub()
}
if specificReturn {
return ret.result1
}
return fake.stagingTimeoutReturns.result1
}
func (fake *FakeConfig) StagingTimeoutCallCount() int {
fake.stagingTimeoutMutex.RLock()
defer fake.stagingTimeoutMutex.RUnlock()
return len(fake.stagingTimeoutArgsForCall)
}
func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) {
fake.StagingTimeoutStub = nil
fake.stagingTimeoutReturns = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) {
fake.StagingTimeoutStub = nil
if fake.stagingTimeoutReturnsOnCall == nil {
fake.stagingTimeoutReturnsOnCall = make(map[int]struct {
result1 time.Duration
})
}
fake.stagingTimeoutReturnsOnCall[i] = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) StartupTimeout() time.Duration {
fake.startupTimeoutMutex.Lock()
ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)]
fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct{}{})
fake.recordInvocation("StartupTimeout", []interface{}{})
fake.startupTimeoutMutex.Unlock()
if fake.StartupTimeoutStub != nil {
return fake.StartupTimeoutStub()
}
if specificReturn {
return ret.result1
}
return fake.startupTimeoutReturns.result1
}
func (fake *FakeConfig) StartupTimeoutCallCount() int {
fake.startupTimeoutMutex.RLock()
defer fake.startupTimeoutMutex.RUnlock()
return len(fake.startupTimeoutArgsForCall)
}
func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) {
fake.StartupTimeoutStub = nil
fake.startupTimeoutReturns = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) {
fake.StartupTimeoutStub = nil
if fake.startupTimeoutReturnsOnCall == nil {
fake.startupTimeoutReturnsOnCall = make(map[int]struct {
result1 time.Duration
})
}
fake.startupTimeoutReturnsOnCall[i] = struct {
result1 time.Duration
}{result1}
}
func (fake *FakeConfig) Target() string {
fake.targetMutex.Lock()
ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)]
fake.targetArgsForCall = append(fake.targetArgsForCall, struct{}{})
fake.recordInvocation("Target", []interface{}{})
fake.targetMutex.Unlock()
if fake.TargetStub != nil {
return fake.TargetStub()
}
if specificReturn {
return ret.result1
}
return fake.targetReturns.result1
}
func (fake *FakeConfig) TargetCallCount() int {
fake.targetMutex.RLock()
defer fake.targetMutex.RUnlock()
return len(fake.targetArgsForCall)
}
func (fake *FakeConfig) TargetReturns(result1 string) {
fake.TargetStub = nil
fake.targetReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) {
fake.TargetStub = nil
if fake.targetReturnsOnCall == nil {
fake.targetReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.targetReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) UAAGrantType() string {
fake.uAAGrantTypeMutex.Lock()
ret, specificReturn := fake.uAAGrantTypeReturnsOnCall[len(fake.uAAGrantTypeArgsForCall)]
fake.uAAGrantTypeArgsForCall = append(fake.uAAGrantTypeArgsForCall, struct{}{})
fake.recordInvocation("UAAGrantType", []interface{}{})
fake.uAAGrantTypeMutex.Unlock()
if fake.UAAGrantTypeStub != nil {
return fake.UAAGrantTypeStub()
}
if specificReturn {
return ret.result1
}
return fake.uAAGrantTypeReturns.result1
}
func (fake *FakeConfig) UAAGrantTypeCallCount() int {
fake.uAAGrantTypeMutex.RLock()
defer fake.uAAGrantTypeMutex.RUnlock()
return len(fake.uAAGrantTypeArgsForCall)
}
func (fake *FakeConfig) UAAGrantTypeReturns(result1 string) {
fake.UAAGrantTypeStub = nil
fake.uAAGrantTypeReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) UAAGrantTypeReturnsOnCall(i int, result1 string) {
fake.UAAGrantTypeStub = nil
if fake.uAAGrantTypeReturnsOnCall == nil {
fake.uAAGrantTypeReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.uAAGrantTypeReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConfig) UnsetOrganizationAndSpaceInformation() {
fake.unsetOrganizationAndSpaceInformationMutex.Lock()
fake.unsetOrganizationAndSpaceInformationArgsForCall = append(fake.unsetOrganizationAndSpaceInformationArgsForCall, struct{}{})
fake.recordInvocation("UnsetOrganizationAndSpaceInformation", []interface{}{})
fake.unsetOrganizationAndSpaceInformationMutex.Unlock()
if fake.UnsetOrganizationAndSpaceInformationStub != nil {
fake.UnsetOrganizationAndSpaceInformationStub()
}
}
func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCallCount() int {
fake.unsetOrganizationAndSpaceInformationMutex.RLock()
defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock()
return len(fake.unsetOrganizationAndSpaceInformationArgsForCall)
}
func (fake *FakeConfig) UnsetSpaceInformation() {
fake.unsetSpaceInformationMutex.Lock()
fake.unsetSpaceInformationArgsForCall = append(fake.unsetSpaceInformationArgsForCall, struct{}{})
fake.recordInvocation("UnsetSpaceInformation", []interface{}{})
fake.unsetSpaceInformationMutex.Unlock()
if fake.UnsetSpaceInformationStub != nil {
fake.UnsetSpaceInformationStub()
}
}
func (fake *FakeConfig) UnsetSpaceInformationCallCount() int {
fake.unsetSpaceInformationMutex.RLock()
defer fake.unsetSpaceInformationMutex.RUnlock()
return len(fake.unsetSpaceInformationArgsForCall)
}
func (fake *FakeConfig) Verbose() (bool, []string) {
fake.verboseMutex.Lock()
ret, specificReturn := fake.verboseReturnsOnCall[len(fake.verboseArgsForCall)]
fake.verboseArgsForCall = append(fake.verboseArgsForCall, struct{}{})
fake.recordInvocation("Verbose", []interface{}{})
fake.verboseMutex.Unlock()
if fake.VerboseStub != nil {
return fake.VerboseStub()
}
if specificReturn {
return ret.result1, ret.result2
}
return fake.verboseReturns.result1, fake.verboseReturns.result2
}
func (fake *FakeConfig) VerboseCallCount() int {
fake.verboseMutex.RLock()
defer fake.verboseMutex.RUnlock()
return len(fake.verboseArgsForCall)
}
func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string) {
fake.VerboseStub = nil
fake.verboseReturns = struct {
result1 bool
result2 []string
}{result1, result2}
}
func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string) {
fake.VerboseStub = nil
if fake.verboseReturnsOnCall == nil {
fake.verboseReturnsOnCall = make(map[int]struct {
result1 bool
result2 []string
})
}
fake.verboseReturnsOnCall[i] = struct {
result1 bool
result2 []string
}{result1, result2}
}
func (fake *FakeConfig) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.accessTokenMutex.RLock()
defer fake.accessTokenMutex.RUnlock()
fake.pollingIntervalMutex.RLock()
defer fake.pollingIntervalMutex.RUnlock()
fake.refreshTokenMutex.RLock()
defer fake.refreshTokenMutex.RUnlock()
fake.setAccessTokenMutex.RLock()
defer fake.setAccessTokenMutex.RUnlock()
fake.setRefreshTokenMutex.RLock()
defer fake.setRefreshTokenMutex.RUnlock()
fake.setTargetInformationMutex.RLock()
defer fake.setTargetInformationMutex.RUnlock()
fake.setTokenInformationMutex.RLock()
defer fake.setTokenInformationMutex.RUnlock()
fake.setUAAClientCredentialsMutex.RLock()
defer fake.setUAAClientCredentialsMutex.RUnlock()
fake.setUAAGrantTypeMutex.RLock()
defer fake.setUAAGrantTypeMutex.RUnlock()
fake.skipSSLValidationMutex.RLock()
defer fake.skipSSLValidationMutex.RUnlock()
fake.sSHOAuthClientMutex.RLock()
defer fake.sSHOAuthClientMutex.RUnlock()
fake.stagingTimeoutMutex.RLock()
defer fake.stagingTimeoutMutex.RUnlock()
fake.startupTimeoutMutex.RLock()
defer fake.startupTimeoutMutex.RUnlock()
fake.targetMutex.RLock()
defer fake.targetMutex.RUnlock()
fake.uAAGrantTypeMutex.RLock()
defer fake.uAAGrantTypeMutex.RUnlock()
fake.unsetOrganizationAndSpaceInformationMutex.RLock()
defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock()
fake.unsetSpaceInformationMutex.RLock()
defer fake.unsetSpaceInformationMutex.RUnlock()
fake.verboseMutex.RLock()
defer fake.verboseMutex.RUnlock()
copiedInvocations := map[string][][]interface{}{}
for key, value := range fake.invocations {
copiedInvocations[key] = value
}
return copiedInvocations
}
func (fake *FakeConfig) recordInvocation(key string, args []interface{}) {
fake.invocationsMutex.Lock()
defer fake.invocationsMutex.Unlock()
if fake.invocations == nil {
fake.invocations = map[string][][]interface{}{}
}
if fake.invocations[key] == nil {
fake.invocations[key] = [][]interface{}{}
}
fake.invocations[key] = append(fake.invocations[key], args)
}
var _ v2action.Config = new(FakeConfig)