github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7action/v7actionfakes/fake_config.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v7actionfakes 3 4 import ( 5 "sync" 6 "time" 7 8 "code.cloudfoundry.org/cli/actor/v7action" 9 "code.cloudfoundry.org/cli/util/configv3" 10 ) 11 12 type FakeConfig struct { 13 APIVersionStub func() string 14 aPIVersionMutex sync.RWMutex 15 aPIVersionArgsForCall []struct { 16 } 17 aPIVersionReturns struct { 18 result1 string 19 } 20 aPIVersionReturnsOnCall map[int]struct { 21 result1 string 22 } 23 AccessTokenStub func() string 24 accessTokenMutex sync.RWMutex 25 accessTokenArgsForCall []struct { 26 } 27 accessTokenReturns struct { 28 result1 string 29 } 30 accessTokenReturnsOnCall map[int]struct { 31 result1 string 32 } 33 CurrentUserStub func() (configv3.User, error) 34 currentUserMutex sync.RWMutex 35 currentUserArgsForCall []struct { 36 } 37 currentUserReturns struct { 38 result1 configv3.User 39 result2 error 40 } 41 currentUserReturnsOnCall map[int]struct { 42 result1 configv3.User 43 result2 error 44 } 45 DialTimeoutStub func() time.Duration 46 dialTimeoutMutex sync.RWMutex 47 dialTimeoutArgsForCall []struct { 48 } 49 dialTimeoutReturns struct { 50 result1 time.Duration 51 } 52 dialTimeoutReturnsOnCall map[int]struct { 53 result1 time.Duration 54 } 55 IsCFOnK8sStub func() bool 56 isCFOnK8sMutex sync.RWMutex 57 isCFOnK8sArgsForCall []struct { 58 } 59 isCFOnK8sReturns struct { 60 result1 bool 61 } 62 isCFOnK8sReturnsOnCall map[int]struct { 63 result1 bool 64 } 65 PollingIntervalStub func() time.Duration 66 pollingIntervalMutex sync.RWMutex 67 pollingIntervalArgsForCall []struct { 68 } 69 pollingIntervalReturns struct { 70 result1 time.Duration 71 } 72 pollingIntervalReturnsOnCall map[int]struct { 73 result1 time.Duration 74 } 75 RefreshTokenStub func() string 76 refreshTokenMutex sync.RWMutex 77 refreshTokenArgsForCall []struct { 78 } 79 refreshTokenReturns struct { 80 result1 string 81 } 82 refreshTokenReturnsOnCall map[int]struct { 83 result1 string 84 } 85 SSHOAuthClientStub func() string 86 sSHOAuthClientMutex sync.RWMutex 87 sSHOAuthClientArgsForCall []struct { 88 } 89 sSHOAuthClientReturns struct { 90 result1 string 91 } 92 sSHOAuthClientReturnsOnCall map[int]struct { 93 result1 string 94 } 95 SetAccessTokenStub func(string) 96 setAccessTokenMutex sync.RWMutex 97 setAccessTokenArgsForCall []struct { 98 arg1 string 99 } 100 SetKubernetesAuthInfoStub func(string) 101 setKubernetesAuthInfoMutex sync.RWMutex 102 setKubernetesAuthInfoArgsForCall []struct { 103 arg1 string 104 } 105 SetRefreshTokenStub func(string) 106 setRefreshTokenMutex sync.RWMutex 107 setRefreshTokenArgsForCall []struct { 108 arg1 string 109 } 110 SetTargetInformationStub func(configv3.TargetInformationArgs) 111 setTargetInformationMutex sync.RWMutex 112 setTargetInformationArgsForCall []struct { 113 arg1 configv3.TargetInformationArgs 114 } 115 SetTokenInformationStub func(string, string, string) 116 setTokenInformationMutex sync.RWMutex 117 setTokenInformationArgsForCall []struct { 118 arg1 string 119 arg2 string 120 arg3 string 121 } 122 SetUAAClientCredentialsStub func(string, string) 123 setUAAClientCredentialsMutex sync.RWMutex 124 setUAAClientCredentialsArgsForCall []struct { 125 arg1 string 126 arg2 string 127 } 128 SetUAAGrantTypeStub func(string) 129 setUAAGrantTypeMutex sync.RWMutex 130 setUAAGrantTypeArgsForCall []struct { 131 arg1 string 132 } 133 SkipSSLValidationStub func() bool 134 skipSSLValidationMutex sync.RWMutex 135 skipSSLValidationArgsForCall []struct { 136 } 137 skipSSLValidationReturns struct { 138 result1 bool 139 } 140 skipSSLValidationReturnsOnCall map[int]struct { 141 result1 bool 142 } 143 StagingTimeoutStub func() time.Duration 144 stagingTimeoutMutex sync.RWMutex 145 stagingTimeoutArgsForCall []struct { 146 } 147 stagingTimeoutReturns struct { 148 result1 time.Duration 149 } 150 stagingTimeoutReturnsOnCall map[int]struct { 151 result1 time.Duration 152 } 153 StartupTimeoutStub func() time.Duration 154 startupTimeoutMutex sync.RWMutex 155 startupTimeoutArgsForCall []struct { 156 } 157 startupTimeoutReturns struct { 158 result1 time.Duration 159 } 160 startupTimeoutReturnsOnCall map[int]struct { 161 result1 time.Duration 162 } 163 TargetStub func() string 164 targetMutex sync.RWMutex 165 targetArgsForCall []struct { 166 } 167 targetReturns struct { 168 result1 string 169 } 170 targetReturnsOnCall map[int]struct { 171 result1 string 172 } 173 UAAGrantTypeStub func() string 174 uAAGrantTypeMutex sync.RWMutex 175 uAAGrantTypeArgsForCall []struct { 176 } 177 uAAGrantTypeReturns struct { 178 result1 string 179 } 180 uAAGrantTypeReturnsOnCall map[int]struct { 181 result1 string 182 } 183 UnsetOrganizationAndSpaceInformationStub func() 184 unsetOrganizationAndSpaceInformationMutex sync.RWMutex 185 unsetOrganizationAndSpaceInformationArgsForCall []struct { 186 } 187 invocations map[string][][]interface{} 188 invocationsMutex sync.RWMutex 189 } 190 191 func (fake *FakeConfig) APIVersion() string { 192 fake.aPIVersionMutex.Lock() 193 ret, specificReturn := fake.aPIVersionReturnsOnCall[len(fake.aPIVersionArgsForCall)] 194 fake.aPIVersionArgsForCall = append(fake.aPIVersionArgsForCall, struct { 195 }{}) 196 fake.recordInvocation("APIVersion", []interface{}{}) 197 fake.aPIVersionMutex.Unlock() 198 if fake.APIVersionStub != nil { 199 return fake.APIVersionStub() 200 } 201 if specificReturn { 202 return ret.result1 203 } 204 fakeReturns := fake.aPIVersionReturns 205 return fakeReturns.result1 206 } 207 208 func (fake *FakeConfig) APIVersionCallCount() int { 209 fake.aPIVersionMutex.RLock() 210 defer fake.aPIVersionMutex.RUnlock() 211 return len(fake.aPIVersionArgsForCall) 212 } 213 214 func (fake *FakeConfig) APIVersionCalls(stub func() string) { 215 fake.aPIVersionMutex.Lock() 216 defer fake.aPIVersionMutex.Unlock() 217 fake.APIVersionStub = stub 218 } 219 220 func (fake *FakeConfig) APIVersionReturns(result1 string) { 221 fake.aPIVersionMutex.Lock() 222 defer fake.aPIVersionMutex.Unlock() 223 fake.APIVersionStub = nil 224 fake.aPIVersionReturns = struct { 225 result1 string 226 }{result1} 227 } 228 229 func (fake *FakeConfig) APIVersionReturnsOnCall(i int, result1 string) { 230 fake.aPIVersionMutex.Lock() 231 defer fake.aPIVersionMutex.Unlock() 232 fake.APIVersionStub = nil 233 if fake.aPIVersionReturnsOnCall == nil { 234 fake.aPIVersionReturnsOnCall = make(map[int]struct { 235 result1 string 236 }) 237 } 238 fake.aPIVersionReturnsOnCall[i] = struct { 239 result1 string 240 }{result1} 241 } 242 243 func (fake *FakeConfig) AccessToken() string { 244 fake.accessTokenMutex.Lock() 245 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 246 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct { 247 }{}) 248 fake.recordInvocation("AccessToken", []interface{}{}) 249 fake.accessTokenMutex.Unlock() 250 if fake.AccessTokenStub != nil { 251 return fake.AccessTokenStub() 252 } 253 if specificReturn { 254 return ret.result1 255 } 256 fakeReturns := fake.accessTokenReturns 257 return fakeReturns.result1 258 } 259 260 func (fake *FakeConfig) AccessTokenCallCount() int { 261 fake.accessTokenMutex.RLock() 262 defer fake.accessTokenMutex.RUnlock() 263 return len(fake.accessTokenArgsForCall) 264 } 265 266 func (fake *FakeConfig) AccessTokenCalls(stub func() string) { 267 fake.accessTokenMutex.Lock() 268 defer fake.accessTokenMutex.Unlock() 269 fake.AccessTokenStub = stub 270 } 271 272 func (fake *FakeConfig) AccessTokenReturns(result1 string) { 273 fake.accessTokenMutex.Lock() 274 defer fake.accessTokenMutex.Unlock() 275 fake.AccessTokenStub = nil 276 fake.accessTokenReturns = struct { 277 result1 string 278 }{result1} 279 } 280 281 func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) { 282 fake.accessTokenMutex.Lock() 283 defer fake.accessTokenMutex.Unlock() 284 fake.AccessTokenStub = nil 285 if fake.accessTokenReturnsOnCall == nil { 286 fake.accessTokenReturnsOnCall = make(map[int]struct { 287 result1 string 288 }) 289 } 290 fake.accessTokenReturnsOnCall[i] = struct { 291 result1 string 292 }{result1} 293 } 294 295 func (fake *FakeConfig) CurrentUser() (configv3.User, error) { 296 fake.currentUserMutex.Lock() 297 ret, specificReturn := fake.currentUserReturnsOnCall[len(fake.currentUserArgsForCall)] 298 fake.currentUserArgsForCall = append(fake.currentUserArgsForCall, struct { 299 }{}) 300 fake.recordInvocation("CurrentUser", []interface{}{}) 301 fake.currentUserMutex.Unlock() 302 if fake.CurrentUserStub != nil { 303 return fake.CurrentUserStub() 304 } 305 if specificReturn { 306 return ret.result1, ret.result2 307 } 308 fakeReturns := fake.currentUserReturns 309 return fakeReturns.result1, fakeReturns.result2 310 } 311 312 func (fake *FakeConfig) CurrentUserCallCount() int { 313 fake.currentUserMutex.RLock() 314 defer fake.currentUserMutex.RUnlock() 315 return len(fake.currentUserArgsForCall) 316 } 317 318 func (fake *FakeConfig) CurrentUserCalls(stub func() (configv3.User, error)) { 319 fake.currentUserMutex.Lock() 320 defer fake.currentUserMutex.Unlock() 321 fake.CurrentUserStub = stub 322 } 323 324 func (fake *FakeConfig) CurrentUserReturns(result1 configv3.User, result2 error) { 325 fake.currentUserMutex.Lock() 326 defer fake.currentUserMutex.Unlock() 327 fake.CurrentUserStub = nil 328 fake.currentUserReturns = struct { 329 result1 configv3.User 330 result2 error 331 }{result1, result2} 332 } 333 334 func (fake *FakeConfig) CurrentUserReturnsOnCall(i int, result1 configv3.User, result2 error) { 335 fake.currentUserMutex.Lock() 336 defer fake.currentUserMutex.Unlock() 337 fake.CurrentUserStub = nil 338 if fake.currentUserReturnsOnCall == nil { 339 fake.currentUserReturnsOnCall = make(map[int]struct { 340 result1 configv3.User 341 result2 error 342 }) 343 } 344 fake.currentUserReturnsOnCall[i] = struct { 345 result1 configv3.User 346 result2 error 347 }{result1, result2} 348 } 349 350 func (fake *FakeConfig) DialTimeout() time.Duration { 351 fake.dialTimeoutMutex.Lock() 352 ret, specificReturn := fake.dialTimeoutReturnsOnCall[len(fake.dialTimeoutArgsForCall)] 353 fake.dialTimeoutArgsForCall = append(fake.dialTimeoutArgsForCall, struct { 354 }{}) 355 fake.recordInvocation("DialTimeout", []interface{}{}) 356 fake.dialTimeoutMutex.Unlock() 357 if fake.DialTimeoutStub != nil { 358 return fake.DialTimeoutStub() 359 } 360 if specificReturn { 361 return ret.result1 362 } 363 fakeReturns := fake.dialTimeoutReturns 364 return fakeReturns.result1 365 } 366 367 func (fake *FakeConfig) DialTimeoutCallCount() int { 368 fake.dialTimeoutMutex.RLock() 369 defer fake.dialTimeoutMutex.RUnlock() 370 return len(fake.dialTimeoutArgsForCall) 371 } 372 373 func (fake *FakeConfig) DialTimeoutCalls(stub func() time.Duration) { 374 fake.dialTimeoutMutex.Lock() 375 defer fake.dialTimeoutMutex.Unlock() 376 fake.DialTimeoutStub = stub 377 } 378 379 func (fake *FakeConfig) DialTimeoutReturns(result1 time.Duration) { 380 fake.dialTimeoutMutex.Lock() 381 defer fake.dialTimeoutMutex.Unlock() 382 fake.DialTimeoutStub = nil 383 fake.dialTimeoutReturns = struct { 384 result1 time.Duration 385 }{result1} 386 } 387 388 func (fake *FakeConfig) DialTimeoutReturnsOnCall(i int, result1 time.Duration) { 389 fake.dialTimeoutMutex.Lock() 390 defer fake.dialTimeoutMutex.Unlock() 391 fake.DialTimeoutStub = nil 392 if fake.dialTimeoutReturnsOnCall == nil { 393 fake.dialTimeoutReturnsOnCall = make(map[int]struct { 394 result1 time.Duration 395 }) 396 } 397 fake.dialTimeoutReturnsOnCall[i] = struct { 398 result1 time.Duration 399 }{result1} 400 } 401 402 func (fake *FakeConfig) IsCFOnK8s() bool { 403 fake.isCFOnK8sMutex.Lock() 404 ret, specificReturn := fake.isCFOnK8sReturnsOnCall[len(fake.isCFOnK8sArgsForCall)] 405 fake.isCFOnK8sArgsForCall = append(fake.isCFOnK8sArgsForCall, struct { 406 }{}) 407 fake.recordInvocation("IsCFOnK8s", []interface{}{}) 408 fake.isCFOnK8sMutex.Unlock() 409 if fake.IsCFOnK8sStub != nil { 410 return fake.IsCFOnK8sStub() 411 } 412 if specificReturn { 413 return ret.result1 414 } 415 fakeReturns := fake.isCFOnK8sReturns 416 return fakeReturns.result1 417 } 418 419 func (fake *FakeConfig) IsCFOnK8sCallCount() int { 420 fake.isCFOnK8sMutex.RLock() 421 defer fake.isCFOnK8sMutex.RUnlock() 422 return len(fake.isCFOnK8sArgsForCall) 423 } 424 425 func (fake *FakeConfig) IsCFOnK8sCalls(stub func() bool) { 426 fake.isCFOnK8sMutex.Lock() 427 defer fake.isCFOnK8sMutex.Unlock() 428 fake.IsCFOnK8sStub = stub 429 } 430 431 func (fake *FakeConfig) IsCFOnK8sReturns(result1 bool) { 432 fake.isCFOnK8sMutex.Lock() 433 defer fake.isCFOnK8sMutex.Unlock() 434 fake.IsCFOnK8sStub = nil 435 fake.isCFOnK8sReturns = struct { 436 result1 bool 437 }{result1} 438 } 439 440 func (fake *FakeConfig) IsCFOnK8sReturnsOnCall(i int, result1 bool) { 441 fake.isCFOnK8sMutex.Lock() 442 defer fake.isCFOnK8sMutex.Unlock() 443 fake.IsCFOnK8sStub = nil 444 if fake.isCFOnK8sReturnsOnCall == nil { 445 fake.isCFOnK8sReturnsOnCall = make(map[int]struct { 446 result1 bool 447 }) 448 } 449 fake.isCFOnK8sReturnsOnCall[i] = struct { 450 result1 bool 451 }{result1} 452 } 453 454 func (fake *FakeConfig) PollingInterval() time.Duration { 455 fake.pollingIntervalMutex.Lock() 456 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 457 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct { 458 }{}) 459 fake.recordInvocation("PollingInterval", []interface{}{}) 460 fake.pollingIntervalMutex.Unlock() 461 if fake.PollingIntervalStub != nil { 462 return fake.PollingIntervalStub() 463 } 464 if specificReturn { 465 return ret.result1 466 } 467 fakeReturns := fake.pollingIntervalReturns 468 return fakeReturns.result1 469 } 470 471 func (fake *FakeConfig) PollingIntervalCallCount() int { 472 fake.pollingIntervalMutex.RLock() 473 defer fake.pollingIntervalMutex.RUnlock() 474 return len(fake.pollingIntervalArgsForCall) 475 } 476 477 func (fake *FakeConfig) PollingIntervalCalls(stub func() time.Duration) { 478 fake.pollingIntervalMutex.Lock() 479 defer fake.pollingIntervalMutex.Unlock() 480 fake.PollingIntervalStub = stub 481 } 482 483 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 484 fake.pollingIntervalMutex.Lock() 485 defer fake.pollingIntervalMutex.Unlock() 486 fake.PollingIntervalStub = nil 487 fake.pollingIntervalReturns = struct { 488 result1 time.Duration 489 }{result1} 490 } 491 492 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 493 fake.pollingIntervalMutex.Lock() 494 defer fake.pollingIntervalMutex.Unlock() 495 fake.PollingIntervalStub = nil 496 if fake.pollingIntervalReturnsOnCall == nil { 497 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 498 result1 time.Duration 499 }) 500 } 501 fake.pollingIntervalReturnsOnCall[i] = struct { 502 result1 time.Duration 503 }{result1} 504 } 505 506 func (fake *FakeConfig) RefreshToken() string { 507 fake.refreshTokenMutex.Lock() 508 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 509 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct { 510 }{}) 511 fake.recordInvocation("RefreshToken", []interface{}{}) 512 fake.refreshTokenMutex.Unlock() 513 if fake.RefreshTokenStub != nil { 514 return fake.RefreshTokenStub() 515 } 516 if specificReturn { 517 return ret.result1 518 } 519 fakeReturns := fake.refreshTokenReturns 520 return fakeReturns.result1 521 } 522 523 func (fake *FakeConfig) RefreshTokenCallCount() int { 524 fake.refreshTokenMutex.RLock() 525 defer fake.refreshTokenMutex.RUnlock() 526 return len(fake.refreshTokenArgsForCall) 527 } 528 529 func (fake *FakeConfig) RefreshTokenCalls(stub func() string) { 530 fake.refreshTokenMutex.Lock() 531 defer fake.refreshTokenMutex.Unlock() 532 fake.RefreshTokenStub = stub 533 } 534 535 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 536 fake.refreshTokenMutex.Lock() 537 defer fake.refreshTokenMutex.Unlock() 538 fake.RefreshTokenStub = nil 539 fake.refreshTokenReturns = struct { 540 result1 string 541 }{result1} 542 } 543 544 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 545 fake.refreshTokenMutex.Lock() 546 defer fake.refreshTokenMutex.Unlock() 547 fake.RefreshTokenStub = nil 548 if fake.refreshTokenReturnsOnCall == nil { 549 fake.refreshTokenReturnsOnCall = make(map[int]struct { 550 result1 string 551 }) 552 } 553 fake.refreshTokenReturnsOnCall[i] = struct { 554 result1 string 555 }{result1} 556 } 557 558 func (fake *FakeConfig) SSHOAuthClient() string { 559 fake.sSHOAuthClientMutex.Lock() 560 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 561 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct { 562 }{}) 563 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 564 fake.sSHOAuthClientMutex.Unlock() 565 if fake.SSHOAuthClientStub != nil { 566 return fake.SSHOAuthClientStub() 567 } 568 if specificReturn { 569 return ret.result1 570 } 571 fakeReturns := fake.sSHOAuthClientReturns 572 return fakeReturns.result1 573 } 574 575 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 576 fake.sSHOAuthClientMutex.RLock() 577 defer fake.sSHOAuthClientMutex.RUnlock() 578 return len(fake.sSHOAuthClientArgsForCall) 579 } 580 581 func (fake *FakeConfig) SSHOAuthClientCalls(stub func() string) { 582 fake.sSHOAuthClientMutex.Lock() 583 defer fake.sSHOAuthClientMutex.Unlock() 584 fake.SSHOAuthClientStub = stub 585 } 586 587 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 588 fake.sSHOAuthClientMutex.Lock() 589 defer fake.sSHOAuthClientMutex.Unlock() 590 fake.SSHOAuthClientStub = nil 591 fake.sSHOAuthClientReturns = struct { 592 result1 string 593 }{result1} 594 } 595 596 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 597 fake.sSHOAuthClientMutex.Lock() 598 defer fake.sSHOAuthClientMutex.Unlock() 599 fake.SSHOAuthClientStub = nil 600 if fake.sSHOAuthClientReturnsOnCall == nil { 601 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 602 result1 string 603 }) 604 } 605 fake.sSHOAuthClientReturnsOnCall[i] = struct { 606 result1 string 607 }{result1} 608 } 609 610 func (fake *FakeConfig) SetAccessToken(arg1 string) { 611 fake.setAccessTokenMutex.Lock() 612 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 613 arg1 string 614 }{arg1}) 615 fake.recordInvocation("SetAccessToken", []interface{}{arg1}) 616 fake.setAccessTokenMutex.Unlock() 617 if fake.SetAccessTokenStub != nil { 618 fake.SetAccessTokenStub(arg1) 619 } 620 } 621 622 func (fake *FakeConfig) SetAccessTokenCallCount() int { 623 fake.setAccessTokenMutex.RLock() 624 defer fake.setAccessTokenMutex.RUnlock() 625 return len(fake.setAccessTokenArgsForCall) 626 } 627 628 func (fake *FakeConfig) SetAccessTokenCalls(stub func(string)) { 629 fake.setAccessTokenMutex.Lock() 630 defer fake.setAccessTokenMutex.Unlock() 631 fake.SetAccessTokenStub = stub 632 } 633 634 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 635 fake.setAccessTokenMutex.RLock() 636 defer fake.setAccessTokenMutex.RUnlock() 637 argsForCall := fake.setAccessTokenArgsForCall[i] 638 return argsForCall.arg1 639 } 640 641 func (fake *FakeConfig) SetKubernetesAuthInfo(arg1 string) { 642 fake.setKubernetesAuthInfoMutex.Lock() 643 fake.setKubernetesAuthInfoArgsForCall = append(fake.setKubernetesAuthInfoArgsForCall, struct { 644 arg1 string 645 }{arg1}) 646 fake.recordInvocation("SetKubernetesAuthInfo", []interface{}{arg1}) 647 fake.setKubernetesAuthInfoMutex.Unlock() 648 if fake.SetKubernetesAuthInfoStub != nil { 649 fake.SetKubernetesAuthInfoStub(arg1) 650 } 651 } 652 653 func (fake *FakeConfig) SetKubernetesAuthInfoCallCount() int { 654 fake.setKubernetesAuthInfoMutex.RLock() 655 defer fake.setKubernetesAuthInfoMutex.RUnlock() 656 return len(fake.setKubernetesAuthInfoArgsForCall) 657 } 658 659 func (fake *FakeConfig) SetKubernetesAuthInfoCalls(stub func(string)) { 660 fake.setKubernetesAuthInfoMutex.Lock() 661 defer fake.setKubernetesAuthInfoMutex.Unlock() 662 fake.SetKubernetesAuthInfoStub = stub 663 } 664 665 func (fake *FakeConfig) SetKubernetesAuthInfoArgsForCall(i int) string { 666 fake.setKubernetesAuthInfoMutex.RLock() 667 defer fake.setKubernetesAuthInfoMutex.RUnlock() 668 argsForCall := fake.setKubernetesAuthInfoArgsForCall[i] 669 return argsForCall.arg1 670 } 671 672 func (fake *FakeConfig) SetRefreshToken(arg1 string) { 673 fake.setRefreshTokenMutex.Lock() 674 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 675 arg1 string 676 }{arg1}) 677 fake.recordInvocation("SetRefreshToken", []interface{}{arg1}) 678 fake.setRefreshTokenMutex.Unlock() 679 if fake.SetRefreshTokenStub != nil { 680 fake.SetRefreshTokenStub(arg1) 681 } 682 } 683 684 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 685 fake.setRefreshTokenMutex.RLock() 686 defer fake.setRefreshTokenMutex.RUnlock() 687 return len(fake.setRefreshTokenArgsForCall) 688 } 689 690 func (fake *FakeConfig) SetRefreshTokenCalls(stub func(string)) { 691 fake.setRefreshTokenMutex.Lock() 692 defer fake.setRefreshTokenMutex.Unlock() 693 fake.SetRefreshTokenStub = stub 694 } 695 696 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 697 fake.setRefreshTokenMutex.RLock() 698 defer fake.setRefreshTokenMutex.RUnlock() 699 argsForCall := fake.setRefreshTokenArgsForCall[i] 700 return argsForCall.arg1 701 } 702 703 func (fake *FakeConfig) SetTargetInformation(arg1 configv3.TargetInformationArgs) { 704 fake.setTargetInformationMutex.Lock() 705 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 706 arg1 configv3.TargetInformationArgs 707 }{arg1}) 708 fake.recordInvocation("SetTargetInformation", []interface{}{arg1}) 709 fake.setTargetInformationMutex.Unlock() 710 if fake.SetTargetInformationStub != nil { 711 fake.SetTargetInformationStub(arg1) 712 } 713 } 714 715 func (fake *FakeConfig) SetTargetInformationCallCount() int { 716 fake.setTargetInformationMutex.RLock() 717 defer fake.setTargetInformationMutex.RUnlock() 718 return len(fake.setTargetInformationArgsForCall) 719 } 720 721 func (fake *FakeConfig) SetTargetInformationCalls(stub func(configv3.TargetInformationArgs)) { 722 fake.setTargetInformationMutex.Lock() 723 defer fake.setTargetInformationMutex.Unlock() 724 fake.SetTargetInformationStub = stub 725 } 726 727 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) configv3.TargetInformationArgs { 728 fake.setTargetInformationMutex.RLock() 729 defer fake.setTargetInformationMutex.RUnlock() 730 argsForCall := fake.setTargetInformationArgsForCall[i] 731 return argsForCall.arg1 732 } 733 734 func (fake *FakeConfig) SetTokenInformation(arg1 string, arg2 string, arg3 string) { 735 fake.setTokenInformationMutex.Lock() 736 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 737 arg1 string 738 arg2 string 739 arg3 string 740 }{arg1, arg2, arg3}) 741 fake.recordInvocation("SetTokenInformation", []interface{}{arg1, arg2, arg3}) 742 fake.setTokenInformationMutex.Unlock() 743 if fake.SetTokenInformationStub != nil { 744 fake.SetTokenInformationStub(arg1, arg2, arg3) 745 } 746 } 747 748 func (fake *FakeConfig) SetTokenInformationCallCount() int { 749 fake.setTokenInformationMutex.RLock() 750 defer fake.setTokenInformationMutex.RUnlock() 751 return len(fake.setTokenInformationArgsForCall) 752 } 753 754 func (fake *FakeConfig) SetTokenInformationCalls(stub func(string, string, string)) { 755 fake.setTokenInformationMutex.Lock() 756 defer fake.setTokenInformationMutex.Unlock() 757 fake.SetTokenInformationStub = stub 758 } 759 760 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 761 fake.setTokenInformationMutex.RLock() 762 defer fake.setTokenInformationMutex.RUnlock() 763 argsForCall := fake.setTokenInformationArgsForCall[i] 764 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 765 } 766 767 func (fake *FakeConfig) SetUAAClientCredentials(arg1 string, arg2 string) { 768 fake.setUAAClientCredentialsMutex.Lock() 769 fake.setUAAClientCredentialsArgsForCall = append(fake.setUAAClientCredentialsArgsForCall, struct { 770 arg1 string 771 arg2 string 772 }{arg1, arg2}) 773 fake.recordInvocation("SetUAAClientCredentials", []interface{}{arg1, arg2}) 774 fake.setUAAClientCredentialsMutex.Unlock() 775 if fake.SetUAAClientCredentialsStub != nil { 776 fake.SetUAAClientCredentialsStub(arg1, arg2) 777 } 778 } 779 780 func (fake *FakeConfig) SetUAAClientCredentialsCallCount() int { 781 fake.setUAAClientCredentialsMutex.RLock() 782 defer fake.setUAAClientCredentialsMutex.RUnlock() 783 return len(fake.setUAAClientCredentialsArgsForCall) 784 } 785 786 func (fake *FakeConfig) SetUAAClientCredentialsCalls(stub func(string, string)) { 787 fake.setUAAClientCredentialsMutex.Lock() 788 defer fake.setUAAClientCredentialsMutex.Unlock() 789 fake.SetUAAClientCredentialsStub = stub 790 } 791 792 func (fake *FakeConfig) SetUAAClientCredentialsArgsForCall(i int) (string, string) { 793 fake.setUAAClientCredentialsMutex.RLock() 794 defer fake.setUAAClientCredentialsMutex.RUnlock() 795 argsForCall := fake.setUAAClientCredentialsArgsForCall[i] 796 return argsForCall.arg1, argsForCall.arg2 797 } 798 799 func (fake *FakeConfig) SetUAAGrantType(arg1 string) { 800 fake.setUAAGrantTypeMutex.Lock() 801 fake.setUAAGrantTypeArgsForCall = append(fake.setUAAGrantTypeArgsForCall, struct { 802 arg1 string 803 }{arg1}) 804 fake.recordInvocation("SetUAAGrantType", []interface{}{arg1}) 805 fake.setUAAGrantTypeMutex.Unlock() 806 if fake.SetUAAGrantTypeStub != nil { 807 fake.SetUAAGrantTypeStub(arg1) 808 } 809 } 810 811 func (fake *FakeConfig) SetUAAGrantTypeCallCount() int { 812 fake.setUAAGrantTypeMutex.RLock() 813 defer fake.setUAAGrantTypeMutex.RUnlock() 814 return len(fake.setUAAGrantTypeArgsForCall) 815 } 816 817 func (fake *FakeConfig) SetUAAGrantTypeCalls(stub func(string)) { 818 fake.setUAAGrantTypeMutex.Lock() 819 defer fake.setUAAGrantTypeMutex.Unlock() 820 fake.SetUAAGrantTypeStub = stub 821 } 822 823 func (fake *FakeConfig) SetUAAGrantTypeArgsForCall(i int) string { 824 fake.setUAAGrantTypeMutex.RLock() 825 defer fake.setUAAGrantTypeMutex.RUnlock() 826 argsForCall := fake.setUAAGrantTypeArgsForCall[i] 827 return argsForCall.arg1 828 } 829 830 func (fake *FakeConfig) SkipSSLValidation() bool { 831 fake.skipSSLValidationMutex.Lock() 832 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 833 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct { 834 }{}) 835 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 836 fake.skipSSLValidationMutex.Unlock() 837 if fake.SkipSSLValidationStub != nil { 838 return fake.SkipSSLValidationStub() 839 } 840 if specificReturn { 841 return ret.result1 842 } 843 fakeReturns := fake.skipSSLValidationReturns 844 return fakeReturns.result1 845 } 846 847 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 848 fake.skipSSLValidationMutex.RLock() 849 defer fake.skipSSLValidationMutex.RUnlock() 850 return len(fake.skipSSLValidationArgsForCall) 851 } 852 853 func (fake *FakeConfig) SkipSSLValidationCalls(stub func() bool) { 854 fake.skipSSLValidationMutex.Lock() 855 defer fake.skipSSLValidationMutex.Unlock() 856 fake.SkipSSLValidationStub = stub 857 } 858 859 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 860 fake.skipSSLValidationMutex.Lock() 861 defer fake.skipSSLValidationMutex.Unlock() 862 fake.SkipSSLValidationStub = nil 863 fake.skipSSLValidationReturns = struct { 864 result1 bool 865 }{result1} 866 } 867 868 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 869 fake.skipSSLValidationMutex.Lock() 870 defer fake.skipSSLValidationMutex.Unlock() 871 fake.SkipSSLValidationStub = nil 872 if fake.skipSSLValidationReturnsOnCall == nil { 873 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 874 result1 bool 875 }) 876 } 877 fake.skipSSLValidationReturnsOnCall[i] = struct { 878 result1 bool 879 }{result1} 880 } 881 882 func (fake *FakeConfig) StagingTimeout() time.Duration { 883 fake.stagingTimeoutMutex.Lock() 884 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 885 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct { 886 }{}) 887 fake.recordInvocation("StagingTimeout", []interface{}{}) 888 fake.stagingTimeoutMutex.Unlock() 889 if fake.StagingTimeoutStub != nil { 890 return fake.StagingTimeoutStub() 891 } 892 if specificReturn { 893 return ret.result1 894 } 895 fakeReturns := fake.stagingTimeoutReturns 896 return fakeReturns.result1 897 } 898 899 func (fake *FakeConfig) StagingTimeoutCallCount() int { 900 fake.stagingTimeoutMutex.RLock() 901 defer fake.stagingTimeoutMutex.RUnlock() 902 return len(fake.stagingTimeoutArgsForCall) 903 } 904 905 func (fake *FakeConfig) StagingTimeoutCalls(stub func() time.Duration) { 906 fake.stagingTimeoutMutex.Lock() 907 defer fake.stagingTimeoutMutex.Unlock() 908 fake.StagingTimeoutStub = stub 909 } 910 911 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 912 fake.stagingTimeoutMutex.Lock() 913 defer fake.stagingTimeoutMutex.Unlock() 914 fake.StagingTimeoutStub = nil 915 fake.stagingTimeoutReturns = struct { 916 result1 time.Duration 917 }{result1} 918 } 919 920 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 921 fake.stagingTimeoutMutex.Lock() 922 defer fake.stagingTimeoutMutex.Unlock() 923 fake.StagingTimeoutStub = nil 924 if fake.stagingTimeoutReturnsOnCall == nil { 925 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 926 result1 time.Duration 927 }) 928 } 929 fake.stagingTimeoutReturnsOnCall[i] = struct { 930 result1 time.Duration 931 }{result1} 932 } 933 934 func (fake *FakeConfig) StartupTimeout() time.Duration { 935 fake.startupTimeoutMutex.Lock() 936 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 937 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct { 938 }{}) 939 fake.recordInvocation("StartupTimeout", []interface{}{}) 940 fake.startupTimeoutMutex.Unlock() 941 if fake.StartupTimeoutStub != nil { 942 return fake.StartupTimeoutStub() 943 } 944 if specificReturn { 945 return ret.result1 946 } 947 fakeReturns := fake.startupTimeoutReturns 948 return fakeReturns.result1 949 } 950 951 func (fake *FakeConfig) StartupTimeoutCallCount() int { 952 fake.startupTimeoutMutex.RLock() 953 defer fake.startupTimeoutMutex.RUnlock() 954 return len(fake.startupTimeoutArgsForCall) 955 } 956 957 func (fake *FakeConfig) StartupTimeoutCalls(stub func() time.Duration) { 958 fake.startupTimeoutMutex.Lock() 959 defer fake.startupTimeoutMutex.Unlock() 960 fake.StartupTimeoutStub = stub 961 } 962 963 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 964 fake.startupTimeoutMutex.Lock() 965 defer fake.startupTimeoutMutex.Unlock() 966 fake.StartupTimeoutStub = nil 967 fake.startupTimeoutReturns = struct { 968 result1 time.Duration 969 }{result1} 970 } 971 972 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 973 fake.startupTimeoutMutex.Lock() 974 defer fake.startupTimeoutMutex.Unlock() 975 fake.StartupTimeoutStub = nil 976 if fake.startupTimeoutReturnsOnCall == nil { 977 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 978 result1 time.Duration 979 }) 980 } 981 fake.startupTimeoutReturnsOnCall[i] = struct { 982 result1 time.Duration 983 }{result1} 984 } 985 986 func (fake *FakeConfig) Target() string { 987 fake.targetMutex.Lock() 988 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 989 fake.targetArgsForCall = append(fake.targetArgsForCall, struct { 990 }{}) 991 fake.recordInvocation("Target", []interface{}{}) 992 fake.targetMutex.Unlock() 993 if fake.TargetStub != nil { 994 return fake.TargetStub() 995 } 996 if specificReturn { 997 return ret.result1 998 } 999 fakeReturns := fake.targetReturns 1000 return fakeReturns.result1 1001 } 1002 1003 func (fake *FakeConfig) TargetCallCount() int { 1004 fake.targetMutex.RLock() 1005 defer fake.targetMutex.RUnlock() 1006 return len(fake.targetArgsForCall) 1007 } 1008 1009 func (fake *FakeConfig) TargetCalls(stub func() string) { 1010 fake.targetMutex.Lock() 1011 defer fake.targetMutex.Unlock() 1012 fake.TargetStub = stub 1013 } 1014 1015 func (fake *FakeConfig) TargetReturns(result1 string) { 1016 fake.targetMutex.Lock() 1017 defer fake.targetMutex.Unlock() 1018 fake.TargetStub = nil 1019 fake.targetReturns = struct { 1020 result1 string 1021 }{result1} 1022 } 1023 1024 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 1025 fake.targetMutex.Lock() 1026 defer fake.targetMutex.Unlock() 1027 fake.TargetStub = nil 1028 if fake.targetReturnsOnCall == nil { 1029 fake.targetReturnsOnCall = make(map[int]struct { 1030 result1 string 1031 }) 1032 } 1033 fake.targetReturnsOnCall[i] = struct { 1034 result1 string 1035 }{result1} 1036 } 1037 1038 func (fake *FakeConfig) UAAGrantType() string { 1039 fake.uAAGrantTypeMutex.Lock() 1040 ret, specificReturn := fake.uAAGrantTypeReturnsOnCall[len(fake.uAAGrantTypeArgsForCall)] 1041 fake.uAAGrantTypeArgsForCall = append(fake.uAAGrantTypeArgsForCall, struct { 1042 }{}) 1043 fake.recordInvocation("UAAGrantType", []interface{}{}) 1044 fake.uAAGrantTypeMutex.Unlock() 1045 if fake.UAAGrantTypeStub != nil { 1046 return fake.UAAGrantTypeStub() 1047 } 1048 if specificReturn { 1049 return ret.result1 1050 } 1051 fakeReturns := fake.uAAGrantTypeReturns 1052 return fakeReturns.result1 1053 } 1054 1055 func (fake *FakeConfig) UAAGrantTypeCallCount() int { 1056 fake.uAAGrantTypeMutex.RLock() 1057 defer fake.uAAGrantTypeMutex.RUnlock() 1058 return len(fake.uAAGrantTypeArgsForCall) 1059 } 1060 1061 func (fake *FakeConfig) UAAGrantTypeCalls(stub func() string) { 1062 fake.uAAGrantTypeMutex.Lock() 1063 defer fake.uAAGrantTypeMutex.Unlock() 1064 fake.UAAGrantTypeStub = stub 1065 } 1066 1067 func (fake *FakeConfig) UAAGrantTypeReturns(result1 string) { 1068 fake.uAAGrantTypeMutex.Lock() 1069 defer fake.uAAGrantTypeMutex.Unlock() 1070 fake.UAAGrantTypeStub = nil 1071 fake.uAAGrantTypeReturns = struct { 1072 result1 string 1073 }{result1} 1074 } 1075 1076 func (fake *FakeConfig) UAAGrantTypeReturnsOnCall(i int, result1 string) { 1077 fake.uAAGrantTypeMutex.Lock() 1078 defer fake.uAAGrantTypeMutex.Unlock() 1079 fake.UAAGrantTypeStub = nil 1080 if fake.uAAGrantTypeReturnsOnCall == nil { 1081 fake.uAAGrantTypeReturnsOnCall = make(map[int]struct { 1082 result1 string 1083 }) 1084 } 1085 fake.uAAGrantTypeReturnsOnCall[i] = struct { 1086 result1 string 1087 }{result1} 1088 } 1089 1090 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformation() { 1091 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 1092 fake.unsetOrganizationAndSpaceInformationArgsForCall = append(fake.unsetOrganizationAndSpaceInformationArgsForCall, struct { 1093 }{}) 1094 fake.recordInvocation("UnsetOrganizationAndSpaceInformation", []interface{}{}) 1095 fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 1096 if fake.UnsetOrganizationAndSpaceInformationStub != nil { 1097 fake.UnsetOrganizationAndSpaceInformationStub() 1098 } 1099 } 1100 1101 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCallCount() int { 1102 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 1103 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 1104 return len(fake.unsetOrganizationAndSpaceInformationArgsForCall) 1105 } 1106 1107 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCalls(stub func()) { 1108 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 1109 defer fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 1110 fake.UnsetOrganizationAndSpaceInformationStub = stub 1111 } 1112 1113 func (fake *FakeConfig) Invocations() map[string][][]interface{} { 1114 fake.invocationsMutex.RLock() 1115 defer fake.invocationsMutex.RUnlock() 1116 fake.aPIVersionMutex.RLock() 1117 defer fake.aPIVersionMutex.RUnlock() 1118 fake.accessTokenMutex.RLock() 1119 defer fake.accessTokenMutex.RUnlock() 1120 fake.currentUserMutex.RLock() 1121 defer fake.currentUserMutex.RUnlock() 1122 fake.dialTimeoutMutex.RLock() 1123 defer fake.dialTimeoutMutex.RUnlock() 1124 fake.isCFOnK8sMutex.RLock() 1125 defer fake.isCFOnK8sMutex.RUnlock() 1126 fake.pollingIntervalMutex.RLock() 1127 defer fake.pollingIntervalMutex.RUnlock() 1128 fake.refreshTokenMutex.RLock() 1129 defer fake.refreshTokenMutex.RUnlock() 1130 fake.sSHOAuthClientMutex.RLock() 1131 defer fake.sSHOAuthClientMutex.RUnlock() 1132 fake.setAccessTokenMutex.RLock() 1133 defer fake.setAccessTokenMutex.RUnlock() 1134 fake.setKubernetesAuthInfoMutex.RLock() 1135 defer fake.setKubernetesAuthInfoMutex.RUnlock() 1136 fake.setRefreshTokenMutex.RLock() 1137 defer fake.setRefreshTokenMutex.RUnlock() 1138 fake.setTargetInformationMutex.RLock() 1139 defer fake.setTargetInformationMutex.RUnlock() 1140 fake.setTokenInformationMutex.RLock() 1141 defer fake.setTokenInformationMutex.RUnlock() 1142 fake.setUAAClientCredentialsMutex.RLock() 1143 defer fake.setUAAClientCredentialsMutex.RUnlock() 1144 fake.setUAAGrantTypeMutex.RLock() 1145 defer fake.setUAAGrantTypeMutex.RUnlock() 1146 fake.skipSSLValidationMutex.RLock() 1147 defer fake.skipSSLValidationMutex.RUnlock() 1148 fake.stagingTimeoutMutex.RLock() 1149 defer fake.stagingTimeoutMutex.RUnlock() 1150 fake.startupTimeoutMutex.RLock() 1151 defer fake.startupTimeoutMutex.RUnlock() 1152 fake.targetMutex.RLock() 1153 defer fake.targetMutex.RUnlock() 1154 fake.uAAGrantTypeMutex.RLock() 1155 defer fake.uAAGrantTypeMutex.RUnlock() 1156 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 1157 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 1158 copiedInvocations := map[string][][]interface{}{} 1159 for key, value := range fake.invocations { 1160 copiedInvocations[key] = value 1161 } 1162 return copiedInvocations 1163 } 1164 1165 func (fake *FakeConfig) recordInvocation(key string, args []interface{}) { 1166 fake.invocationsMutex.Lock() 1167 defer fake.invocationsMutex.Unlock() 1168 if fake.invocations == nil { 1169 fake.invocations = map[string][][]interface{}{} 1170 } 1171 if fake.invocations[key] == nil { 1172 fake.invocations[key] = [][]interface{}{} 1173 } 1174 fake.invocations[key] = append(fake.invocations[key], args) 1175 } 1176 1177 var _ v7action.Config = new(FakeConfig)