github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/commandfakes/fake_config.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package commandfakes 3 4 import ( 5 "sync" 6 "time" 7 8 "code.cloudfoundry.org/cli/command" 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 AddPluginStub func(configv3.Plugin) 34 addPluginMutex sync.RWMutex 35 addPluginArgsForCall []struct { 36 arg1 configv3.Plugin 37 } 38 AddPluginRepositoryStub func(string, string) 39 addPluginRepositoryMutex sync.RWMutex 40 addPluginRepositoryArgsForCall []struct { 41 arg1 string 42 arg2 string 43 } 44 BinaryNameStub func() string 45 binaryNameMutex sync.RWMutex 46 binaryNameArgsForCall []struct { 47 } 48 binaryNameReturns struct { 49 result1 string 50 } 51 binaryNameReturnsOnCall map[int]struct { 52 result1 string 53 } 54 BinaryVersionStub func() string 55 binaryVersionMutex sync.RWMutex 56 binaryVersionArgsForCall []struct { 57 } 58 binaryVersionReturns struct { 59 result1 string 60 } 61 binaryVersionReturnsOnCall map[int]struct { 62 result1 string 63 } 64 CFPasswordStub func() string 65 cFPasswordMutex sync.RWMutex 66 cFPasswordArgsForCall []struct { 67 } 68 cFPasswordReturns struct { 69 result1 string 70 } 71 cFPasswordReturnsOnCall map[int]struct { 72 result1 string 73 } 74 CFUsernameStub func() string 75 cFUsernameMutex sync.RWMutex 76 cFUsernameArgsForCall []struct { 77 } 78 cFUsernameReturns struct { 79 result1 string 80 } 81 cFUsernameReturnsOnCall map[int]struct { 82 result1 string 83 } 84 ColorEnabledStub func() configv3.ColorSetting 85 colorEnabledMutex sync.RWMutex 86 colorEnabledArgsForCall []struct { 87 } 88 colorEnabledReturns struct { 89 result1 configv3.ColorSetting 90 } 91 colorEnabledReturnsOnCall map[int]struct { 92 result1 configv3.ColorSetting 93 } 94 CurrentUserStub func() (configv3.User, error) 95 currentUserMutex sync.RWMutex 96 currentUserArgsForCall []struct { 97 } 98 currentUserReturns struct { 99 result1 configv3.User 100 result2 error 101 } 102 currentUserReturnsOnCall map[int]struct { 103 result1 configv3.User 104 result2 error 105 } 106 CurrentUserNameStub func() (string, error) 107 currentUserNameMutex sync.RWMutex 108 currentUserNameArgsForCall []struct { 109 } 110 currentUserNameReturns struct { 111 result1 string 112 result2 error 113 } 114 currentUserNameReturnsOnCall map[int]struct { 115 result1 string 116 result2 error 117 } 118 DialTimeoutStub func() time.Duration 119 dialTimeoutMutex sync.RWMutex 120 dialTimeoutArgsForCall []struct { 121 } 122 dialTimeoutReturns struct { 123 result1 time.Duration 124 } 125 dialTimeoutReturnsOnCall map[int]struct { 126 result1 time.Duration 127 } 128 DockerPasswordStub func() string 129 dockerPasswordMutex sync.RWMutex 130 dockerPasswordArgsForCall []struct { 131 } 132 dockerPasswordReturns struct { 133 result1 string 134 } 135 dockerPasswordReturnsOnCall map[int]struct { 136 result1 string 137 } 138 ExperimentalStub func() bool 139 experimentalMutex sync.RWMutex 140 experimentalArgsForCall []struct { 141 } 142 experimentalReturns struct { 143 result1 bool 144 } 145 experimentalReturnsOnCall map[int]struct { 146 result1 bool 147 } 148 GetPluginStub func(string) (configv3.Plugin, bool) 149 getPluginMutex sync.RWMutex 150 getPluginArgsForCall []struct { 151 arg1 string 152 } 153 getPluginReturns struct { 154 result1 configv3.Plugin 155 result2 bool 156 } 157 getPluginReturnsOnCall map[int]struct { 158 result1 configv3.Plugin 159 result2 bool 160 } 161 GetPluginCaseInsensitiveStub func(string) (configv3.Plugin, bool) 162 getPluginCaseInsensitiveMutex sync.RWMutex 163 getPluginCaseInsensitiveArgsForCall []struct { 164 arg1 string 165 } 166 getPluginCaseInsensitiveReturns struct { 167 result1 configv3.Plugin 168 result2 bool 169 } 170 getPluginCaseInsensitiveReturnsOnCall map[int]struct { 171 result1 configv3.Plugin 172 result2 bool 173 } 174 HasTargetedOrganizationStub func() bool 175 hasTargetedOrganizationMutex sync.RWMutex 176 hasTargetedOrganizationArgsForCall []struct { 177 } 178 hasTargetedOrganizationReturns struct { 179 result1 bool 180 } 181 hasTargetedOrganizationReturnsOnCall map[int]struct { 182 result1 bool 183 } 184 HasTargetedSpaceStub func() bool 185 hasTargetedSpaceMutex sync.RWMutex 186 hasTargetedSpaceArgsForCall []struct { 187 } 188 hasTargetedSpaceReturns struct { 189 result1 bool 190 } 191 hasTargetedSpaceReturnsOnCall map[int]struct { 192 result1 bool 193 } 194 LocaleStub func() string 195 localeMutex sync.RWMutex 196 localeArgsForCall []struct { 197 } 198 localeReturns struct { 199 result1 string 200 } 201 localeReturnsOnCall map[int]struct { 202 result1 string 203 } 204 MinCLIVersionStub func() string 205 minCLIVersionMutex sync.RWMutex 206 minCLIVersionArgsForCall []struct { 207 } 208 minCLIVersionReturns struct { 209 result1 string 210 } 211 minCLIVersionReturnsOnCall map[int]struct { 212 result1 string 213 } 214 NOAARequestRetryCountStub func() int 215 nOAARequestRetryCountMutex sync.RWMutex 216 nOAARequestRetryCountArgsForCall []struct { 217 } 218 nOAARequestRetryCountReturns struct { 219 result1 int 220 } 221 nOAARequestRetryCountReturnsOnCall map[int]struct { 222 result1 int 223 } 224 OverallPollingTimeoutStub func() time.Duration 225 overallPollingTimeoutMutex sync.RWMutex 226 overallPollingTimeoutArgsForCall []struct { 227 } 228 overallPollingTimeoutReturns struct { 229 result1 time.Duration 230 } 231 overallPollingTimeoutReturnsOnCall map[int]struct { 232 result1 time.Duration 233 } 234 PluginHomeStub func() string 235 pluginHomeMutex sync.RWMutex 236 pluginHomeArgsForCall []struct { 237 } 238 pluginHomeReturns struct { 239 result1 string 240 } 241 pluginHomeReturnsOnCall map[int]struct { 242 result1 string 243 } 244 PluginRepositoriesStub func() []configv3.PluginRepository 245 pluginRepositoriesMutex sync.RWMutex 246 pluginRepositoriesArgsForCall []struct { 247 } 248 pluginRepositoriesReturns struct { 249 result1 []configv3.PluginRepository 250 } 251 pluginRepositoriesReturnsOnCall map[int]struct { 252 result1 []configv3.PluginRepository 253 } 254 PluginsStub func() []configv3.Plugin 255 pluginsMutex sync.RWMutex 256 pluginsArgsForCall []struct { 257 } 258 pluginsReturns struct { 259 result1 []configv3.Plugin 260 } 261 pluginsReturnsOnCall map[int]struct { 262 result1 []configv3.Plugin 263 } 264 PollingIntervalStub func() time.Duration 265 pollingIntervalMutex sync.RWMutex 266 pollingIntervalArgsForCall []struct { 267 } 268 pollingIntervalReturns struct { 269 result1 time.Duration 270 } 271 pollingIntervalReturnsOnCall map[int]struct { 272 result1 time.Duration 273 } 274 RefreshTokenStub func() string 275 refreshTokenMutex sync.RWMutex 276 refreshTokenArgsForCall []struct { 277 } 278 refreshTokenReturns struct { 279 result1 string 280 } 281 refreshTokenReturnsOnCall map[int]struct { 282 result1 string 283 } 284 RemovePluginStub func(string) 285 removePluginMutex sync.RWMutex 286 removePluginArgsForCall []struct { 287 arg1 string 288 } 289 RequestRetryCountStub func() int 290 requestRetryCountMutex sync.RWMutex 291 requestRetryCountArgsForCall []struct { 292 } 293 requestRetryCountReturns struct { 294 result1 int 295 } 296 requestRetryCountReturnsOnCall map[int]struct { 297 result1 int 298 } 299 RoutingEndpointStub func() string 300 routingEndpointMutex sync.RWMutex 301 routingEndpointArgsForCall []struct { 302 } 303 routingEndpointReturns struct { 304 result1 string 305 } 306 routingEndpointReturnsOnCall map[int]struct { 307 result1 string 308 } 309 SSHOAuthClientStub func() string 310 sSHOAuthClientMutex sync.RWMutex 311 sSHOAuthClientArgsForCall []struct { 312 } 313 sSHOAuthClientReturns struct { 314 result1 string 315 } 316 sSHOAuthClientReturnsOnCall map[int]struct { 317 result1 string 318 } 319 SetAccessTokenStub func(string) 320 setAccessTokenMutex sync.RWMutex 321 setAccessTokenArgsForCall []struct { 322 arg1 string 323 } 324 SetMinCLIVersionStub func(string) 325 setMinCLIVersionMutex sync.RWMutex 326 setMinCLIVersionArgsForCall []struct { 327 arg1 string 328 } 329 SetOrganizationInformationStub func(string, string) 330 setOrganizationInformationMutex sync.RWMutex 331 setOrganizationInformationArgsForCall []struct { 332 arg1 string 333 arg2 string 334 } 335 SetRefreshTokenStub func(string) 336 setRefreshTokenMutex sync.RWMutex 337 setRefreshTokenArgsForCall []struct { 338 arg1 string 339 } 340 SetSpaceInformationStub func(string, string, bool) 341 setSpaceInformationMutex sync.RWMutex 342 setSpaceInformationArgsForCall []struct { 343 arg1 string 344 arg2 string 345 arg3 bool 346 } 347 SetTargetInformationStub func(string, string, string, string, string, string, bool) 348 setTargetInformationMutex sync.RWMutex 349 setTargetInformationArgsForCall []struct { 350 arg1 string 351 arg2 string 352 arg3 string 353 arg4 string 354 arg5 string 355 arg6 string 356 arg7 bool 357 } 358 SetTokenInformationStub func(string, string, string) 359 setTokenInformationMutex sync.RWMutex 360 setTokenInformationArgsForCall []struct { 361 arg1 string 362 arg2 string 363 arg3 string 364 } 365 SetUAAClientCredentialsStub func(string, string) 366 setUAAClientCredentialsMutex sync.RWMutex 367 setUAAClientCredentialsArgsForCall []struct { 368 arg1 string 369 arg2 string 370 } 371 SetUAAEndpointStub func(string) 372 setUAAEndpointMutex sync.RWMutex 373 setUAAEndpointArgsForCall []struct { 374 arg1 string 375 } 376 SetUAAGrantTypeStub func(string) 377 setUAAGrantTypeMutex sync.RWMutex 378 setUAAGrantTypeArgsForCall []struct { 379 arg1 string 380 } 381 SkipSSLValidationStub func() bool 382 skipSSLValidationMutex sync.RWMutex 383 skipSSLValidationArgsForCall []struct { 384 } 385 skipSSLValidationReturns struct { 386 result1 bool 387 } 388 skipSSLValidationReturnsOnCall map[int]struct { 389 result1 bool 390 } 391 StagingTimeoutStub func() time.Duration 392 stagingTimeoutMutex sync.RWMutex 393 stagingTimeoutArgsForCall []struct { 394 } 395 stagingTimeoutReturns struct { 396 result1 time.Duration 397 } 398 stagingTimeoutReturnsOnCall map[int]struct { 399 result1 time.Duration 400 } 401 StartupTimeoutStub func() time.Duration 402 startupTimeoutMutex sync.RWMutex 403 startupTimeoutArgsForCall []struct { 404 } 405 startupTimeoutReturns struct { 406 result1 time.Duration 407 } 408 startupTimeoutReturnsOnCall map[int]struct { 409 result1 time.Duration 410 } 411 TargetStub func() string 412 targetMutex sync.RWMutex 413 targetArgsForCall []struct { 414 } 415 targetReturns struct { 416 result1 string 417 } 418 targetReturnsOnCall map[int]struct { 419 result1 string 420 } 421 TargetedOrganizationStub func() configv3.Organization 422 targetedOrganizationMutex sync.RWMutex 423 targetedOrganizationArgsForCall []struct { 424 } 425 targetedOrganizationReturns struct { 426 result1 configv3.Organization 427 } 428 targetedOrganizationReturnsOnCall map[int]struct { 429 result1 configv3.Organization 430 } 431 TargetedOrganizationNameStub func() string 432 targetedOrganizationNameMutex sync.RWMutex 433 targetedOrganizationNameArgsForCall []struct { 434 } 435 targetedOrganizationNameReturns struct { 436 result1 string 437 } 438 targetedOrganizationNameReturnsOnCall map[int]struct { 439 result1 string 440 } 441 TargetedSpaceStub func() configv3.Space 442 targetedSpaceMutex sync.RWMutex 443 targetedSpaceArgsForCall []struct { 444 } 445 targetedSpaceReturns struct { 446 result1 configv3.Space 447 } 448 targetedSpaceReturnsOnCall map[int]struct { 449 result1 configv3.Space 450 } 451 UAADisableKeepAlivesStub func() bool 452 uAADisableKeepAlivesMutex sync.RWMutex 453 uAADisableKeepAlivesArgsForCall []struct { 454 } 455 uAADisableKeepAlivesReturns struct { 456 result1 bool 457 } 458 uAADisableKeepAlivesReturnsOnCall map[int]struct { 459 result1 bool 460 } 461 UAAGrantTypeStub func() string 462 uAAGrantTypeMutex sync.RWMutex 463 uAAGrantTypeArgsForCall []struct { 464 } 465 uAAGrantTypeReturns struct { 466 result1 string 467 } 468 uAAGrantTypeReturnsOnCall map[int]struct { 469 result1 string 470 } 471 UAAOAuthClientStub func() string 472 uAAOAuthClientMutex sync.RWMutex 473 uAAOAuthClientArgsForCall []struct { 474 } 475 uAAOAuthClientReturns struct { 476 result1 string 477 } 478 uAAOAuthClientReturnsOnCall map[int]struct { 479 result1 string 480 } 481 UAAOAuthClientSecretStub func() string 482 uAAOAuthClientSecretMutex sync.RWMutex 483 uAAOAuthClientSecretArgsForCall []struct { 484 } 485 uAAOAuthClientSecretReturns struct { 486 result1 string 487 } 488 uAAOAuthClientSecretReturnsOnCall map[int]struct { 489 result1 string 490 } 491 UnsetOrganizationAndSpaceInformationStub func() 492 unsetOrganizationAndSpaceInformationMutex sync.RWMutex 493 unsetOrganizationAndSpaceInformationArgsForCall []struct { 494 } 495 UnsetSpaceInformationStub func() 496 unsetSpaceInformationMutex sync.RWMutex 497 unsetSpaceInformationArgsForCall []struct { 498 } 499 UnsetUserInformationStub func() 500 unsetUserInformationMutex sync.RWMutex 501 unsetUserInformationArgsForCall []struct { 502 } 503 V7SetSpaceInformationStub func(string, string) 504 v7SetSpaceInformationMutex sync.RWMutex 505 v7SetSpaceInformationArgsForCall []struct { 506 arg1 string 507 arg2 string 508 } 509 VerboseStub func() (bool, []string) 510 verboseMutex sync.RWMutex 511 verboseArgsForCall []struct { 512 } 513 verboseReturns struct { 514 result1 bool 515 result2 []string 516 } 517 verboseReturnsOnCall map[int]struct { 518 result1 bool 519 result2 []string 520 } 521 WriteConfigStub func() error 522 writeConfigMutex sync.RWMutex 523 writeConfigArgsForCall []struct { 524 } 525 writeConfigReturns struct { 526 result1 error 527 } 528 writeConfigReturnsOnCall map[int]struct { 529 result1 error 530 } 531 WritePluginConfigStub func() error 532 writePluginConfigMutex sync.RWMutex 533 writePluginConfigArgsForCall []struct { 534 } 535 writePluginConfigReturns struct { 536 result1 error 537 } 538 writePluginConfigReturnsOnCall map[int]struct { 539 result1 error 540 } 541 invocations map[string][][]interface{} 542 invocationsMutex sync.RWMutex 543 } 544 545 func (fake *FakeConfig) APIVersion() string { 546 fake.aPIVersionMutex.Lock() 547 ret, specificReturn := fake.aPIVersionReturnsOnCall[len(fake.aPIVersionArgsForCall)] 548 fake.aPIVersionArgsForCall = append(fake.aPIVersionArgsForCall, struct { 549 }{}) 550 fake.recordInvocation("APIVersion", []interface{}{}) 551 fake.aPIVersionMutex.Unlock() 552 if fake.APIVersionStub != nil { 553 return fake.APIVersionStub() 554 } 555 if specificReturn { 556 return ret.result1 557 } 558 fakeReturns := fake.aPIVersionReturns 559 return fakeReturns.result1 560 } 561 562 func (fake *FakeConfig) APIVersionCallCount() int { 563 fake.aPIVersionMutex.RLock() 564 defer fake.aPIVersionMutex.RUnlock() 565 return len(fake.aPIVersionArgsForCall) 566 } 567 568 func (fake *FakeConfig) APIVersionCalls(stub func() string) { 569 fake.aPIVersionMutex.Lock() 570 defer fake.aPIVersionMutex.Unlock() 571 fake.APIVersionStub = stub 572 } 573 574 func (fake *FakeConfig) APIVersionReturns(result1 string) { 575 fake.aPIVersionMutex.Lock() 576 defer fake.aPIVersionMutex.Unlock() 577 fake.APIVersionStub = nil 578 fake.aPIVersionReturns = struct { 579 result1 string 580 }{result1} 581 } 582 583 func (fake *FakeConfig) APIVersionReturnsOnCall(i int, result1 string) { 584 fake.aPIVersionMutex.Lock() 585 defer fake.aPIVersionMutex.Unlock() 586 fake.APIVersionStub = nil 587 if fake.aPIVersionReturnsOnCall == nil { 588 fake.aPIVersionReturnsOnCall = make(map[int]struct { 589 result1 string 590 }) 591 } 592 fake.aPIVersionReturnsOnCall[i] = struct { 593 result1 string 594 }{result1} 595 } 596 597 func (fake *FakeConfig) AccessToken() string { 598 fake.accessTokenMutex.Lock() 599 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 600 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct { 601 }{}) 602 fake.recordInvocation("AccessToken", []interface{}{}) 603 fake.accessTokenMutex.Unlock() 604 if fake.AccessTokenStub != nil { 605 return fake.AccessTokenStub() 606 } 607 if specificReturn { 608 return ret.result1 609 } 610 fakeReturns := fake.accessTokenReturns 611 return fakeReturns.result1 612 } 613 614 func (fake *FakeConfig) AccessTokenCallCount() int { 615 fake.accessTokenMutex.RLock() 616 defer fake.accessTokenMutex.RUnlock() 617 return len(fake.accessTokenArgsForCall) 618 } 619 620 func (fake *FakeConfig) AccessTokenCalls(stub func() string) { 621 fake.accessTokenMutex.Lock() 622 defer fake.accessTokenMutex.Unlock() 623 fake.AccessTokenStub = stub 624 } 625 626 func (fake *FakeConfig) AccessTokenReturns(result1 string) { 627 fake.accessTokenMutex.Lock() 628 defer fake.accessTokenMutex.Unlock() 629 fake.AccessTokenStub = nil 630 fake.accessTokenReturns = struct { 631 result1 string 632 }{result1} 633 } 634 635 func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) { 636 fake.accessTokenMutex.Lock() 637 defer fake.accessTokenMutex.Unlock() 638 fake.AccessTokenStub = nil 639 if fake.accessTokenReturnsOnCall == nil { 640 fake.accessTokenReturnsOnCall = make(map[int]struct { 641 result1 string 642 }) 643 } 644 fake.accessTokenReturnsOnCall[i] = struct { 645 result1 string 646 }{result1} 647 } 648 649 func (fake *FakeConfig) AddPlugin(arg1 configv3.Plugin) { 650 fake.addPluginMutex.Lock() 651 fake.addPluginArgsForCall = append(fake.addPluginArgsForCall, struct { 652 arg1 configv3.Plugin 653 }{arg1}) 654 fake.recordInvocation("AddPlugin", []interface{}{arg1}) 655 fake.addPluginMutex.Unlock() 656 if fake.AddPluginStub != nil { 657 fake.AddPluginStub(arg1) 658 } 659 } 660 661 func (fake *FakeConfig) AddPluginCallCount() int { 662 fake.addPluginMutex.RLock() 663 defer fake.addPluginMutex.RUnlock() 664 return len(fake.addPluginArgsForCall) 665 } 666 667 func (fake *FakeConfig) AddPluginCalls(stub func(configv3.Plugin)) { 668 fake.addPluginMutex.Lock() 669 defer fake.addPluginMutex.Unlock() 670 fake.AddPluginStub = stub 671 } 672 673 func (fake *FakeConfig) AddPluginArgsForCall(i int) configv3.Plugin { 674 fake.addPluginMutex.RLock() 675 defer fake.addPluginMutex.RUnlock() 676 argsForCall := fake.addPluginArgsForCall[i] 677 return argsForCall.arg1 678 } 679 680 func (fake *FakeConfig) AddPluginRepository(arg1 string, arg2 string) { 681 fake.addPluginRepositoryMutex.Lock() 682 fake.addPluginRepositoryArgsForCall = append(fake.addPluginRepositoryArgsForCall, struct { 683 arg1 string 684 arg2 string 685 }{arg1, arg2}) 686 fake.recordInvocation("AddPluginRepository", []interface{}{arg1, arg2}) 687 fake.addPluginRepositoryMutex.Unlock() 688 if fake.AddPluginRepositoryStub != nil { 689 fake.AddPluginRepositoryStub(arg1, arg2) 690 } 691 } 692 693 func (fake *FakeConfig) AddPluginRepositoryCallCount() int { 694 fake.addPluginRepositoryMutex.RLock() 695 defer fake.addPluginRepositoryMutex.RUnlock() 696 return len(fake.addPluginRepositoryArgsForCall) 697 } 698 699 func (fake *FakeConfig) AddPluginRepositoryCalls(stub func(string, string)) { 700 fake.addPluginRepositoryMutex.Lock() 701 defer fake.addPluginRepositoryMutex.Unlock() 702 fake.AddPluginRepositoryStub = stub 703 } 704 705 func (fake *FakeConfig) AddPluginRepositoryArgsForCall(i int) (string, string) { 706 fake.addPluginRepositoryMutex.RLock() 707 defer fake.addPluginRepositoryMutex.RUnlock() 708 argsForCall := fake.addPluginRepositoryArgsForCall[i] 709 return argsForCall.arg1, argsForCall.arg2 710 } 711 712 func (fake *FakeConfig) BinaryName() string { 713 fake.binaryNameMutex.Lock() 714 ret, specificReturn := fake.binaryNameReturnsOnCall[len(fake.binaryNameArgsForCall)] 715 fake.binaryNameArgsForCall = append(fake.binaryNameArgsForCall, struct { 716 }{}) 717 fake.recordInvocation("BinaryName", []interface{}{}) 718 fake.binaryNameMutex.Unlock() 719 if fake.BinaryNameStub != nil { 720 return fake.BinaryNameStub() 721 } 722 if specificReturn { 723 return ret.result1 724 } 725 fakeReturns := fake.binaryNameReturns 726 return fakeReturns.result1 727 } 728 729 func (fake *FakeConfig) BinaryNameCallCount() int { 730 fake.binaryNameMutex.RLock() 731 defer fake.binaryNameMutex.RUnlock() 732 return len(fake.binaryNameArgsForCall) 733 } 734 735 func (fake *FakeConfig) BinaryNameCalls(stub func() string) { 736 fake.binaryNameMutex.Lock() 737 defer fake.binaryNameMutex.Unlock() 738 fake.BinaryNameStub = stub 739 } 740 741 func (fake *FakeConfig) BinaryNameReturns(result1 string) { 742 fake.binaryNameMutex.Lock() 743 defer fake.binaryNameMutex.Unlock() 744 fake.BinaryNameStub = nil 745 fake.binaryNameReturns = struct { 746 result1 string 747 }{result1} 748 } 749 750 func (fake *FakeConfig) BinaryNameReturnsOnCall(i int, result1 string) { 751 fake.binaryNameMutex.Lock() 752 defer fake.binaryNameMutex.Unlock() 753 fake.BinaryNameStub = nil 754 if fake.binaryNameReturnsOnCall == nil { 755 fake.binaryNameReturnsOnCall = make(map[int]struct { 756 result1 string 757 }) 758 } 759 fake.binaryNameReturnsOnCall[i] = struct { 760 result1 string 761 }{result1} 762 } 763 764 func (fake *FakeConfig) BinaryVersion() string { 765 fake.binaryVersionMutex.Lock() 766 ret, specificReturn := fake.binaryVersionReturnsOnCall[len(fake.binaryVersionArgsForCall)] 767 fake.binaryVersionArgsForCall = append(fake.binaryVersionArgsForCall, struct { 768 }{}) 769 fake.recordInvocation("BinaryVersion", []interface{}{}) 770 fake.binaryVersionMutex.Unlock() 771 if fake.BinaryVersionStub != nil { 772 return fake.BinaryVersionStub() 773 } 774 if specificReturn { 775 return ret.result1 776 } 777 fakeReturns := fake.binaryVersionReturns 778 return fakeReturns.result1 779 } 780 781 func (fake *FakeConfig) BinaryVersionCallCount() int { 782 fake.binaryVersionMutex.RLock() 783 defer fake.binaryVersionMutex.RUnlock() 784 return len(fake.binaryVersionArgsForCall) 785 } 786 787 func (fake *FakeConfig) BinaryVersionCalls(stub func() string) { 788 fake.binaryVersionMutex.Lock() 789 defer fake.binaryVersionMutex.Unlock() 790 fake.BinaryVersionStub = stub 791 } 792 793 func (fake *FakeConfig) BinaryVersionReturns(result1 string) { 794 fake.binaryVersionMutex.Lock() 795 defer fake.binaryVersionMutex.Unlock() 796 fake.BinaryVersionStub = nil 797 fake.binaryVersionReturns = struct { 798 result1 string 799 }{result1} 800 } 801 802 func (fake *FakeConfig) BinaryVersionReturnsOnCall(i int, result1 string) { 803 fake.binaryVersionMutex.Lock() 804 defer fake.binaryVersionMutex.Unlock() 805 fake.BinaryVersionStub = nil 806 if fake.binaryVersionReturnsOnCall == nil { 807 fake.binaryVersionReturnsOnCall = make(map[int]struct { 808 result1 string 809 }) 810 } 811 fake.binaryVersionReturnsOnCall[i] = struct { 812 result1 string 813 }{result1} 814 } 815 816 func (fake *FakeConfig) CFPassword() string { 817 fake.cFPasswordMutex.Lock() 818 ret, specificReturn := fake.cFPasswordReturnsOnCall[len(fake.cFPasswordArgsForCall)] 819 fake.cFPasswordArgsForCall = append(fake.cFPasswordArgsForCall, struct { 820 }{}) 821 fake.recordInvocation("CFPassword", []interface{}{}) 822 fake.cFPasswordMutex.Unlock() 823 if fake.CFPasswordStub != nil { 824 return fake.CFPasswordStub() 825 } 826 if specificReturn { 827 return ret.result1 828 } 829 fakeReturns := fake.cFPasswordReturns 830 return fakeReturns.result1 831 } 832 833 func (fake *FakeConfig) CFPasswordCallCount() int { 834 fake.cFPasswordMutex.RLock() 835 defer fake.cFPasswordMutex.RUnlock() 836 return len(fake.cFPasswordArgsForCall) 837 } 838 839 func (fake *FakeConfig) CFPasswordCalls(stub func() string) { 840 fake.cFPasswordMutex.Lock() 841 defer fake.cFPasswordMutex.Unlock() 842 fake.CFPasswordStub = stub 843 } 844 845 func (fake *FakeConfig) CFPasswordReturns(result1 string) { 846 fake.cFPasswordMutex.Lock() 847 defer fake.cFPasswordMutex.Unlock() 848 fake.CFPasswordStub = nil 849 fake.cFPasswordReturns = struct { 850 result1 string 851 }{result1} 852 } 853 854 func (fake *FakeConfig) CFPasswordReturnsOnCall(i int, result1 string) { 855 fake.cFPasswordMutex.Lock() 856 defer fake.cFPasswordMutex.Unlock() 857 fake.CFPasswordStub = nil 858 if fake.cFPasswordReturnsOnCall == nil { 859 fake.cFPasswordReturnsOnCall = make(map[int]struct { 860 result1 string 861 }) 862 } 863 fake.cFPasswordReturnsOnCall[i] = struct { 864 result1 string 865 }{result1} 866 } 867 868 func (fake *FakeConfig) CFUsername() string { 869 fake.cFUsernameMutex.Lock() 870 ret, specificReturn := fake.cFUsernameReturnsOnCall[len(fake.cFUsernameArgsForCall)] 871 fake.cFUsernameArgsForCall = append(fake.cFUsernameArgsForCall, struct { 872 }{}) 873 fake.recordInvocation("CFUsername", []interface{}{}) 874 fake.cFUsernameMutex.Unlock() 875 if fake.CFUsernameStub != nil { 876 return fake.CFUsernameStub() 877 } 878 if specificReturn { 879 return ret.result1 880 } 881 fakeReturns := fake.cFUsernameReturns 882 return fakeReturns.result1 883 } 884 885 func (fake *FakeConfig) CFUsernameCallCount() int { 886 fake.cFUsernameMutex.RLock() 887 defer fake.cFUsernameMutex.RUnlock() 888 return len(fake.cFUsernameArgsForCall) 889 } 890 891 func (fake *FakeConfig) CFUsernameCalls(stub func() string) { 892 fake.cFUsernameMutex.Lock() 893 defer fake.cFUsernameMutex.Unlock() 894 fake.CFUsernameStub = stub 895 } 896 897 func (fake *FakeConfig) CFUsernameReturns(result1 string) { 898 fake.cFUsernameMutex.Lock() 899 defer fake.cFUsernameMutex.Unlock() 900 fake.CFUsernameStub = nil 901 fake.cFUsernameReturns = struct { 902 result1 string 903 }{result1} 904 } 905 906 func (fake *FakeConfig) CFUsernameReturnsOnCall(i int, result1 string) { 907 fake.cFUsernameMutex.Lock() 908 defer fake.cFUsernameMutex.Unlock() 909 fake.CFUsernameStub = nil 910 if fake.cFUsernameReturnsOnCall == nil { 911 fake.cFUsernameReturnsOnCall = make(map[int]struct { 912 result1 string 913 }) 914 } 915 fake.cFUsernameReturnsOnCall[i] = struct { 916 result1 string 917 }{result1} 918 } 919 920 func (fake *FakeConfig) ColorEnabled() configv3.ColorSetting { 921 fake.colorEnabledMutex.Lock() 922 ret, specificReturn := fake.colorEnabledReturnsOnCall[len(fake.colorEnabledArgsForCall)] 923 fake.colorEnabledArgsForCall = append(fake.colorEnabledArgsForCall, struct { 924 }{}) 925 fake.recordInvocation("ColorEnabled", []interface{}{}) 926 fake.colorEnabledMutex.Unlock() 927 if fake.ColorEnabledStub != nil { 928 return fake.ColorEnabledStub() 929 } 930 if specificReturn { 931 return ret.result1 932 } 933 fakeReturns := fake.colorEnabledReturns 934 return fakeReturns.result1 935 } 936 937 func (fake *FakeConfig) ColorEnabledCallCount() int { 938 fake.colorEnabledMutex.RLock() 939 defer fake.colorEnabledMutex.RUnlock() 940 return len(fake.colorEnabledArgsForCall) 941 } 942 943 func (fake *FakeConfig) ColorEnabledCalls(stub func() configv3.ColorSetting) { 944 fake.colorEnabledMutex.Lock() 945 defer fake.colorEnabledMutex.Unlock() 946 fake.ColorEnabledStub = stub 947 } 948 949 func (fake *FakeConfig) ColorEnabledReturns(result1 configv3.ColorSetting) { 950 fake.colorEnabledMutex.Lock() 951 defer fake.colorEnabledMutex.Unlock() 952 fake.ColorEnabledStub = nil 953 fake.colorEnabledReturns = struct { 954 result1 configv3.ColorSetting 955 }{result1} 956 } 957 958 func (fake *FakeConfig) ColorEnabledReturnsOnCall(i int, result1 configv3.ColorSetting) { 959 fake.colorEnabledMutex.Lock() 960 defer fake.colorEnabledMutex.Unlock() 961 fake.ColorEnabledStub = nil 962 if fake.colorEnabledReturnsOnCall == nil { 963 fake.colorEnabledReturnsOnCall = make(map[int]struct { 964 result1 configv3.ColorSetting 965 }) 966 } 967 fake.colorEnabledReturnsOnCall[i] = struct { 968 result1 configv3.ColorSetting 969 }{result1} 970 } 971 972 func (fake *FakeConfig) CurrentUser() (configv3.User, error) { 973 fake.currentUserMutex.Lock() 974 ret, specificReturn := fake.currentUserReturnsOnCall[len(fake.currentUserArgsForCall)] 975 fake.currentUserArgsForCall = append(fake.currentUserArgsForCall, struct { 976 }{}) 977 fake.recordInvocation("CurrentUser", []interface{}{}) 978 fake.currentUserMutex.Unlock() 979 if fake.CurrentUserStub != nil { 980 return fake.CurrentUserStub() 981 } 982 if specificReturn { 983 return ret.result1, ret.result2 984 } 985 fakeReturns := fake.currentUserReturns 986 return fakeReturns.result1, fakeReturns.result2 987 } 988 989 func (fake *FakeConfig) CurrentUserCallCount() int { 990 fake.currentUserMutex.RLock() 991 defer fake.currentUserMutex.RUnlock() 992 return len(fake.currentUserArgsForCall) 993 } 994 995 func (fake *FakeConfig) CurrentUserCalls(stub func() (configv3.User, error)) { 996 fake.currentUserMutex.Lock() 997 defer fake.currentUserMutex.Unlock() 998 fake.CurrentUserStub = stub 999 } 1000 1001 func (fake *FakeConfig) CurrentUserReturns(result1 configv3.User, result2 error) { 1002 fake.currentUserMutex.Lock() 1003 defer fake.currentUserMutex.Unlock() 1004 fake.CurrentUserStub = nil 1005 fake.currentUserReturns = struct { 1006 result1 configv3.User 1007 result2 error 1008 }{result1, result2} 1009 } 1010 1011 func (fake *FakeConfig) CurrentUserReturnsOnCall(i int, result1 configv3.User, result2 error) { 1012 fake.currentUserMutex.Lock() 1013 defer fake.currentUserMutex.Unlock() 1014 fake.CurrentUserStub = nil 1015 if fake.currentUserReturnsOnCall == nil { 1016 fake.currentUserReturnsOnCall = make(map[int]struct { 1017 result1 configv3.User 1018 result2 error 1019 }) 1020 } 1021 fake.currentUserReturnsOnCall[i] = struct { 1022 result1 configv3.User 1023 result2 error 1024 }{result1, result2} 1025 } 1026 1027 func (fake *FakeConfig) CurrentUserName() (string, error) { 1028 fake.currentUserNameMutex.Lock() 1029 ret, specificReturn := fake.currentUserNameReturnsOnCall[len(fake.currentUserNameArgsForCall)] 1030 fake.currentUserNameArgsForCall = append(fake.currentUserNameArgsForCall, struct { 1031 }{}) 1032 fake.recordInvocation("CurrentUserName", []interface{}{}) 1033 fake.currentUserNameMutex.Unlock() 1034 if fake.CurrentUserNameStub != nil { 1035 return fake.CurrentUserNameStub() 1036 } 1037 if specificReturn { 1038 return ret.result1, ret.result2 1039 } 1040 fakeReturns := fake.currentUserNameReturns 1041 return fakeReturns.result1, fakeReturns.result2 1042 } 1043 1044 func (fake *FakeConfig) CurrentUserNameCallCount() int { 1045 fake.currentUserNameMutex.RLock() 1046 defer fake.currentUserNameMutex.RUnlock() 1047 return len(fake.currentUserNameArgsForCall) 1048 } 1049 1050 func (fake *FakeConfig) CurrentUserNameCalls(stub func() (string, error)) { 1051 fake.currentUserNameMutex.Lock() 1052 defer fake.currentUserNameMutex.Unlock() 1053 fake.CurrentUserNameStub = stub 1054 } 1055 1056 func (fake *FakeConfig) CurrentUserNameReturns(result1 string, result2 error) { 1057 fake.currentUserNameMutex.Lock() 1058 defer fake.currentUserNameMutex.Unlock() 1059 fake.CurrentUserNameStub = nil 1060 fake.currentUserNameReturns = struct { 1061 result1 string 1062 result2 error 1063 }{result1, result2} 1064 } 1065 1066 func (fake *FakeConfig) CurrentUserNameReturnsOnCall(i int, result1 string, result2 error) { 1067 fake.currentUserNameMutex.Lock() 1068 defer fake.currentUserNameMutex.Unlock() 1069 fake.CurrentUserNameStub = nil 1070 if fake.currentUserNameReturnsOnCall == nil { 1071 fake.currentUserNameReturnsOnCall = make(map[int]struct { 1072 result1 string 1073 result2 error 1074 }) 1075 } 1076 fake.currentUserNameReturnsOnCall[i] = struct { 1077 result1 string 1078 result2 error 1079 }{result1, result2} 1080 } 1081 1082 func (fake *FakeConfig) DialTimeout() time.Duration { 1083 fake.dialTimeoutMutex.Lock() 1084 ret, specificReturn := fake.dialTimeoutReturnsOnCall[len(fake.dialTimeoutArgsForCall)] 1085 fake.dialTimeoutArgsForCall = append(fake.dialTimeoutArgsForCall, struct { 1086 }{}) 1087 fake.recordInvocation("DialTimeout", []interface{}{}) 1088 fake.dialTimeoutMutex.Unlock() 1089 if fake.DialTimeoutStub != nil { 1090 return fake.DialTimeoutStub() 1091 } 1092 if specificReturn { 1093 return ret.result1 1094 } 1095 fakeReturns := fake.dialTimeoutReturns 1096 return fakeReturns.result1 1097 } 1098 1099 func (fake *FakeConfig) DialTimeoutCallCount() int { 1100 fake.dialTimeoutMutex.RLock() 1101 defer fake.dialTimeoutMutex.RUnlock() 1102 return len(fake.dialTimeoutArgsForCall) 1103 } 1104 1105 func (fake *FakeConfig) DialTimeoutCalls(stub func() time.Duration) { 1106 fake.dialTimeoutMutex.Lock() 1107 defer fake.dialTimeoutMutex.Unlock() 1108 fake.DialTimeoutStub = stub 1109 } 1110 1111 func (fake *FakeConfig) DialTimeoutReturns(result1 time.Duration) { 1112 fake.dialTimeoutMutex.Lock() 1113 defer fake.dialTimeoutMutex.Unlock() 1114 fake.DialTimeoutStub = nil 1115 fake.dialTimeoutReturns = struct { 1116 result1 time.Duration 1117 }{result1} 1118 } 1119 1120 func (fake *FakeConfig) DialTimeoutReturnsOnCall(i int, result1 time.Duration) { 1121 fake.dialTimeoutMutex.Lock() 1122 defer fake.dialTimeoutMutex.Unlock() 1123 fake.DialTimeoutStub = nil 1124 if fake.dialTimeoutReturnsOnCall == nil { 1125 fake.dialTimeoutReturnsOnCall = make(map[int]struct { 1126 result1 time.Duration 1127 }) 1128 } 1129 fake.dialTimeoutReturnsOnCall[i] = struct { 1130 result1 time.Duration 1131 }{result1} 1132 } 1133 1134 func (fake *FakeConfig) DockerPassword() string { 1135 fake.dockerPasswordMutex.Lock() 1136 ret, specificReturn := fake.dockerPasswordReturnsOnCall[len(fake.dockerPasswordArgsForCall)] 1137 fake.dockerPasswordArgsForCall = append(fake.dockerPasswordArgsForCall, struct { 1138 }{}) 1139 fake.recordInvocation("DockerPassword", []interface{}{}) 1140 fake.dockerPasswordMutex.Unlock() 1141 if fake.DockerPasswordStub != nil { 1142 return fake.DockerPasswordStub() 1143 } 1144 if specificReturn { 1145 return ret.result1 1146 } 1147 fakeReturns := fake.dockerPasswordReturns 1148 return fakeReturns.result1 1149 } 1150 1151 func (fake *FakeConfig) DockerPasswordCallCount() int { 1152 fake.dockerPasswordMutex.RLock() 1153 defer fake.dockerPasswordMutex.RUnlock() 1154 return len(fake.dockerPasswordArgsForCall) 1155 } 1156 1157 func (fake *FakeConfig) DockerPasswordCalls(stub func() string) { 1158 fake.dockerPasswordMutex.Lock() 1159 defer fake.dockerPasswordMutex.Unlock() 1160 fake.DockerPasswordStub = stub 1161 } 1162 1163 func (fake *FakeConfig) DockerPasswordReturns(result1 string) { 1164 fake.dockerPasswordMutex.Lock() 1165 defer fake.dockerPasswordMutex.Unlock() 1166 fake.DockerPasswordStub = nil 1167 fake.dockerPasswordReturns = struct { 1168 result1 string 1169 }{result1} 1170 } 1171 1172 func (fake *FakeConfig) DockerPasswordReturnsOnCall(i int, result1 string) { 1173 fake.dockerPasswordMutex.Lock() 1174 defer fake.dockerPasswordMutex.Unlock() 1175 fake.DockerPasswordStub = nil 1176 if fake.dockerPasswordReturnsOnCall == nil { 1177 fake.dockerPasswordReturnsOnCall = make(map[int]struct { 1178 result1 string 1179 }) 1180 } 1181 fake.dockerPasswordReturnsOnCall[i] = struct { 1182 result1 string 1183 }{result1} 1184 } 1185 1186 func (fake *FakeConfig) Experimental() bool { 1187 fake.experimentalMutex.Lock() 1188 ret, specificReturn := fake.experimentalReturnsOnCall[len(fake.experimentalArgsForCall)] 1189 fake.experimentalArgsForCall = append(fake.experimentalArgsForCall, struct { 1190 }{}) 1191 fake.recordInvocation("Experimental", []interface{}{}) 1192 fake.experimentalMutex.Unlock() 1193 if fake.ExperimentalStub != nil { 1194 return fake.ExperimentalStub() 1195 } 1196 if specificReturn { 1197 return ret.result1 1198 } 1199 fakeReturns := fake.experimentalReturns 1200 return fakeReturns.result1 1201 } 1202 1203 func (fake *FakeConfig) ExperimentalCallCount() int { 1204 fake.experimentalMutex.RLock() 1205 defer fake.experimentalMutex.RUnlock() 1206 return len(fake.experimentalArgsForCall) 1207 } 1208 1209 func (fake *FakeConfig) ExperimentalCalls(stub func() bool) { 1210 fake.experimentalMutex.Lock() 1211 defer fake.experimentalMutex.Unlock() 1212 fake.ExperimentalStub = stub 1213 } 1214 1215 func (fake *FakeConfig) ExperimentalReturns(result1 bool) { 1216 fake.experimentalMutex.Lock() 1217 defer fake.experimentalMutex.Unlock() 1218 fake.ExperimentalStub = nil 1219 fake.experimentalReturns = struct { 1220 result1 bool 1221 }{result1} 1222 } 1223 1224 func (fake *FakeConfig) ExperimentalReturnsOnCall(i int, result1 bool) { 1225 fake.experimentalMutex.Lock() 1226 defer fake.experimentalMutex.Unlock() 1227 fake.ExperimentalStub = nil 1228 if fake.experimentalReturnsOnCall == nil { 1229 fake.experimentalReturnsOnCall = make(map[int]struct { 1230 result1 bool 1231 }) 1232 } 1233 fake.experimentalReturnsOnCall[i] = struct { 1234 result1 bool 1235 }{result1} 1236 } 1237 1238 func (fake *FakeConfig) GetPlugin(arg1 string) (configv3.Plugin, bool) { 1239 fake.getPluginMutex.Lock() 1240 ret, specificReturn := fake.getPluginReturnsOnCall[len(fake.getPluginArgsForCall)] 1241 fake.getPluginArgsForCall = append(fake.getPluginArgsForCall, struct { 1242 arg1 string 1243 }{arg1}) 1244 fake.recordInvocation("GetPlugin", []interface{}{arg1}) 1245 fake.getPluginMutex.Unlock() 1246 if fake.GetPluginStub != nil { 1247 return fake.GetPluginStub(arg1) 1248 } 1249 if specificReturn { 1250 return ret.result1, ret.result2 1251 } 1252 fakeReturns := fake.getPluginReturns 1253 return fakeReturns.result1, fakeReturns.result2 1254 } 1255 1256 func (fake *FakeConfig) GetPluginCallCount() int { 1257 fake.getPluginMutex.RLock() 1258 defer fake.getPluginMutex.RUnlock() 1259 return len(fake.getPluginArgsForCall) 1260 } 1261 1262 func (fake *FakeConfig) GetPluginCalls(stub func(string) (configv3.Plugin, bool)) { 1263 fake.getPluginMutex.Lock() 1264 defer fake.getPluginMutex.Unlock() 1265 fake.GetPluginStub = stub 1266 } 1267 1268 func (fake *FakeConfig) GetPluginArgsForCall(i int) string { 1269 fake.getPluginMutex.RLock() 1270 defer fake.getPluginMutex.RUnlock() 1271 argsForCall := fake.getPluginArgsForCall[i] 1272 return argsForCall.arg1 1273 } 1274 1275 func (fake *FakeConfig) GetPluginReturns(result1 configv3.Plugin, result2 bool) { 1276 fake.getPluginMutex.Lock() 1277 defer fake.getPluginMutex.Unlock() 1278 fake.GetPluginStub = nil 1279 fake.getPluginReturns = struct { 1280 result1 configv3.Plugin 1281 result2 bool 1282 }{result1, result2} 1283 } 1284 1285 func (fake *FakeConfig) GetPluginReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 1286 fake.getPluginMutex.Lock() 1287 defer fake.getPluginMutex.Unlock() 1288 fake.GetPluginStub = nil 1289 if fake.getPluginReturnsOnCall == nil { 1290 fake.getPluginReturnsOnCall = make(map[int]struct { 1291 result1 configv3.Plugin 1292 result2 bool 1293 }) 1294 } 1295 fake.getPluginReturnsOnCall[i] = struct { 1296 result1 configv3.Plugin 1297 result2 bool 1298 }{result1, result2} 1299 } 1300 1301 func (fake *FakeConfig) GetPluginCaseInsensitive(arg1 string) (configv3.Plugin, bool) { 1302 fake.getPluginCaseInsensitiveMutex.Lock() 1303 ret, specificReturn := fake.getPluginCaseInsensitiveReturnsOnCall[len(fake.getPluginCaseInsensitiveArgsForCall)] 1304 fake.getPluginCaseInsensitiveArgsForCall = append(fake.getPluginCaseInsensitiveArgsForCall, struct { 1305 arg1 string 1306 }{arg1}) 1307 fake.recordInvocation("GetPluginCaseInsensitive", []interface{}{arg1}) 1308 fake.getPluginCaseInsensitiveMutex.Unlock() 1309 if fake.GetPluginCaseInsensitiveStub != nil { 1310 return fake.GetPluginCaseInsensitiveStub(arg1) 1311 } 1312 if specificReturn { 1313 return ret.result1, ret.result2 1314 } 1315 fakeReturns := fake.getPluginCaseInsensitiveReturns 1316 return fakeReturns.result1, fakeReturns.result2 1317 } 1318 1319 func (fake *FakeConfig) GetPluginCaseInsensitiveCallCount() int { 1320 fake.getPluginCaseInsensitiveMutex.RLock() 1321 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 1322 return len(fake.getPluginCaseInsensitiveArgsForCall) 1323 } 1324 1325 func (fake *FakeConfig) GetPluginCaseInsensitiveCalls(stub func(string) (configv3.Plugin, bool)) { 1326 fake.getPluginCaseInsensitiveMutex.Lock() 1327 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1328 fake.GetPluginCaseInsensitiveStub = stub 1329 } 1330 1331 func (fake *FakeConfig) GetPluginCaseInsensitiveArgsForCall(i int) string { 1332 fake.getPluginCaseInsensitiveMutex.RLock() 1333 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 1334 argsForCall := fake.getPluginCaseInsensitiveArgsForCall[i] 1335 return argsForCall.arg1 1336 } 1337 1338 func (fake *FakeConfig) GetPluginCaseInsensitiveReturns(result1 configv3.Plugin, result2 bool) { 1339 fake.getPluginCaseInsensitiveMutex.Lock() 1340 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1341 fake.GetPluginCaseInsensitiveStub = nil 1342 fake.getPluginCaseInsensitiveReturns = struct { 1343 result1 configv3.Plugin 1344 result2 bool 1345 }{result1, result2} 1346 } 1347 1348 func (fake *FakeConfig) GetPluginCaseInsensitiveReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 1349 fake.getPluginCaseInsensitiveMutex.Lock() 1350 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1351 fake.GetPluginCaseInsensitiveStub = nil 1352 if fake.getPluginCaseInsensitiveReturnsOnCall == nil { 1353 fake.getPluginCaseInsensitiveReturnsOnCall = make(map[int]struct { 1354 result1 configv3.Plugin 1355 result2 bool 1356 }) 1357 } 1358 fake.getPluginCaseInsensitiveReturnsOnCall[i] = struct { 1359 result1 configv3.Plugin 1360 result2 bool 1361 }{result1, result2} 1362 } 1363 1364 func (fake *FakeConfig) HasTargetedOrganization() bool { 1365 fake.hasTargetedOrganizationMutex.Lock() 1366 ret, specificReturn := fake.hasTargetedOrganizationReturnsOnCall[len(fake.hasTargetedOrganizationArgsForCall)] 1367 fake.hasTargetedOrganizationArgsForCall = append(fake.hasTargetedOrganizationArgsForCall, struct { 1368 }{}) 1369 fake.recordInvocation("HasTargetedOrganization", []interface{}{}) 1370 fake.hasTargetedOrganizationMutex.Unlock() 1371 if fake.HasTargetedOrganizationStub != nil { 1372 return fake.HasTargetedOrganizationStub() 1373 } 1374 if specificReturn { 1375 return ret.result1 1376 } 1377 fakeReturns := fake.hasTargetedOrganizationReturns 1378 return fakeReturns.result1 1379 } 1380 1381 func (fake *FakeConfig) HasTargetedOrganizationCallCount() int { 1382 fake.hasTargetedOrganizationMutex.RLock() 1383 defer fake.hasTargetedOrganizationMutex.RUnlock() 1384 return len(fake.hasTargetedOrganizationArgsForCall) 1385 } 1386 1387 func (fake *FakeConfig) HasTargetedOrganizationCalls(stub func() bool) { 1388 fake.hasTargetedOrganizationMutex.Lock() 1389 defer fake.hasTargetedOrganizationMutex.Unlock() 1390 fake.HasTargetedOrganizationStub = stub 1391 } 1392 1393 func (fake *FakeConfig) HasTargetedOrganizationReturns(result1 bool) { 1394 fake.hasTargetedOrganizationMutex.Lock() 1395 defer fake.hasTargetedOrganizationMutex.Unlock() 1396 fake.HasTargetedOrganizationStub = nil 1397 fake.hasTargetedOrganizationReturns = struct { 1398 result1 bool 1399 }{result1} 1400 } 1401 1402 func (fake *FakeConfig) HasTargetedOrganizationReturnsOnCall(i int, result1 bool) { 1403 fake.hasTargetedOrganizationMutex.Lock() 1404 defer fake.hasTargetedOrganizationMutex.Unlock() 1405 fake.HasTargetedOrganizationStub = nil 1406 if fake.hasTargetedOrganizationReturnsOnCall == nil { 1407 fake.hasTargetedOrganizationReturnsOnCall = make(map[int]struct { 1408 result1 bool 1409 }) 1410 } 1411 fake.hasTargetedOrganizationReturnsOnCall[i] = struct { 1412 result1 bool 1413 }{result1} 1414 } 1415 1416 func (fake *FakeConfig) HasTargetedSpace() bool { 1417 fake.hasTargetedSpaceMutex.Lock() 1418 ret, specificReturn := fake.hasTargetedSpaceReturnsOnCall[len(fake.hasTargetedSpaceArgsForCall)] 1419 fake.hasTargetedSpaceArgsForCall = append(fake.hasTargetedSpaceArgsForCall, struct { 1420 }{}) 1421 fake.recordInvocation("HasTargetedSpace", []interface{}{}) 1422 fake.hasTargetedSpaceMutex.Unlock() 1423 if fake.HasTargetedSpaceStub != nil { 1424 return fake.HasTargetedSpaceStub() 1425 } 1426 if specificReturn { 1427 return ret.result1 1428 } 1429 fakeReturns := fake.hasTargetedSpaceReturns 1430 return fakeReturns.result1 1431 } 1432 1433 func (fake *FakeConfig) HasTargetedSpaceCallCount() int { 1434 fake.hasTargetedSpaceMutex.RLock() 1435 defer fake.hasTargetedSpaceMutex.RUnlock() 1436 return len(fake.hasTargetedSpaceArgsForCall) 1437 } 1438 1439 func (fake *FakeConfig) HasTargetedSpaceCalls(stub func() bool) { 1440 fake.hasTargetedSpaceMutex.Lock() 1441 defer fake.hasTargetedSpaceMutex.Unlock() 1442 fake.HasTargetedSpaceStub = stub 1443 } 1444 1445 func (fake *FakeConfig) HasTargetedSpaceReturns(result1 bool) { 1446 fake.hasTargetedSpaceMutex.Lock() 1447 defer fake.hasTargetedSpaceMutex.Unlock() 1448 fake.HasTargetedSpaceStub = nil 1449 fake.hasTargetedSpaceReturns = struct { 1450 result1 bool 1451 }{result1} 1452 } 1453 1454 func (fake *FakeConfig) HasTargetedSpaceReturnsOnCall(i int, result1 bool) { 1455 fake.hasTargetedSpaceMutex.Lock() 1456 defer fake.hasTargetedSpaceMutex.Unlock() 1457 fake.HasTargetedSpaceStub = nil 1458 if fake.hasTargetedSpaceReturnsOnCall == nil { 1459 fake.hasTargetedSpaceReturnsOnCall = make(map[int]struct { 1460 result1 bool 1461 }) 1462 } 1463 fake.hasTargetedSpaceReturnsOnCall[i] = struct { 1464 result1 bool 1465 }{result1} 1466 } 1467 1468 func (fake *FakeConfig) Locale() string { 1469 fake.localeMutex.Lock() 1470 ret, specificReturn := fake.localeReturnsOnCall[len(fake.localeArgsForCall)] 1471 fake.localeArgsForCall = append(fake.localeArgsForCall, struct { 1472 }{}) 1473 fake.recordInvocation("Locale", []interface{}{}) 1474 fake.localeMutex.Unlock() 1475 if fake.LocaleStub != nil { 1476 return fake.LocaleStub() 1477 } 1478 if specificReturn { 1479 return ret.result1 1480 } 1481 fakeReturns := fake.localeReturns 1482 return fakeReturns.result1 1483 } 1484 1485 func (fake *FakeConfig) LocaleCallCount() int { 1486 fake.localeMutex.RLock() 1487 defer fake.localeMutex.RUnlock() 1488 return len(fake.localeArgsForCall) 1489 } 1490 1491 func (fake *FakeConfig) LocaleCalls(stub func() string) { 1492 fake.localeMutex.Lock() 1493 defer fake.localeMutex.Unlock() 1494 fake.LocaleStub = stub 1495 } 1496 1497 func (fake *FakeConfig) LocaleReturns(result1 string) { 1498 fake.localeMutex.Lock() 1499 defer fake.localeMutex.Unlock() 1500 fake.LocaleStub = nil 1501 fake.localeReturns = struct { 1502 result1 string 1503 }{result1} 1504 } 1505 1506 func (fake *FakeConfig) LocaleReturnsOnCall(i int, result1 string) { 1507 fake.localeMutex.Lock() 1508 defer fake.localeMutex.Unlock() 1509 fake.LocaleStub = nil 1510 if fake.localeReturnsOnCall == nil { 1511 fake.localeReturnsOnCall = make(map[int]struct { 1512 result1 string 1513 }) 1514 } 1515 fake.localeReturnsOnCall[i] = struct { 1516 result1 string 1517 }{result1} 1518 } 1519 1520 func (fake *FakeConfig) MinCLIVersion() string { 1521 fake.minCLIVersionMutex.Lock() 1522 ret, specificReturn := fake.minCLIVersionReturnsOnCall[len(fake.minCLIVersionArgsForCall)] 1523 fake.minCLIVersionArgsForCall = append(fake.minCLIVersionArgsForCall, struct { 1524 }{}) 1525 fake.recordInvocation("MinCLIVersion", []interface{}{}) 1526 fake.minCLIVersionMutex.Unlock() 1527 if fake.MinCLIVersionStub != nil { 1528 return fake.MinCLIVersionStub() 1529 } 1530 if specificReturn { 1531 return ret.result1 1532 } 1533 fakeReturns := fake.minCLIVersionReturns 1534 return fakeReturns.result1 1535 } 1536 1537 func (fake *FakeConfig) MinCLIVersionCallCount() int { 1538 fake.minCLIVersionMutex.RLock() 1539 defer fake.minCLIVersionMutex.RUnlock() 1540 return len(fake.minCLIVersionArgsForCall) 1541 } 1542 1543 func (fake *FakeConfig) MinCLIVersionCalls(stub func() string) { 1544 fake.minCLIVersionMutex.Lock() 1545 defer fake.minCLIVersionMutex.Unlock() 1546 fake.MinCLIVersionStub = stub 1547 } 1548 1549 func (fake *FakeConfig) MinCLIVersionReturns(result1 string) { 1550 fake.minCLIVersionMutex.Lock() 1551 defer fake.minCLIVersionMutex.Unlock() 1552 fake.MinCLIVersionStub = nil 1553 fake.minCLIVersionReturns = struct { 1554 result1 string 1555 }{result1} 1556 } 1557 1558 func (fake *FakeConfig) MinCLIVersionReturnsOnCall(i int, result1 string) { 1559 fake.minCLIVersionMutex.Lock() 1560 defer fake.minCLIVersionMutex.Unlock() 1561 fake.MinCLIVersionStub = nil 1562 if fake.minCLIVersionReturnsOnCall == nil { 1563 fake.minCLIVersionReturnsOnCall = make(map[int]struct { 1564 result1 string 1565 }) 1566 } 1567 fake.minCLIVersionReturnsOnCall[i] = struct { 1568 result1 string 1569 }{result1} 1570 } 1571 1572 func (fake *FakeConfig) NOAARequestRetryCount() int { 1573 fake.nOAARequestRetryCountMutex.Lock() 1574 ret, specificReturn := fake.nOAARequestRetryCountReturnsOnCall[len(fake.nOAARequestRetryCountArgsForCall)] 1575 fake.nOAARequestRetryCountArgsForCall = append(fake.nOAARequestRetryCountArgsForCall, struct { 1576 }{}) 1577 fake.recordInvocation("NOAARequestRetryCount", []interface{}{}) 1578 fake.nOAARequestRetryCountMutex.Unlock() 1579 if fake.NOAARequestRetryCountStub != nil { 1580 return fake.NOAARequestRetryCountStub() 1581 } 1582 if specificReturn { 1583 return ret.result1 1584 } 1585 fakeReturns := fake.nOAARequestRetryCountReturns 1586 return fakeReturns.result1 1587 } 1588 1589 func (fake *FakeConfig) NOAARequestRetryCountCallCount() int { 1590 fake.nOAARequestRetryCountMutex.RLock() 1591 defer fake.nOAARequestRetryCountMutex.RUnlock() 1592 return len(fake.nOAARequestRetryCountArgsForCall) 1593 } 1594 1595 func (fake *FakeConfig) NOAARequestRetryCountCalls(stub func() int) { 1596 fake.nOAARequestRetryCountMutex.Lock() 1597 defer fake.nOAARequestRetryCountMutex.Unlock() 1598 fake.NOAARequestRetryCountStub = stub 1599 } 1600 1601 func (fake *FakeConfig) NOAARequestRetryCountReturns(result1 int) { 1602 fake.nOAARequestRetryCountMutex.Lock() 1603 defer fake.nOAARequestRetryCountMutex.Unlock() 1604 fake.NOAARequestRetryCountStub = nil 1605 fake.nOAARequestRetryCountReturns = struct { 1606 result1 int 1607 }{result1} 1608 } 1609 1610 func (fake *FakeConfig) NOAARequestRetryCountReturnsOnCall(i int, result1 int) { 1611 fake.nOAARequestRetryCountMutex.Lock() 1612 defer fake.nOAARequestRetryCountMutex.Unlock() 1613 fake.NOAARequestRetryCountStub = nil 1614 if fake.nOAARequestRetryCountReturnsOnCall == nil { 1615 fake.nOAARequestRetryCountReturnsOnCall = make(map[int]struct { 1616 result1 int 1617 }) 1618 } 1619 fake.nOAARequestRetryCountReturnsOnCall[i] = struct { 1620 result1 int 1621 }{result1} 1622 } 1623 1624 func (fake *FakeConfig) OverallPollingTimeout() time.Duration { 1625 fake.overallPollingTimeoutMutex.Lock() 1626 ret, specificReturn := fake.overallPollingTimeoutReturnsOnCall[len(fake.overallPollingTimeoutArgsForCall)] 1627 fake.overallPollingTimeoutArgsForCall = append(fake.overallPollingTimeoutArgsForCall, struct { 1628 }{}) 1629 fake.recordInvocation("OverallPollingTimeout", []interface{}{}) 1630 fake.overallPollingTimeoutMutex.Unlock() 1631 if fake.OverallPollingTimeoutStub != nil { 1632 return fake.OverallPollingTimeoutStub() 1633 } 1634 if specificReturn { 1635 return ret.result1 1636 } 1637 fakeReturns := fake.overallPollingTimeoutReturns 1638 return fakeReturns.result1 1639 } 1640 1641 func (fake *FakeConfig) OverallPollingTimeoutCallCount() int { 1642 fake.overallPollingTimeoutMutex.RLock() 1643 defer fake.overallPollingTimeoutMutex.RUnlock() 1644 return len(fake.overallPollingTimeoutArgsForCall) 1645 } 1646 1647 func (fake *FakeConfig) OverallPollingTimeoutCalls(stub func() time.Duration) { 1648 fake.overallPollingTimeoutMutex.Lock() 1649 defer fake.overallPollingTimeoutMutex.Unlock() 1650 fake.OverallPollingTimeoutStub = stub 1651 } 1652 1653 func (fake *FakeConfig) OverallPollingTimeoutReturns(result1 time.Duration) { 1654 fake.overallPollingTimeoutMutex.Lock() 1655 defer fake.overallPollingTimeoutMutex.Unlock() 1656 fake.OverallPollingTimeoutStub = nil 1657 fake.overallPollingTimeoutReturns = struct { 1658 result1 time.Duration 1659 }{result1} 1660 } 1661 1662 func (fake *FakeConfig) OverallPollingTimeoutReturnsOnCall(i int, result1 time.Duration) { 1663 fake.overallPollingTimeoutMutex.Lock() 1664 defer fake.overallPollingTimeoutMutex.Unlock() 1665 fake.OverallPollingTimeoutStub = nil 1666 if fake.overallPollingTimeoutReturnsOnCall == nil { 1667 fake.overallPollingTimeoutReturnsOnCall = make(map[int]struct { 1668 result1 time.Duration 1669 }) 1670 } 1671 fake.overallPollingTimeoutReturnsOnCall[i] = struct { 1672 result1 time.Duration 1673 }{result1} 1674 } 1675 1676 func (fake *FakeConfig) PluginHome() string { 1677 fake.pluginHomeMutex.Lock() 1678 ret, specificReturn := fake.pluginHomeReturnsOnCall[len(fake.pluginHomeArgsForCall)] 1679 fake.pluginHomeArgsForCall = append(fake.pluginHomeArgsForCall, struct { 1680 }{}) 1681 fake.recordInvocation("PluginHome", []interface{}{}) 1682 fake.pluginHomeMutex.Unlock() 1683 if fake.PluginHomeStub != nil { 1684 return fake.PluginHomeStub() 1685 } 1686 if specificReturn { 1687 return ret.result1 1688 } 1689 fakeReturns := fake.pluginHomeReturns 1690 return fakeReturns.result1 1691 } 1692 1693 func (fake *FakeConfig) PluginHomeCallCount() int { 1694 fake.pluginHomeMutex.RLock() 1695 defer fake.pluginHomeMutex.RUnlock() 1696 return len(fake.pluginHomeArgsForCall) 1697 } 1698 1699 func (fake *FakeConfig) PluginHomeCalls(stub func() string) { 1700 fake.pluginHomeMutex.Lock() 1701 defer fake.pluginHomeMutex.Unlock() 1702 fake.PluginHomeStub = stub 1703 } 1704 1705 func (fake *FakeConfig) PluginHomeReturns(result1 string) { 1706 fake.pluginHomeMutex.Lock() 1707 defer fake.pluginHomeMutex.Unlock() 1708 fake.PluginHomeStub = nil 1709 fake.pluginHomeReturns = struct { 1710 result1 string 1711 }{result1} 1712 } 1713 1714 func (fake *FakeConfig) PluginHomeReturnsOnCall(i int, result1 string) { 1715 fake.pluginHomeMutex.Lock() 1716 defer fake.pluginHomeMutex.Unlock() 1717 fake.PluginHomeStub = nil 1718 if fake.pluginHomeReturnsOnCall == nil { 1719 fake.pluginHomeReturnsOnCall = make(map[int]struct { 1720 result1 string 1721 }) 1722 } 1723 fake.pluginHomeReturnsOnCall[i] = struct { 1724 result1 string 1725 }{result1} 1726 } 1727 1728 func (fake *FakeConfig) PluginRepositories() []configv3.PluginRepository { 1729 fake.pluginRepositoriesMutex.Lock() 1730 ret, specificReturn := fake.pluginRepositoriesReturnsOnCall[len(fake.pluginRepositoriesArgsForCall)] 1731 fake.pluginRepositoriesArgsForCall = append(fake.pluginRepositoriesArgsForCall, struct { 1732 }{}) 1733 fake.recordInvocation("PluginRepositories", []interface{}{}) 1734 fake.pluginRepositoriesMutex.Unlock() 1735 if fake.PluginRepositoriesStub != nil { 1736 return fake.PluginRepositoriesStub() 1737 } 1738 if specificReturn { 1739 return ret.result1 1740 } 1741 fakeReturns := fake.pluginRepositoriesReturns 1742 return fakeReturns.result1 1743 } 1744 1745 func (fake *FakeConfig) PluginRepositoriesCallCount() int { 1746 fake.pluginRepositoriesMutex.RLock() 1747 defer fake.pluginRepositoriesMutex.RUnlock() 1748 return len(fake.pluginRepositoriesArgsForCall) 1749 } 1750 1751 func (fake *FakeConfig) PluginRepositoriesCalls(stub func() []configv3.PluginRepository) { 1752 fake.pluginRepositoriesMutex.Lock() 1753 defer fake.pluginRepositoriesMutex.Unlock() 1754 fake.PluginRepositoriesStub = stub 1755 } 1756 1757 func (fake *FakeConfig) PluginRepositoriesReturns(result1 []configv3.PluginRepository) { 1758 fake.pluginRepositoriesMutex.Lock() 1759 defer fake.pluginRepositoriesMutex.Unlock() 1760 fake.PluginRepositoriesStub = nil 1761 fake.pluginRepositoriesReturns = struct { 1762 result1 []configv3.PluginRepository 1763 }{result1} 1764 } 1765 1766 func (fake *FakeConfig) PluginRepositoriesReturnsOnCall(i int, result1 []configv3.PluginRepository) { 1767 fake.pluginRepositoriesMutex.Lock() 1768 defer fake.pluginRepositoriesMutex.Unlock() 1769 fake.PluginRepositoriesStub = nil 1770 if fake.pluginRepositoriesReturnsOnCall == nil { 1771 fake.pluginRepositoriesReturnsOnCall = make(map[int]struct { 1772 result1 []configv3.PluginRepository 1773 }) 1774 } 1775 fake.pluginRepositoriesReturnsOnCall[i] = struct { 1776 result1 []configv3.PluginRepository 1777 }{result1} 1778 } 1779 1780 func (fake *FakeConfig) Plugins() []configv3.Plugin { 1781 fake.pluginsMutex.Lock() 1782 ret, specificReturn := fake.pluginsReturnsOnCall[len(fake.pluginsArgsForCall)] 1783 fake.pluginsArgsForCall = append(fake.pluginsArgsForCall, struct { 1784 }{}) 1785 fake.recordInvocation("Plugins", []interface{}{}) 1786 fake.pluginsMutex.Unlock() 1787 if fake.PluginsStub != nil { 1788 return fake.PluginsStub() 1789 } 1790 if specificReturn { 1791 return ret.result1 1792 } 1793 fakeReturns := fake.pluginsReturns 1794 return fakeReturns.result1 1795 } 1796 1797 func (fake *FakeConfig) PluginsCallCount() int { 1798 fake.pluginsMutex.RLock() 1799 defer fake.pluginsMutex.RUnlock() 1800 return len(fake.pluginsArgsForCall) 1801 } 1802 1803 func (fake *FakeConfig) PluginsCalls(stub func() []configv3.Plugin) { 1804 fake.pluginsMutex.Lock() 1805 defer fake.pluginsMutex.Unlock() 1806 fake.PluginsStub = stub 1807 } 1808 1809 func (fake *FakeConfig) PluginsReturns(result1 []configv3.Plugin) { 1810 fake.pluginsMutex.Lock() 1811 defer fake.pluginsMutex.Unlock() 1812 fake.PluginsStub = nil 1813 fake.pluginsReturns = struct { 1814 result1 []configv3.Plugin 1815 }{result1} 1816 } 1817 1818 func (fake *FakeConfig) PluginsReturnsOnCall(i int, result1 []configv3.Plugin) { 1819 fake.pluginsMutex.Lock() 1820 defer fake.pluginsMutex.Unlock() 1821 fake.PluginsStub = nil 1822 if fake.pluginsReturnsOnCall == nil { 1823 fake.pluginsReturnsOnCall = make(map[int]struct { 1824 result1 []configv3.Plugin 1825 }) 1826 } 1827 fake.pluginsReturnsOnCall[i] = struct { 1828 result1 []configv3.Plugin 1829 }{result1} 1830 } 1831 1832 func (fake *FakeConfig) PollingInterval() time.Duration { 1833 fake.pollingIntervalMutex.Lock() 1834 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 1835 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct { 1836 }{}) 1837 fake.recordInvocation("PollingInterval", []interface{}{}) 1838 fake.pollingIntervalMutex.Unlock() 1839 if fake.PollingIntervalStub != nil { 1840 return fake.PollingIntervalStub() 1841 } 1842 if specificReturn { 1843 return ret.result1 1844 } 1845 fakeReturns := fake.pollingIntervalReturns 1846 return fakeReturns.result1 1847 } 1848 1849 func (fake *FakeConfig) PollingIntervalCallCount() int { 1850 fake.pollingIntervalMutex.RLock() 1851 defer fake.pollingIntervalMutex.RUnlock() 1852 return len(fake.pollingIntervalArgsForCall) 1853 } 1854 1855 func (fake *FakeConfig) PollingIntervalCalls(stub func() time.Duration) { 1856 fake.pollingIntervalMutex.Lock() 1857 defer fake.pollingIntervalMutex.Unlock() 1858 fake.PollingIntervalStub = stub 1859 } 1860 1861 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 1862 fake.pollingIntervalMutex.Lock() 1863 defer fake.pollingIntervalMutex.Unlock() 1864 fake.PollingIntervalStub = nil 1865 fake.pollingIntervalReturns = struct { 1866 result1 time.Duration 1867 }{result1} 1868 } 1869 1870 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 1871 fake.pollingIntervalMutex.Lock() 1872 defer fake.pollingIntervalMutex.Unlock() 1873 fake.PollingIntervalStub = nil 1874 if fake.pollingIntervalReturnsOnCall == nil { 1875 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 1876 result1 time.Duration 1877 }) 1878 } 1879 fake.pollingIntervalReturnsOnCall[i] = struct { 1880 result1 time.Duration 1881 }{result1} 1882 } 1883 1884 func (fake *FakeConfig) RefreshToken() string { 1885 fake.refreshTokenMutex.Lock() 1886 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 1887 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct { 1888 }{}) 1889 fake.recordInvocation("RefreshToken", []interface{}{}) 1890 fake.refreshTokenMutex.Unlock() 1891 if fake.RefreshTokenStub != nil { 1892 return fake.RefreshTokenStub() 1893 } 1894 if specificReturn { 1895 return ret.result1 1896 } 1897 fakeReturns := fake.refreshTokenReturns 1898 return fakeReturns.result1 1899 } 1900 1901 func (fake *FakeConfig) RefreshTokenCallCount() int { 1902 fake.refreshTokenMutex.RLock() 1903 defer fake.refreshTokenMutex.RUnlock() 1904 return len(fake.refreshTokenArgsForCall) 1905 } 1906 1907 func (fake *FakeConfig) RefreshTokenCalls(stub func() string) { 1908 fake.refreshTokenMutex.Lock() 1909 defer fake.refreshTokenMutex.Unlock() 1910 fake.RefreshTokenStub = stub 1911 } 1912 1913 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 1914 fake.refreshTokenMutex.Lock() 1915 defer fake.refreshTokenMutex.Unlock() 1916 fake.RefreshTokenStub = nil 1917 fake.refreshTokenReturns = struct { 1918 result1 string 1919 }{result1} 1920 } 1921 1922 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 1923 fake.refreshTokenMutex.Lock() 1924 defer fake.refreshTokenMutex.Unlock() 1925 fake.RefreshTokenStub = nil 1926 if fake.refreshTokenReturnsOnCall == nil { 1927 fake.refreshTokenReturnsOnCall = make(map[int]struct { 1928 result1 string 1929 }) 1930 } 1931 fake.refreshTokenReturnsOnCall[i] = struct { 1932 result1 string 1933 }{result1} 1934 } 1935 1936 func (fake *FakeConfig) RemovePlugin(arg1 string) { 1937 fake.removePluginMutex.Lock() 1938 fake.removePluginArgsForCall = append(fake.removePluginArgsForCall, struct { 1939 arg1 string 1940 }{arg1}) 1941 fake.recordInvocation("RemovePlugin", []interface{}{arg1}) 1942 fake.removePluginMutex.Unlock() 1943 if fake.RemovePluginStub != nil { 1944 fake.RemovePluginStub(arg1) 1945 } 1946 } 1947 1948 func (fake *FakeConfig) RemovePluginCallCount() int { 1949 fake.removePluginMutex.RLock() 1950 defer fake.removePluginMutex.RUnlock() 1951 return len(fake.removePluginArgsForCall) 1952 } 1953 1954 func (fake *FakeConfig) RemovePluginCalls(stub func(string)) { 1955 fake.removePluginMutex.Lock() 1956 defer fake.removePluginMutex.Unlock() 1957 fake.RemovePluginStub = stub 1958 } 1959 1960 func (fake *FakeConfig) RemovePluginArgsForCall(i int) string { 1961 fake.removePluginMutex.RLock() 1962 defer fake.removePluginMutex.RUnlock() 1963 argsForCall := fake.removePluginArgsForCall[i] 1964 return argsForCall.arg1 1965 } 1966 1967 func (fake *FakeConfig) RequestRetryCount() int { 1968 fake.requestRetryCountMutex.Lock() 1969 ret, specificReturn := fake.requestRetryCountReturnsOnCall[len(fake.requestRetryCountArgsForCall)] 1970 fake.requestRetryCountArgsForCall = append(fake.requestRetryCountArgsForCall, struct { 1971 }{}) 1972 fake.recordInvocation("RequestRetryCount", []interface{}{}) 1973 fake.requestRetryCountMutex.Unlock() 1974 if fake.RequestRetryCountStub != nil { 1975 return fake.RequestRetryCountStub() 1976 } 1977 if specificReturn { 1978 return ret.result1 1979 } 1980 fakeReturns := fake.requestRetryCountReturns 1981 return fakeReturns.result1 1982 } 1983 1984 func (fake *FakeConfig) RequestRetryCountCallCount() int { 1985 fake.requestRetryCountMutex.RLock() 1986 defer fake.requestRetryCountMutex.RUnlock() 1987 return len(fake.requestRetryCountArgsForCall) 1988 } 1989 1990 func (fake *FakeConfig) RequestRetryCountCalls(stub func() int) { 1991 fake.requestRetryCountMutex.Lock() 1992 defer fake.requestRetryCountMutex.Unlock() 1993 fake.RequestRetryCountStub = stub 1994 } 1995 1996 func (fake *FakeConfig) RequestRetryCountReturns(result1 int) { 1997 fake.requestRetryCountMutex.Lock() 1998 defer fake.requestRetryCountMutex.Unlock() 1999 fake.RequestRetryCountStub = nil 2000 fake.requestRetryCountReturns = struct { 2001 result1 int 2002 }{result1} 2003 } 2004 2005 func (fake *FakeConfig) RequestRetryCountReturnsOnCall(i int, result1 int) { 2006 fake.requestRetryCountMutex.Lock() 2007 defer fake.requestRetryCountMutex.Unlock() 2008 fake.RequestRetryCountStub = nil 2009 if fake.requestRetryCountReturnsOnCall == nil { 2010 fake.requestRetryCountReturnsOnCall = make(map[int]struct { 2011 result1 int 2012 }) 2013 } 2014 fake.requestRetryCountReturnsOnCall[i] = struct { 2015 result1 int 2016 }{result1} 2017 } 2018 2019 func (fake *FakeConfig) RoutingEndpoint() string { 2020 fake.routingEndpointMutex.Lock() 2021 ret, specificReturn := fake.routingEndpointReturnsOnCall[len(fake.routingEndpointArgsForCall)] 2022 fake.routingEndpointArgsForCall = append(fake.routingEndpointArgsForCall, struct { 2023 }{}) 2024 fake.recordInvocation("RoutingEndpoint", []interface{}{}) 2025 fake.routingEndpointMutex.Unlock() 2026 if fake.RoutingEndpointStub != nil { 2027 return fake.RoutingEndpointStub() 2028 } 2029 if specificReturn { 2030 return ret.result1 2031 } 2032 fakeReturns := fake.routingEndpointReturns 2033 return fakeReturns.result1 2034 } 2035 2036 func (fake *FakeConfig) RoutingEndpointCallCount() int { 2037 fake.routingEndpointMutex.RLock() 2038 defer fake.routingEndpointMutex.RUnlock() 2039 return len(fake.routingEndpointArgsForCall) 2040 } 2041 2042 func (fake *FakeConfig) RoutingEndpointCalls(stub func() string) { 2043 fake.routingEndpointMutex.Lock() 2044 defer fake.routingEndpointMutex.Unlock() 2045 fake.RoutingEndpointStub = stub 2046 } 2047 2048 func (fake *FakeConfig) RoutingEndpointReturns(result1 string) { 2049 fake.routingEndpointMutex.Lock() 2050 defer fake.routingEndpointMutex.Unlock() 2051 fake.RoutingEndpointStub = nil 2052 fake.routingEndpointReturns = struct { 2053 result1 string 2054 }{result1} 2055 } 2056 2057 func (fake *FakeConfig) RoutingEndpointReturnsOnCall(i int, result1 string) { 2058 fake.routingEndpointMutex.Lock() 2059 defer fake.routingEndpointMutex.Unlock() 2060 fake.RoutingEndpointStub = nil 2061 if fake.routingEndpointReturnsOnCall == nil { 2062 fake.routingEndpointReturnsOnCall = make(map[int]struct { 2063 result1 string 2064 }) 2065 } 2066 fake.routingEndpointReturnsOnCall[i] = struct { 2067 result1 string 2068 }{result1} 2069 } 2070 2071 func (fake *FakeConfig) SSHOAuthClient() string { 2072 fake.sSHOAuthClientMutex.Lock() 2073 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 2074 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct { 2075 }{}) 2076 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 2077 fake.sSHOAuthClientMutex.Unlock() 2078 if fake.SSHOAuthClientStub != nil { 2079 return fake.SSHOAuthClientStub() 2080 } 2081 if specificReturn { 2082 return ret.result1 2083 } 2084 fakeReturns := fake.sSHOAuthClientReturns 2085 return fakeReturns.result1 2086 } 2087 2088 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 2089 fake.sSHOAuthClientMutex.RLock() 2090 defer fake.sSHOAuthClientMutex.RUnlock() 2091 return len(fake.sSHOAuthClientArgsForCall) 2092 } 2093 2094 func (fake *FakeConfig) SSHOAuthClientCalls(stub func() string) { 2095 fake.sSHOAuthClientMutex.Lock() 2096 defer fake.sSHOAuthClientMutex.Unlock() 2097 fake.SSHOAuthClientStub = stub 2098 } 2099 2100 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 2101 fake.sSHOAuthClientMutex.Lock() 2102 defer fake.sSHOAuthClientMutex.Unlock() 2103 fake.SSHOAuthClientStub = nil 2104 fake.sSHOAuthClientReturns = struct { 2105 result1 string 2106 }{result1} 2107 } 2108 2109 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 2110 fake.sSHOAuthClientMutex.Lock() 2111 defer fake.sSHOAuthClientMutex.Unlock() 2112 fake.SSHOAuthClientStub = nil 2113 if fake.sSHOAuthClientReturnsOnCall == nil { 2114 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 2115 result1 string 2116 }) 2117 } 2118 fake.sSHOAuthClientReturnsOnCall[i] = struct { 2119 result1 string 2120 }{result1} 2121 } 2122 2123 func (fake *FakeConfig) SetAccessToken(arg1 string) { 2124 fake.setAccessTokenMutex.Lock() 2125 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 2126 arg1 string 2127 }{arg1}) 2128 fake.recordInvocation("SetAccessToken", []interface{}{arg1}) 2129 fake.setAccessTokenMutex.Unlock() 2130 if fake.SetAccessTokenStub != nil { 2131 fake.SetAccessTokenStub(arg1) 2132 } 2133 } 2134 2135 func (fake *FakeConfig) SetAccessTokenCallCount() int { 2136 fake.setAccessTokenMutex.RLock() 2137 defer fake.setAccessTokenMutex.RUnlock() 2138 return len(fake.setAccessTokenArgsForCall) 2139 } 2140 2141 func (fake *FakeConfig) SetAccessTokenCalls(stub func(string)) { 2142 fake.setAccessTokenMutex.Lock() 2143 defer fake.setAccessTokenMutex.Unlock() 2144 fake.SetAccessTokenStub = stub 2145 } 2146 2147 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 2148 fake.setAccessTokenMutex.RLock() 2149 defer fake.setAccessTokenMutex.RUnlock() 2150 argsForCall := fake.setAccessTokenArgsForCall[i] 2151 return argsForCall.arg1 2152 } 2153 2154 func (fake *FakeConfig) SetMinCLIVersion(arg1 string) { 2155 fake.setMinCLIVersionMutex.Lock() 2156 fake.setMinCLIVersionArgsForCall = append(fake.setMinCLIVersionArgsForCall, struct { 2157 arg1 string 2158 }{arg1}) 2159 fake.recordInvocation("SetMinCLIVersion", []interface{}{arg1}) 2160 fake.setMinCLIVersionMutex.Unlock() 2161 if fake.SetMinCLIVersionStub != nil { 2162 fake.SetMinCLIVersionStub(arg1) 2163 } 2164 } 2165 2166 func (fake *FakeConfig) SetMinCLIVersionCallCount() int { 2167 fake.setMinCLIVersionMutex.RLock() 2168 defer fake.setMinCLIVersionMutex.RUnlock() 2169 return len(fake.setMinCLIVersionArgsForCall) 2170 } 2171 2172 func (fake *FakeConfig) SetMinCLIVersionCalls(stub func(string)) { 2173 fake.setMinCLIVersionMutex.Lock() 2174 defer fake.setMinCLIVersionMutex.Unlock() 2175 fake.SetMinCLIVersionStub = stub 2176 } 2177 2178 func (fake *FakeConfig) SetMinCLIVersionArgsForCall(i int) string { 2179 fake.setMinCLIVersionMutex.RLock() 2180 defer fake.setMinCLIVersionMutex.RUnlock() 2181 argsForCall := fake.setMinCLIVersionArgsForCall[i] 2182 return argsForCall.arg1 2183 } 2184 2185 func (fake *FakeConfig) SetOrganizationInformation(arg1 string, arg2 string) { 2186 fake.setOrganizationInformationMutex.Lock() 2187 fake.setOrganizationInformationArgsForCall = append(fake.setOrganizationInformationArgsForCall, struct { 2188 arg1 string 2189 arg2 string 2190 }{arg1, arg2}) 2191 fake.recordInvocation("SetOrganizationInformation", []interface{}{arg1, arg2}) 2192 fake.setOrganizationInformationMutex.Unlock() 2193 if fake.SetOrganizationInformationStub != nil { 2194 fake.SetOrganizationInformationStub(arg1, arg2) 2195 } 2196 } 2197 2198 func (fake *FakeConfig) SetOrganizationInformationCallCount() int { 2199 fake.setOrganizationInformationMutex.RLock() 2200 defer fake.setOrganizationInformationMutex.RUnlock() 2201 return len(fake.setOrganizationInformationArgsForCall) 2202 } 2203 2204 func (fake *FakeConfig) SetOrganizationInformationCalls(stub func(string, string)) { 2205 fake.setOrganizationInformationMutex.Lock() 2206 defer fake.setOrganizationInformationMutex.Unlock() 2207 fake.SetOrganizationInformationStub = stub 2208 } 2209 2210 func (fake *FakeConfig) SetOrganizationInformationArgsForCall(i int) (string, string) { 2211 fake.setOrganizationInformationMutex.RLock() 2212 defer fake.setOrganizationInformationMutex.RUnlock() 2213 argsForCall := fake.setOrganizationInformationArgsForCall[i] 2214 return argsForCall.arg1, argsForCall.arg2 2215 } 2216 2217 func (fake *FakeConfig) SetRefreshToken(arg1 string) { 2218 fake.setRefreshTokenMutex.Lock() 2219 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 2220 arg1 string 2221 }{arg1}) 2222 fake.recordInvocation("SetRefreshToken", []interface{}{arg1}) 2223 fake.setRefreshTokenMutex.Unlock() 2224 if fake.SetRefreshTokenStub != nil { 2225 fake.SetRefreshTokenStub(arg1) 2226 } 2227 } 2228 2229 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 2230 fake.setRefreshTokenMutex.RLock() 2231 defer fake.setRefreshTokenMutex.RUnlock() 2232 return len(fake.setRefreshTokenArgsForCall) 2233 } 2234 2235 func (fake *FakeConfig) SetRefreshTokenCalls(stub func(string)) { 2236 fake.setRefreshTokenMutex.Lock() 2237 defer fake.setRefreshTokenMutex.Unlock() 2238 fake.SetRefreshTokenStub = stub 2239 } 2240 2241 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 2242 fake.setRefreshTokenMutex.RLock() 2243 defer fake.setRefreshTokenMutex.RUnlock() 2244 argsForCall := fake.setRefreshTokenArgsForCall[i] 2245 return argsForCall.arg1 2246 } 2247 2248 func (fake *FakeConfig) SetSpaceInformation(arg1 string, arg2 string, arg3 bool) { 2249 fake.setSpaceInformationMutex.Lock() 2250 fake.setSpaceInformationArgsForCall = append(fake.setSpaceInformationArgsForCall, struct { 2251 arg1 string 2252 arg2 string 2253 arg3 bool 2254 }{arg1, arg2, arg3}) 2255 fake.recordInvocation("SetSpaceInformation", []interface{}{arg1, arg2, arg3}) 2256 fake.setSpaceInformationMutex.Unlock() 2257 if fake.SetSpaceInformationStub != nil { 2258 fake.SetSpaceInformationStub(arg1, arg2, arg3) 2259 } 2260 } 2261 2262 func (fake *FakeConfig) SetSpaceInformationCallCount() int { 2263 fake.setSpaceInformationMutex.RLock() 2264 defer fake.setSpaceInformationMutex.RUnlock() 2265 return len(fake.setSpaceInformationArgsForCall) 2266 } 2267 2268 func (fake *FakeConfig) SetSpaceInformationCalls(stub func(string, string, bool)) { 2269 fake.setSpaceInformationMutex.Lock() 2270 defer fake.setSpaceInformationMutex.Unlock() 2271 fake.SetSpaceInformationStub = stub 2272 } 2273 2274 func (fake *FakeConfig) SetSpaceInformationArgsForCall(i int) (string, string, bool) { 2275 fake.setSpaceInformationMutex.RLock() 2276 defer fake.setSpaceInformationMutex.RUnlock() 2277 argsForCall := fake.setSpaceInformationArgsForCall[i] 2278 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2279 } 2280 2281 func (fake *FakeConfig) SetTargetInformation(arg1 string, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 bool) { 2282 fake.setTargetInformationMutex.Lock() 2283 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 2284 arg1 string 2285 arg2 string 2286 arg3 string 2287 arg4 string 2288 arg5 string 2289 arg6 string 2290 arg7 bool 2291 }{arg1, arg2, arg3, arg4, arg5, arg6, arg7}) 2292 fake.recordInvocation("SetTargetInformation", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6, arg7}) 2293 fake.setTargetInformationMutex.Unlock() 2294 if fake.SetTargetInformationStub != nil { 2295 fake.SetTargetInformationStub(arg1, arg2, arg3, arg4, arg5, arg6, arg7) 2296 } 2297 } 2298 2299 func (fake *FakeConfig) SetTargetInformationCallCount() int { 2300 fake.setTargetInformationMutex.RLock() 2301 defer fake.setTargetInformationMutex.RUnlock() 2302 return len(fake.setTargetInformationArgsForCall) 2303 } 2304 2305 func (fake *FakeConfig) SetTargetInformationCalls(stub func(string, string, string, string, string, string, bool)) { 2306 fake.setTargetInformationMutex.Lock() 2307 defer fake.setTargetInformationMutex.Unlock() 2308 fake.SetTargetInformationStub = stub 2309 } 2310 2311 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, bool) { 2312 fake.setTargetInformationMutex.RLock() 2313 defer fake.setTargetInformationMutex.RUnlock() 2314 argsForCall := fake.setTargetInformationArgsForCall[i] 2315 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6, argsForCall.arg7 2316 } 2317 2318 func (fake *FakeConfig) SetTokenInformation(arg1 string, arg2 string, arg3 string) { 2319 fake.setTokenInformationMutex.Lock() 2320 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 2321 arg1 string 2322 arg2 string 2323 arg3 string 2324 }{arg1, arg2, arg3}) 2325 fake.recordInvocation("SetTokenInformation", []interface{}{arg1, arg2, arg3}) 2326 fake.setTokenInformationMutex.Unlock() 2327 if fake.SetTokenInformationStub != nil { 2328 fake.SetTokenInformationStub(arg1, arg2, arg3) 2329 } 2330 } 2331 2332 func (fake *FakeConfig) SetTokenInformationCallCount() int { 2333 fake.setTokenInformationMutex.RLock() 2334 defer fake.setTokenInformationMutex.RUnlock() 2335 return len(fake.setTokenInformationArgsForCall) 2336 } 2337 2338 func (fake *FakeConfig) SetTokenInformationCalls(stub func(string, string, string)) { 2339 fake.setTokenInformationMutex.Lock() 2340 defer fake.setTokenInformationMutex.Unlock() 2341 fake.SetTokenInformationStub = stub 2342 } 2343 2344 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 2345 fake.setTokenInformationMutex.RLock() 2346 defer fake.setTokenInformationMutex.RUnlock() 2347 argsForCall := fake.setTokenInformationArgsForCall[i] 2348 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2349 } 2350 2351 func (fake *FakeConfig) SetUAAClientCredentials(arg1 string, arg2 string) { 2352 fake.setUAAClientCredentialsMutex.Lock() 2353 fake.setUAAClientCredentialsArgsForCall = append(fake.setUAAClientCredentialsArgsForCall, struct { 2354 arg1 string 2355 arg2 string 2356 }{arg1, arg2}) 2357 fake.recordInvocation("SetUAAClientCredentials", []interface{}{arg1, arg2}) 2358 fake.setUAAClientCredentialsMutex.Unlock() 2359 if fake.SetUAAClientCredentialsStub != nil { 2360 fake.SetUAAClientCredentialsStub(arg1, arg2) 2361 } 2362 } 2363 2364 func (fake *FakeConfig) SetUAAClientCredentialsCallCount() int { 2365 fake.setUAAClientCredentialsMutex.RLock() 2366 defer fake.setUAAClientCredentialsMutex.RUnlock() 2367 return len(fake.setUAAClientCredentialsArgsForCall) 2368 } 2369 2370 func (fake *FakeConfig) SetUAAClientCredentialsCalls(stub func(string, string)) { 2371 fake.setUAAClientCredentialsMutex.Lock() 2372 defer fake.setUAAClientCredentialsMutex.Unlock() 2373 fake.SetUAAClientCredentialsStub = stub 2374 } 2375 2376 func (fake *FakeConfig) SetUAAClientCredentialsArgsForCall(i int) (string, string) { 2377 fake.setUAAClientCredentialsMutex.RLock() 2378 defer fake.setUAAClientCredentialsMutex.RUnlock() 2379 argsForCall := fake.setUAAClientCredentialsArgsForCall[i] 2380 return argsForCall.arg1, argsForCall.arg2 2381 } 2382 2383 func (fake *FakeConfig) SetUAAEndpoint(arg1 string) { 2384 fake.setUAAEndpointMutex.Lock() 2385 fake.setUAAEndpointArgsForCall = append(fake.setUAAEndpointArgsForCall, struct { 2386 arg1 string 2387 }{arg1}) 2388 fake.recordInvocation("SetUAAEndpoint", []interface{}{arg1}) 2389 fake.setUAAEndpointMutex.Unlock() 2390 if fake.SetUAAEndpointStub != nil { 2391 fake.SetUAAEndpointStub(arg1) 2392 } 2393 } 2394 2395 func (fake *FakeConfig) SetUAAEndpointCallCount() int { 2396 fake.setUAAEndpointMutex.RLock() 2397 defer fake.setUAAEndpointMutex.RUnlock() 2398 return len(fake.setUAAEndpointArgsForCall) 2399 } 2400 2401 func (fake *FakeConfig) SetUAAEndpointCalls(stub func(string)) { 2402 fake.setUAAEndpointMutex.Lock() 2403 defer fake.setUAAEndpointMutex.Unlock() 2404 fake.SetUAAEndpointStub = stub 2405 } 2406 2407 func (fake *FakeConfig) SetUAAEndpointArgsForCall(i int) string { 2408 fake.setUAAEndpointMutex.RLock() 2409 defer fake.setUAAEndpointMutex.RUnlock() 2410 argsForCall := fake.setUAAEndpointArgsForCall[i] 2411 return argsForCall.arg1 2412 } 2413 2414 func (fake *FakeConfig) SetUAAGrantType(arg1 string) { 2415 fake.setUAAGrantTypeMutex.Lock() 2416 fake.setUAAGrantTypeArgsForCall = append(fake.setUAAGrantTypeArgsForCall, struct { 2417 arg1 string 2418 }{arg1}) 2419 fake.recordInvocation("SetUAAGrantType", []interface{}{arg1}) 2420 fake.setUAAGrantTypeMutex.Unlock() 2421 if fake.SetUAAGrantTypeStub != nil { 2422 fake.SetUAAGrantTypeStub(arg1) 2423 } 2424 } 2425 2426 func (fake *FakeConfig) SetUAAGrantTypeCallCount() int { 2427 fake.setUAAGrantTypeMutex.RLock() 2428 defer fake.setUAAGrantTypeMutex.RUnlock() 2429 return len(fake.setUAAGrantTypeArgsForCall) 2430 } 2431 2432 func (fake *FakeConfig) SetUAAGrantTypeCalls(stub func(string)) { 2433 fake.setUAAGrantTypeMutex.Lock() 2434 defer fake.setUAAGrantTypeMutex.Unlock() 2435 fake.SetUAAGrantTypeStub = stub 2436 } 2437 2438 func (fake *FakeConfig) SetUAAGrantTypeArgsForCall(i int) string { 2439 fake.setUAAGrantTypeMutex.RLock() 2440 defer fake.setUAAGrantTypeMutex.RUnlock() 2441 argsForCall := fake.setUAAGrantTypeArgsForCall[i] 2442 return argsForCall.arg1 2443 } 2444 2445 func (fake *FakeConfig) SkipSSLValidation() bool { 2446 fake.skipSSLValidationMutex.Lock() 2447 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 2448 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct { 2449 }{}) 2450 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 2451 fake.skipSSLValidationMutex.Unlock() 2452 if fake.SkipSSLValidationStub != nil { 2453 return fake.SkipSSLValidationStub() 2454 } 2455 if specificReturn { 2456 return ret.result1 2457 } 2458 fakeReturns := fake.skipSSLValidationReturns 2459 return fakeReturns.result1 2460 } 2461 2462 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 2463 fake.skipSSLValidationMutex.RLock() 2464 defer fake.skipSSLValidationMutex.RUnlock() 2465 return len(fake.skipSSLValidationArgsForCall) 2466 } 2467 2468 func (fake *FakeConfig) SkipSSLValidationCalls(stub func() bool) { 2469 fake.skipSSLValidationMutex.Lock() 2470 defer fake.skipSSLValidationMutex.Unlock() 2471 fake.SkipSSLValidationStub = stub 2472 } 2473 2474 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 2475 fake.skipSSLValidationMutex.Lock() 2476 defer fake.skipSSLValidationMutex.Unlock() 2477 fake.SkipSSLValidationStub = nil 2478 fake.skipSSLValidationReturns = struct { 2479 result1 bool 2480 }{result1} 2481 } 2482 2483 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 2484 fake.skipSSLValidationMutex.Lock() 2485 defer fake.skipSSLValidationMutex.Unlock() 2486 fake.SkipSSLValidationStub = nil 2487 if fake.skipSSLValidationReturnsOnCall == nil { 2488 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 2489 result1 bool 2490 }) 2491 } 2492 fake.skipSSLValidationReturnsOnCall[i] = struct { 2493 result1 bool 2494 }{result1} 2495 } 2496 2497 func (fake *FakeConfig) StagingTimeout() time.Duration { 2498 fake.stagingTimeoutMutex.Lock() 2499 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 2500 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct { 2501 }{}) 2502 fake.recordInvocation("StagingTimeout", []interface{}{}) 2503 fake.stagingTimeoutMutex.Unlock() 2504 if fake.StagingTimeoutStub != nil { 2505 return fake.StagingTimeoutStub() 2506 } 2507 if specificReturn { 2508 return ret.result1 2509 } 2510 fakeReturns := fake.stagingTimeoutReturns 2511 return fakeReturns.result1 2512 } 2513 2514 func (fake *FakeConfig) StagingTimeoutCallCount() int { 2515 fake.stagingTimeoutMutex.RLock() 2516 defer fake.stagingTimeoutMutex.RUnlock() 2517 return len(fake.stagingTimeoutArgsForCall) 2518 } 2519 2520 func (fake *FakeConfig) StagingTimeoutCalls(stub func() time.Duration) { 2521 fake.stagingTimeoutMutex.Lock() 2522 defer fake.stagingTimeoutMutex.Unlock() 2523 fake.StagingTimeoutStub = stub 2524 } 2525 2526 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 2527 fake.stagingTimeoutMutex.Lock() 2528 defer fake.stagingTimeoutMutex.Unlock() 2529 fake.StagingTimeoutStub = nil 2530 fake.stagingTimeoutReturns = struct { 2531 result1 time.Duration 2532 }{result1} 2533 } 2534 2535 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 2536 fake.stagingTimeoutMutex.Lock() 2537 defer fake.stagingTimeoutMutex.Unlock() 2538 fake.StagingTimeoutStub = nil 2539 if fake.stagingTimeoutReturnsOnCall == nil { 2540 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 2541 result1 time.Duration 2542 }) 2543 } 2544 fake.stagingTimeoutReturnsOnCall[i] = struct { 2545 result1 time.Duration 2546 }{result1} 2547 } 2548 2549 func (fake *FakeConfig) StartupTimeout() time.Duration { 2550 fake.startupTimeoutMutex.Lock() 2551 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 2552 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct { 2553 }{}) 2554 fake.recordInvocation("StartupTimeout", []interface{}{}) 2555 fake.startupTimeoutMutex.Unlock() 2556 if fake.StartupTimeoutStub != nil { 2557 return fake.StartupTimeoutStub() 2558 } 2559 if specificReturn { 2560 return ret.result1 2561 } 2562 fakeReturns := fake.startupTimeoutReturns 2563 return fakeReturns.result1 2564 } 2565 2566 func (fake *FakeConfig) StartupTimeoutCallCount() int { 2567 fake.startupTimeoutMutex.RLock() 2568 defer fake.startupTimeoutMutex.RUnlock() 2569 return len(fake.startupTimeoutArgsForCall) 2570 } 2571 2572 func (fake *FakeConfig) StartupTimeoutCalls(stub func() time.Duration) { 2573 fake.startupTimeoutMutex.Lock() 2574 defer fake.startupTimeoutMutex.Unlock() 2575 fake.StartupTimeoutStub = stub 2576 } 2577 2578 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 2579 fake.startupTimeoutMutex.Lock() 2580 defer fake.startupTimeoutMutex.Unlock() 2581 fake.StartupTimeoutStub = nil 2582 fake.startupTimeoutReturns = struct { 2583 result1 time.Duration 2584 }{result1} 2585 } 2586 2587 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 2588 fake.startupTimeoutMutex.Lock() 2589 defer fake.startupTimeoutMutex.Unlock() 2590 fake.StartupTimeoutStub = nil 2591 if fake.startupTimeoutReturnsOnCall == nil { 2592 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 2593 result1 time.Duration 2594 }) 2595 } 2596 fake.startupTimeoutReturnsOnCall[i] = struct { 2597 result1 time.Duration 2598 }{result1} 2599 } 2600 2601 func (fake *FakeConfig) Target() string { 2602 fake.targetMutex.Lock() 2603 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 2604 fake.targetArgsForCall = append(fake.targetArgsForCall, struct { 2605 }{}) 2606 fake.recordInvocation("Target", []interface{}{}) 2607 fake.targetMutex.Unlock() 2608 if fake.TargetStub != nil { 2609 return fake.TargetStub() 2610 } 2611 if specificReturn { 2612 return ret.result1 2613 } 2614 fakeReturns := fake.targetReturns 2615 return fakeReturns.result1 2616 } 2617 2618 func (fake *FakeConfig) TargetCallCount() int { 2619 fake.targetMutex.RLock() 2620 defer fake.targetMutex.RUnlock() 2621 return len(fake.targetArgsForCall) 2622 } 2623 2624 func (fake *FakeConfig) TargetCalls(stub func() string) { 2625 fake.targetMutex.Lock() 2626 defer fake.targetMutex.Unlock() 2627 fake.TargetStub = stub 2628 } 2629 2630 func (fake *FakeConfig) TargetReturns(result1 string) { 2631 fake.targetMutex.Lock() 2632 defer fake.targetMutex.Unlock() 2633 fake.TargetStub = nil 2634 fake.targetReturns = struct { 2635 result1 string 2636 }{result1} 2637 } 2638 2639 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 2640 fake.targetMutex.Lock() 2641 defer fake.targetMutex.Unlock() 2642 fake.TargetStub = nil 2643 if fake.targetReturnsOnCall == nil { 2644 fake.targetReturnsOnCall = make(map[int]struct { 2645 result1 string 2646 }) 2647 } 2648 fake.targetReturnsOnCall[i] = struct { 2649 result1 string 2650 }{result1} 2651 } 2652 2653 func (fake *FakeConfig) TargetedOrganization() configv3.Organization { 2654 fake.targetedOrganizationMutex.Lock() 2655 ret, specificReturn := fake.targetedOrganizationReturnsOnCall[len(fake.targetedOrganizationArgsForCall)] 2656 fake.targetedOrganizationArgsForCall = append(fake.targetedOrganizationArgsForCall, struct { 2657 }{}) 2658 fake.recordInvocation("TargetedOrganization", []interface{}{}) 2659 fake.targetedOrganizationMutex.Unlock() 2660 if fake.TargetedOrganizationStub != nil { 2661 return fake.TargetedOrganizationStub() 2662 } 2663 if specificReturn { 2664 return ret.result1 2665 } 2666 fakeReturns := fake.targetedOrganizationReturns 2667 return fakeReturns.result1 2668 } 2669 2670 func (fake *FakeConfig) TargetedOrganizationCallCount() int { 2671 fake.targetedOrganizationMutex.RLock() 2672 defer fake.targetedOrganizationMutex.RUnlock() 2673 return len(fake.targetedOrganizationArgsForCall) 2674 } 2675 2676 func (fake *FakeConfig) TargetedOrganizationCalls(stub func() configv3.Organization) { 2677 fake.targetedOrganizationMutex.Lock() 2678 defer fake.targetedOrganizationMutex.Unlock() 2679 fake.TargetedOrganizationStub = stub 2680 } 2681 2682 func (fake *FakeConfig) TargetedOrganizationReturns(result1 configv3.Organization) { 2683 fake.targetedOrganizationMutex.Lock() 2684 defer fake.targetedOrganizationMutex.Unlock() 2685 fake.TargetedOrganizationStub = nil 2686 fake.targetedOrganizationReturns = struct { 2687 result1 configv3.Organization 2688 }{result1} 2689 } 2690 2691 func (fake *FakeConfig) TargetedOrganizationReturnsOnCall(i int, result1 configv3.Organization) { 2692 fake.targetedOrganizationMutex.Lock() 2693 defer fake.targetedOrganizationMutex.Unlock() 2694 fake.TargetedOrganizationStub = nil 2695 if fake.targetedOrganizationReturnsOnCall == nil { 2696 fake.targetedOrganizationReturnsOnCall = make(map[int]struct { 2697 result1 configv3.Organization 2698 }) 2699 } 2700 fake.targetedOrganizationReturnsOnCall[i] = struct { 2701 result1 configv3.Organization 2702 }{result1} 2703 } 2704 2705 func (fake *FakeConfig) TargetedOrganizationName() string { 2706 fake.targetedOrganizationNameMutex.Lock() 2707 ret, specificReturn := fake.targetedOrganizationNameReturnsOnCall[len(fake.targetedOrganizationNameArgsForCall)] 2708 fake.targetedOrganizationNameArgsForCall = append(fake.targetedOrganizationNameArgsForCall, struct { 2709 }{}) 2710 fake.recordInvocation("TargetedOrganizationName", []interface{}{}) 2711 fake.targetedOrganizationNameMutex.Unlock() 2712 if fake.TargetedOrganizationNameStub != nil { 2713 return fake.TargetedOrganizationNameStub() 2714 } 2715 if specificReturn { 2716 return ret.result1 2717 } 2718 fakeReturns := fake.targetedOrganizationNameReturns 2719 return fakeReturns.result1 2720 } 2721 2722 func (fake *FakeConfig) TargetedOrganizationNameCallCount() int { 2723 fake.targetedOrganizationNameMutex.RLock() 2724 defer fake.targetedOrganizationNameMutex.RUnlock() 2725 return len(fake.targetedOrganizationNameArgsForCall) 2726 } 2727 2728 func (fake *FakeConfig) TargetedOrganizationNameCalls(stub func() string) { 2729 fake.targetedOrganizationNameMutex.Lock() 2730 defer fake.targetedOrganizationNameMutex.Unlock() 2731 fake.TargetedOrganizationNameStub = stub 2732 } 2733 2734 func (fake *FakeConfig) TargetedOrganizationNameReturns(result1 string) { 2735 fake.targetedOrganizationNameMutex.Lock() 2736 defer fake.targetedOrganizationNameMutex.Unlock() 2737 fake.TargetedOrganizationNameStub = nil 2738 fake.targetedOrganizationNameReturns = struct { 2739 result1 string 2740 }{result1} 2741 } 2742 2743 func (fake *FakeConfig) TargetedOrganizationNameReturnsOnCall(i int, result1 string) { 2744 fake.targetedOrganizationNameMutex.Lock() 2745 defer fake.targetedOrganizationNameMutex.Unlock() 2746 fake.TargetedOrganizationNameStub = nil 2747 if fake.targetedOrganizationNameReturnsOnCall == nil { 2748 fake.targetedOrganizationNameReturnsOnCall = make(map[int]struct { 2749 result1 string 2750 }) 2751 } 2752 fake.targetedOrganizationNameReturnsOnCall[i] = struct { 2753 result1 string 2754 }{result1} 2755 } 2756 2757 func (fake *FakeConfig) TargetedSpace() configv3.Space { 2758 fake.targetedSpaceMutex.Lock() 2759 ret, specificReturn := fake.targetedSpaceReturnsOnCall[len(fake.targetedSpaceArgsForCall)] 2760 fake.targetedSpaceArgsForCall = append(fake.targetedSpaceArgsForCall, struct { 2761 }{}) 2762 fake.recordInvocation("TargetedSpace", []interface{}{}) 2763 fake.targetedSpaceMutex.Unlock() 2764 if fake.TargetedSpaceStub != nil { 2765 return fake.TargetedSpaceStub() 2766 } 2767 if specificReturn { 2768 return ret.result1 2769 } 2770 fakeReturns := fake.targetedSpaceReturns 2771 return fakeReturns.result1 2772 } 2773 2774 func (fake *FakeConfig) TargetedSpaceCallCount() int { 2775 fake.targetedSpaceMutex.RLock() 2776 defer fake.targetedSpaceMutex.RUnlock() 2777 return len(fake.targetedSpaceArgsForCall) 2778 } 2779 2780 func (fake *FakeConfig) TargetedSpaceCalls(stub func() configv3.Space) { 2781 fake.targetedSpaceMutex.Lock() 2782 defer fake.targetedSpaceMutex.Unlock() 2783 fake.TargetedSpaceStub = stub 2784 } 2785 2786 func (fake *FakeConfig) TargetedSpaceReturns(result1 configv3.Space) { 2787 fake.targetedSpaceMutex.Lock() 2788 defer fake.targetedSpaceMutex.Unlock() 2789 fake.TargetedSpaceStub = nil 2790 fake.targetedSpaceReturns = struct { 2791 result1 configv3.Space 2792 }{result1} 2793 } 2794 2795 func (fake *FakeConfig) TargetedSpaceReturnsOnCall(i int, result1 configv3.Space) { 2796 fake.targetedSpaceMutex.Lock() 2797 defer fake.targetedSpaceMutex.Unlock() 2798 fake.TargetedSpaceStub = nil 2799 if fake.targetedSpaceReturnsOnCall == nil { 2800 fake.targetedSpaceReturnsOnCall = make(map[int]struct { 2801 result1 configv3.Space 2802 }) 2803 } 2804 fake.targetedSpaceReturnsOnCall[i] = struct { 2805 result1 configv3.Space 2806 }{result1} 2807 } 2808 2809 func (fake *FakeConfig) UAADisableKeepAlives() bool { 2810 fake.uAADisableKeepAlivesMutex.Lock() 2811 ret, specificReturn := fake.uAADisableKeepAlivesReturnsOnCall[len(fake.uAADisableKeepAlivesArgsForCall)] 2812 fake.uAADisableKeepAlivesArgsForCall = append(fake.uAADisableKeepAlivesArgsForCall, struct { 2813 }{}) 2814 fake.recordInvocation("UAADisableKeepAlives", []interface{}{}) 2815 fake.uAADisableKeepAlivesMutex.Unlock() 2816 if fake.UAADisableKeepAlivesStub != nil { 2817 return fake.UAADisableKeepAlivesStub() 2818 } 2819 if specificReturn { 2820 return ret.result1 2821 } 2822 fakeReturns := fake.uAADisableKeepAlivesReturns 2823 return fakeReturns.result1 2824 } 2825 2826 func (fake *FakeConfig) UAADisableKeepAlivesCallCount() int { 2827 fake.uAADisableKeepAlivesMutex.RLock() 2828 defer fake.uAADisableKeepAlivesMutex.RUnlock() 2829 return len(fake.uAADisableKeepAlivesArgsForCall) 2830 } 2831 2832 func (fake *FakeConfig) UAADisableKeepAlivesCalls(stub func() bool) { 2833 fake.uAADisableKeepAlivesMutex.Lock() 2834 defer fake.uAADisableKeepAlivesMutex.Unlock() 2835 fake.UAADisableKeepAlivesStub = stub 2836 } 2837 2838 func (fake *FakeConfig) UAADisableKeepAlivesReturns(result1 bool) { 2839 fake.uAADisableKeepAlivesMutex.Lock() 2840 defer fake.uAADisableKeepAlivesMutex.Unlock() 2841 fake.UAADisableKeepAlivesStub = nil 2842 fake.uAADisableKeepAlivesReturns = struct { 2843 result1 bool 2844 }{result1} 2845 } 2846 2847 func (fake *FakeConfig) UAADisableKeepAlivesReturnsOnCall(i int, result1 bool) { 2848 fake.uAADisableKeepAlivesMutex.Lock() 2849 defer fake.uAADisableKeepAlivesMutex.Unlock() 2850 fake.UAADisableKeepAlivesStub = nil 2851 if fake.uAADisableKeepAlivesReturnsOnCall == nil { 2852 fake.uAADisableKeepAlivesReturnsOnCall = make(map[int]struct { 2853 result1 bool 2854 }) 2855 } 2856 fake.uAADisableKeepAlivesReturnsOnCall[i] = struct { 2857 result1 bool 2858 }{result1} 2859 } 2860 2861 func (fake *FakeConfig) UAAGrantType() string { 2862 fake.uAAGrantTypeMutex.Lock() 2863 ret, specificReturn := fake.uAAGrantTypeReturnsOnCall[len(fake.uAAGrantTypeArgsForCall)] 2864 fake.uAAGrantTypeArgsForCall = append(fake.uAAGrantTypeArgsForCall, struct { 2865 }{}) 2866 fake.recordInvocation("UAAGrantType", []interface{}{}) 2867 fake.uAAGrantTypeMutex.Unlock() 2868 if fake.UAAGrantTypeStub != nil { 2869 return fake.UAAGrantTypeStub() 2870 } 2871 if specificReturn { 2872 return ret.result1 2873 } 2874 fakeReturns := fake.uAAGrantTypeReturns 2875 return fakeReturns.result1 2876 } 2877 2878 func (fake *FakeConfig) UAAGrantTypeCallCount() int { 2879 fake.uAAGrantTypeMutex.RLock() 2880 defer fake.uAAGrantTypeMutex.RUnlock() 2881 return len(fake.uAAGrantTypeArgsForCall) 2882 } 2883 2884 func (fake *FakeConfig) UAAGrantTypeCalls(stub func() string) { 2885 fake.uAAGrantTypeMutex.Lock() 2886 defer fake.uAAGrantTypeMutex.Unlock() 2887 fake.UAAGrantTypeStub = stub 2888 } 2889 2890 func (fake *FakeConfig) UAAGrantTypeReturns(result1 string) { 2891 fake.uAAGrantTypeMutex.Lock() 2892 defer fake.uAAGrantTypeMutex.Unlock() 2893 fake.UAAGrantTypeStub = nil 2894 fake.uAAGrantTypeReturns = struct { 2895 result1 string 2896 }{result1} 2897 } 2898 2899 func (fake *FakeConfig) UAAGrantTypeReturnsOnCall(i int, result1 string) { 2900 fake.uAAGrantTypeMutex.Lock() 2901 defer fake.uAAGrantTypeMutex.Unlock() 2902 fake.UAAGrantTypeStub = nil 2903 if fake.uAAGrantTypeReturnsOnCall == nil { 2904 fake.uAAGrantTypeReturnsOnCall = make(map[int]struct { 2905 result1 string 2906 }) 2907 } 2908 fake.uAAGrantTypeReturnsOnCall[i] = struct { 2909 result1 string 2910 }{result1} 2911 } 2912 2913 func (fake *FakeConfig) UAAOAuthClient() string { 2914 fake.uAAOAuthClientMutex.Lock() 2915 ret, specificReturn := fake.uAAOAuthClientReturnsOnCall[len(fake.uAAOAuthClientArgsForCall)] 2916 fake.uAAOAuthClientArgsForCall = append(fake.uAAOAuthClientArgsForCall, struct { 2917 }{}) 2918 fake.recordInvocation("UAAOAuthClient", []interface{}{}) 2919 fake.uAAOAuthClientMutex.Unlock() 2920 if fake.UAAOAuthClientStub != nil { 2921 return fake.UAAOAuthClientStub() 2922 } 2923 if specificReturn { 2924 return ret.result1 2925 } 2926 fakeReturns := fake.uAAOAuthClientReturns 2927 return fakeReturns.result1 2928 } 2929 2930 func (fake *FakeConfig) UAAOAuthClientCallCount() int { 2931 fake.uAAOAuthClientMutex.RLock() 2932 defer fake.uAAOAuthClientMutex.RUnlock() 2933 return len(fake.uAAOAuthClientArgsForCall) 2934 } 2935 2936 func (fake *FakeConfig) UAAOAuthClientCalls(stub func() string) { 2937 fake.uAAOAuthClientMutex.Lock() 2938 defer fake.uAAOAuthClientMutex.Unlock() 2939 fake.UAAOAuthClientStub = stub 2940 } 2941 2942 func (fake *FakeConfig) UAAOAuthClientReturns(result1 string) { 2943 fake.uAAOAuthClientMutex.Lock() 2944 defer fake.uAAOAuthClientMutex.Unlock() 2945 fake.UAAOAuthClientStub = nil 2946 fake.uAAOAuthClientReturns = struct { 2947 result1 string 2948 }{result1} 2949 } 2950 2951 func (fake *FakeConfig) UAAOAuthClientReturnsOnCall(i int, result1 string) { 2952 fake.uAAOAuthClientMutex.Lock() 2953 defer fake.uAAOAuthClientMutex.Unlock() 2954 fake.UAAOAuthClientStub = nil 2955 if fake.uAAOAuthClientReturnsOnCall == nil { 2956 fake.uAAOAuthClientReturnsOnCall = make(map[int]struct { 2957 result1 string 2958 }) 2959 } 2960 fake.uAAOAuthClientReturnsOnCall[i] = struct { 2961 result1 string 2962 }{result1} 2963 } 2964 2965 func (fake *FakeConfig) UAAOAuthClientSecret() string { 2966 fake.uAAOAuthClientSecretMutex.Lock() 2967 ret, specificReturn := fake.uAAOAuthClientSecretReturnsOnCall[len(fake.uAAOAuthClientSecretArgsForCall)] 2968 fake.uAAOAuthClientSecretArgsForCall = append(fake.uAAOAuthClientSecretArgsForCall, struct { 2969 }{}) 2970 fake.recordInvocation("UAAOAuthClientSecret", []interface{}{}) 2971 fake.uAAOAuthClientSecretMutex.Unlock() 2972 if fake.UAAOAuthClientSecretStub != nil { 2973 return fake.UAAOAuthClientSecretStub() 2974 } 2975 if specificReturn { 2976 return ret.result1 2977 } 2978 fakeReturns := fake.uAAOAuthClientSecretReturns 2979 return fakeReturns.result1 2980 } 2981 2982 func (fake *FakeConfig) UAAOAuthClientSecretCallCount() int { 2983 fake.uAAOAuthClientSecretMutex.RLock() 2984 defer fake.uAAOAuthClientSecretMutex.RUnlock() 2985 return len(fake.uAAOAuthClientSecretArgsForCall) 2986 } 2987 2988 func (fake *FakeConfig) UAAOAuthClientSecretCalls(stub func() string) { 2989 fake.uAAOAuthClientSecretMutex.Lock() 2990 defer fake.uAAOAuthClientSecretMutex.Unlock() 2991 fake.UAAOAuthClientSecretStub = stub 2992 } 2993 2994 func (fake *FakeConfig) UAAOAuthClientSecretReturns(result1 string) { 2995 fake.uAAOAuthClientSecretMutex.Lock() 2996 defer fake.uAAOAuthClientSecretMutex.Unlock() 2997 fake.UAAOAuthClientSecretStub = nil 2998 fake.uAAOAuthClientSecretReturns = struct { 2999 result1 string 3000 }{result1} 3001 } 3002 3003 func (fake *FakeConfig) UAAOAuthClientSecretReturnsOnCall(i int, result1 string) { 3004 fake.uAAOAuthClientSecretMutex.Lock() 3005 defer fake.uAAOAuthClientSecretMutex.Unlock() 3006 fake.UAAOAuthClientSecretStub = nil 3007 if fake.uAAOAuthClientSecretReturnsOnCall == nil { 3008 fake.uAAOAuthClientSecretReturnsOnCall = make(map[int]struct { 3009 result1 string 3010 }) 3011 } 3012 fake.uAAOAuthClientSecretReturnsOnCall[i] = struct { 3013 result1 string 3014 }{result1} 3015 } 3016 3017 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformation() { 3018 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 3019 fake.unsetOrganizationAndSpaceInformationArgsForCall = append(fake.unsetOrganizationAndSpaceInformationArgsForCall, struct { 3020 }{}) 3021 fake.recordInvocation("UnsetOrganizationAndSpaceInformation", []interface{}{}) 3022 fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 3023 if fake.UnsetOrganizationAndSpaceInformationStub != nil { 3024 fake.UnsetOrganizationAndSpaceInformationStub() 3025 } 3026 } 3027 3028 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCallCount() int { 3029 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 3030 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 3031 return len(fake.unsetOrganizationAndSpaceInformationArgsForCall) 3032 } 3033 3034 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCalls(stub func()) { 3035 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 3036 defer fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 3037 fake.UnsetOrganizationAndSpaceInformationStub = stub 3038 } 3039 3040 func (fake *FakeConfig) UnsetSpaceInformation() { 3041 fake.unsetSpaceInformationMutex.Lock() 3042 fake.unsetSpaceInformationArgsForCall = append(fake.unsetSpaceInformationArgsForCall, struct { 3043 }{}) 3044 fake.recordInvocation("UnsetSpaceInformation", []interface{}{}) 3045 fake.unsetSpaceInformationMutex.Unlock() 3046 if fake.UnsetSpaceInformationStub != nil { 3047 fake.UnsetSpaceInformationStub() 3048 } 3049 } 3050 3051 func (fake *FakeConfig) UnsetSpaceInformationCallCount() int { 3052 fake.unsetSpaceInformationMutex.RLock() 3053 defer fake.unsetSpaceInformationMutex.RUnlock() 3054 return len(fake.unsetSpaceInformationArgsForCall) 3055 } 3056 3057 func (fake *FakeConfig) UnsetSpaceInformationCalls(stub func()) { 3058 fake.unsetSpaceInformationMutex.Lock() 3059 defer fake.unsetSpaceInformationMutex.Unlock() 3060 fake.UnsetSpaceInformationStub = stub 3061 } 3062 3063 func (fake *FakeConfig) UnsetUserInformation() { 3064 fake.unsetUserInformationMutex.Lock() 3065 fake.unsetUserInformationArgsForCall = append(fake.unsetUserInformationArgsForCall, struct { 3066 }{}) 3067 fake.recordInvocation("UnsetUserInformation", []interface{}{}) 3068 fake.unsetUserInformationMutex.Unlock() 3069 if fake.UnsetUserInformationStub != nil { 3070 fake.UnsetUserInformationStub() 3071 } 3072 } 3073 3074 func (fake *FakeConfig) UnsetUserInformationCallCount() int { 3075 fake.unsetUserInformationMutex.RLock() 3076 defer fake.unsetUserInformationMutex.RUnlock() 3077 return len(fake.unsetUserInformationArgsForCall) 3078 } 3079 3080 func (fake *FakeConfig) UnsetUserInformationCalls(stub func()) { 3081 fake.unsetUserInformationMutex.Lock() 3082 defer fake.unsetUserInformationMutex.Unlock() 3083 fake.UnsetUserInformationStub = stub 3084 } 3085 3086 func (fake *FakeConfig) V7SetSpaceInformation(arg1 string, arg2 string) { 3087 fake.v7SetSpaceInformationMutex.Lock() 3088 fake.v7SetSpaceInformationArgsForCall = append(fake.v7SetSpaceInformationArgsForCall, struct { 3089 arg1 string 3090 arg2 string 3091 }{arg1, arg2}) 3092 fake.recordInvocation("V7SetSpaceInformation", []interface{}{arg1, arg2}) 3093 fake.v7SetSpaceInformationMutex.Unlock() 3094 if fake.V7SetSpaceInformationStub != nil { 3095 fake.V7SetSpaceInformationStub(arg1, arg2) 3096 } 3097 } 3098 3099 func (fake *FakeConfig) V7SetSpaceInformationCallCount() int { 3100 fake.v7SetSpaceInformationMutex.RLock() 3101 defer fake.v7SetSpaceInformationMutex.RUnlock() 3102 return len(fake.v7SetSpaceInformationArgsForCall) 3103 } 3104 3105 func (fake *FakeConfig) V7SetSpaceInformationCalls(stub func(string, string)) { 3106 fake.v7SetSpaceInformationMutex.Lock() 3107 defer fake.v7SetSpaceInformationMutex.Unlock() 3108 fake.V7SetSpaceInformationStub = stub 3109 } 3110 3111 func (fake *FakeConfig) V7SetSpaceInformationArgsForCall(i int) (string, string) { 3112 fake.v7SetSpaceInformationMutex.RLock() 3113 defer fake.v7SetSpaceInformationMutex.RUnlock() 3114 argsForCall := fake.v7SetSpaceInformationArgsForCall[i] 3115 return argsForCall.arg1, argsForCall.arg2 3116 } 3117 3118 func (fake *FakeConfig) Verbose() (bool, []string) { 3119 fake.verboseMutex.Lock() 3120 ret, specificReturn := fake.verboseReturnsOnCall[len(fake.verboseArgsForCall)] 3121 fake.verboseArgsForCall = append(fake.verboseArgsForCall, struct { 3122 }{}) 3123 fake.recordInvocation("Verbose", []interface{}{}) 3124 fake.verboseMutex.Unlock() 3125 if fake.VerboseStub != nil { 3126 return fake.VerboseStub() 3127 } 3128 if specificReturn { 3129 return ret.result1, ret.result2 3130 } 3131 fakeReturns := fake.verboseReturns 3132 return fakeReturns.result1, fakeReturns.result2 3133 } 3134 3135 func (fake *FakeConfig) VerboseCallCount() int { 3136 fake.verboseMutex.RLock() 3137 defer fake.verboseMutex.RUnlock() 3138 return len(fake.verboseArgsForCall) 3139 } 3140 3141 func (fake *FakeConfig) VerboseCalls(stub func() (bool, []string)) { 3142 fake.verboseMutex.Lock() 3143 defer fake.verboseMutex.Unlock() 3144 fake.VerboseStub = stub 3145 } 3146 3147 func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string) { 3148 fake.verboseMutex.Lock() 3149 defer fake.verboseMutex.Unlock() 3150 fake.VerboseStub = nil 3151 fake.verboseReturns = struct { 3152 result1 bool 3153 result2 []string 3154 }{result1, result2} 3155 } 3156 3157 func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string) { 3158 fake.verboseMutex.Lock() 3159 defer fake.verboseMutex.Unlock() 3160 fake.VerboseStub = nil 3161 if fake.verboseReturnsOnCall == nil { 3162 fake.verboseReturnsOnCall = make(map[int]struct { 3163 result1 bool 3164 result2 []string 3165 }) 3166 } 3167 fake.verboseReturnsOnCall[i] = struct { 3168 result1 bool 3169 result2 []string 3170 }{result1, result2} 3171 } 3172 3173 func (fake *FakeConfig) WriteConfig() error { 3174 fake.writeConfigMutex.Lock() 3175 ret, specificReturn := fake.writeConfigReturnsOnCall[len(fake.writeConfigArgsForCall)] 3176 fake.writeConfigArgsForCall = append(fake.writeConfigArgsForCall, struct { 3177 }{}) 3178 fake.recordInvocation("WriteConfig", []interface{}{}) 3179 fake.writeConfigMutex.Unlock() 3180 if fake.WriteConfigStub != nil { 3181 return fake.WriteConfigStub() 3182 } 3183 if specificReturn { 3184 return ret.result1 3185 } 3186 fakeReturns := fake.writeConfigReturns 3187 return fakeReturns.result1 3188 } 3189 3190 func (fake *FakeConfig) WriteConfigCallCount() int { 3191 fake.writeConfigMutex.RLock() 3192 defer fake.writeConfigMutex.RUnlock() 3193 return len(fake.writeConfigArgsForCall) 3194 } 3195 3196 func (fake *FakeConfig) WriteConfigCalls(stub func() error) { 3197 fake.writeConfigMutex.Lock() 3198 defer fake.writeConfigMutex.Unlock() 3199 fake.WriteConfigStub = stub 3200 } 3201 3202 func (fake *FakeConfig) WriteConfigReturns(result1 error) { 3203 fake.writeConfigMutex.Lock() 3204 defer fake.writeConfigMutex.Unlock() 3205 fake.WriteConfigStub = nil 3206 fake.writeConfigReturns = struct { 3207 result1 error 3208 }{result1} 3209 } 3210 3211 func (fake *FakeConfig) WriteConfigReturnsOnCall(i int, result1 error) { 3212 fake.writeConfigMutex.Lock() 3213 defer fake.writeConfigMutex.Unlock() 3214 fake.WriteConfigStub = nil 3215 if fake.writeConfigReturnsOnCall == nil { 3216 fake.writeConfigReturnsOnCall = make(map[int]struct { 3217 result1 error 3218 }) 3219 } 3220 fake.writeConfigReturnsOnCall[i] = struct { 3221 result1 error 3222 }{result1} 3223 } 3224 3225 func (fake *FakeConfig) WritePluginConfig() error { 3226 fake.writePluginConfigMutex.Lock() 3227 ret, specificReturn := fake.writePluginConfigReturnsOnCall[len(fake.writePluginConfigArgsForCall)] 3228 fake.writePluginConfigArgsForCall = append(fake.writePluginConfigArgsForCall, struct { 3229 }{}) 3230 fake.recordInvocation("WritePluginConfig", []interface{}{}) 3231 fake.writePluginConfigMutex.Unlock() 3232 if fake.WritePluginConfigStub != nil { 3233 return fake.WritePluginConfigStub() 3234 } 3235 if specificReturn { 3236 return ret.result1 3237 } 3238 fakeReturns := fake.writePluginConfigReturns 3239 return fakeReturns.result1 3240 } 3241 3242 func (fake *FakeConfig) WritePluginConfigCallCount() int { 3243 fake.writePluginConfigMutex.RLock() 3244 defer fake.writePluginConfigMutex.RUnlock() 3245 return len(fake.writePluginConfigArgsForCall) 3246 } 3247 3248 func (fake *FakeConfig) WritePluginConfigCalls(stub func() error) { 3249 fake.writePluginConfigMutex.Lock() 3250 defer fake.writePluginConfigMutex.Unlock() 3251 fake.WritePluginConfigStub = stub 3252 } 3253 3254 func (fake *FakeConfig) WritePluginConfigReturns(result1 error) { 3255 fake.writePluginConfigMutex.Lock() 3256 defer fake.writePluginConfigMutex.Unlock() 3257 fake.WritePluginConfigStub = nil 3258 fake.writePluginConfigReturns = struct { 3259 result1 error 3260 }{result1} 3261 } 3262 3263 func (fake *FakeConfig) WritePluginConfigReturnsOnCall(i int, result1 error) { 3264 fake.writePluginConfigMutex.Lock() 3265 defer fake.writePluginConfigMutex.Unlock() 3266 fake.WritePluginConfigStub = nil 3267 if fake.writePluginConfigReturnsOnCall == nil { 3268 fake.writePluginConfigReturnsOnCall = make(map[int]struct { 3269 result1 error 3270 }) 3271 } 3272 fake.writePluginConfigReturnsOnCall[i] = struct { 3273 result1 error 3274 }{result1} 3275 } 3276 3277 func (fake *FakeConfig) Invocations() map[string][][]interface{} { 3278 fake.invocationsMutex.RLock() 3279 defer fake.invocationsMutex.RUnlock() 3280 fake.aPIVersionMutex.RLock() 3281 defer fake.aPIVersionMutex.RUnlock() 3282 fake.accessTokenMutex.RLock() 3283 defer fake.accessTokenMutex.RUnlock() 3284 fake.addPluginMutex.RLock() 3285 defer fake.addPluginMutex.RUnlock() 3286 fake.addPluginRepositoryMutex.RLock() 3287 defer fake.addPluginRepositoryMutex.RUnlock() 3288 fake.binaryNameMutex.RLock() 3289 defer fake.binaryNameMutex.RUnlock() 3290 fake.binaryVersionMutex.RLock() 3291 defer fake.binaryVersionMutex.RUnlock() 3292 fake.cFPasswordMutex.RLock() 3293 defer fake.cFPasswordMutex.RUnlock() 3294 fake.cFUsernameMutex.RLock() 3295 defer fake.cFUsernameMutex.RUnlock() 3296 fake.colorEnabledMutex.RLock() 3297 defer fake.colorEnabledMutex.RUnlock() 3298 fake.currentUserMutex.RLock() 3299 defer fake.currentUserMutex.RUnlock() 3300 fake.currentUserNameMutex.RLock() 3301 defer fake.currentUserNameMutex.RUnlock() 3302 fake.dialTimeoutMutex.RLock() 3303 defer fake.dialTimeoutMutex.RUnlock() 3304 fake.dockerPasswordMutex.RLock() 3305 defer fake.dockerPasswordMutex.RUnlock() 3306 fake.experimentalMutex.RLock() 3307 defer fake.experimentalMutex.RUnlock() 3308 fake.getPluginMutex.RLock() 3309 defer fake.getPluginMutex.RUnlock() 3310 fake.getPluginCaseInsensitiveMutex.RLock() 3311 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 3312 fake.hasTargetedOrganizationMutex.RLock() 3313 defer fake.hasTargetedOrganizationMutex.RUnlock() 3314 fake.hasTargetedSpaceMutex.RLock() 3315 defer fake.hasTargetedSpaceMutex.RUnlock() 3316 fake.localeMutex.RLock() 3317 defer fake.localeMutex.RUnlock() 3318 fake.minCLIVersionMutex.RLock() 3319 defer fake.minCLIVersionMutex.RUnlock() 3320 fake.nOAARequestRetryCountMutex.RLock() 3321 defer fake.nOAARequestRetryCountMutex.RUnlock() 3322 fake.overallPollingTimeoutMutex.RLock() 3323 defer fake.overallPollingTimeoutMutex.RUnlock() 3324 fake.pluginHomeMutex.RLock() 3325 defer fake.pluginHomeMutex.RUnlock() 3326 fake.pluginRepositoriesMutex.RLock() 3327 defer fake.pluginRepositoriesMutex.RUnlock() 3328 fake.pluginsMutex.RLock() 3329 defer fake.pluginsMutex.RUnlock() 3330 fake.pollingIntervalMutex.RLock() 3331 defer fake.pollingIntervalMutex.RUnlock() 3332 fake.refreshTokenMutex.RLock() 3333 defer fake.refreshTokenMutex.RUnlock() 3334 fake.removePluginMutex.RLock() 3335 defer fake.removePluginMutex.RUnlock() 3336 fake.requestRetryCountMutex.RLock() 3337 defer fake.requestRetryCountMutex.RUnlock() 3338 fake.routingEndpointMutex.RLock() 3339 defer fake.routingEndpointMutex.RUnlock() 3340 fake.sSHOAuthClientMutex.RLock() 3341 defer fake.sSHOAuthClientMutex.RUnlock() 3342 fake.setAccessTokenMutex.RLock() 3343 defer fake.setAccessTokenMutex.RUnlock() 3344 fake.setMinCLIVersionMutex.RLock() 3345 defer fake.setMinCLIVersionMutex.RUnlock() 3346 fake.setOrganizationInformationMutex.RLock() 3347 defer fake.setOrganizationInformationMutex.RUnlock() 3348 fake.setRefreshTokenMutex.RLock() 3349 defer fake.setRefreshTokenMutex.RUnlock() 3350 fake.setSpaceInformationMutex.RLock() 3351 defer fake.setSpaceInformationMutex.RUnlock() 3352 fake.setTargetInformationMutex.RLock() 3353 defer fake.setTargetInformationMutex.RUnlock() 3354 fake.setTokenInformationMutex.RLock() 3355 defer fake.setTokenInformationMutex.RUnlock() 3356 fake.setUAAClientCredentialsMutex.RLock() 3357 defer fake.setUAAClientCredentialsMutex.RUnlock() 3358 fake.setUAAEndpointMutex.RLock() 3359 defer fake.setUAAEndpointMutex.RUnlock() 3360 fake.setUAAGrantTypeMutex.RLock() 3361 defer fake.setUAAGrantTypeMutex.RUnlock() 3362 fake.skipSSLValidationMutex.RLock() 3363 defer fake.skipSSLValidationMutex.RUnlock() 3364 fake.stagingTimeoutMutex.RLock() 3365 defer fake.stagingTimeoutMutex.RUnlock() 3366 fake.startupTimeoutMutex.RLock() 3367 defer fake.startupTimeoutMutex.RUnlock() 3368 fake.targetMutex.RLock() 3369 defer fake.targetMutex.RUnlock() 3370 fake.targetedOrganizationMutex.RLock() 3371 defer fake.targetedOrganizationMutex.RUnlock() 3372 fake.targetedOrganizationNameMutex.RLock() 3373 defer fake.targetedOrganizationNameMutex.RUnlock() 3374 fake.targetedSpaceMutex.RLock() 3375 defer fake.targetedSpaceMutex.RUnlock() 3376 fake.uAADisableKeepAlivesMutex.RLock() 3377 defer fake.uAADisableKeepAlivesMutex.RUnlock() 3378 fake.uAAGrantTypeMutex.RLock() 3379 defer fake.uAAGrantTypeMutex.RUnlock() 3380 fake.uAAOAuthClientMutex.RLock() 3381 defer fake.uAAOAuthClientMutex.RUnlock() 3382 fake.uAAOAuthClientSecretMutex.RLock() 3383 defer fake.uAAOAuthClientSecretMutex.RUnlock() 3384 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 3385 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 3386 fake.unsetSpaceInformationMutex.RLock() 3387 defer fake.unsetSpaceInformationMutex.RUnlock() 3388 fake.unsetUserInformationMutex.RLock() 3389 defer fake.unsetUserInformationMutex.RUnlock() 3390 fake.v7SetSpaceInformationMutex.RLock() 3391 defer fake.v7SetSpaceInformationMutex.RUnlock() 3392 fake.verboseMutex.RLock() 3393 defer fake.verboseMutex.RUnlock() 3394 fake.writeConfigMutex.RLock() 3395 defer fake.writeConfigMutex.RUnlock() 3396 fake.writePluginConfigMutex.RLock() 3397 defer fake.writePluginConfigMutex.RUnlock() 3398 copiedInvocations := map[string][][]interface{}{} 3399 for key, value := range fake.invocations { 3400 copiedInvocations[key] = value 3401 } 3402 return copiedInvocations 3403 } 3404 3405 func (fake *FakeConfig) recordInvocation(key string, args []interface{}) { 3406 fake.invocationsMutex.Lock() 3407 defer fake.invocationsMutex.Unlock() 3408 if fake.invocations == nil { 3409 fake.invocations = map[string][][]interface{}{} 3410 } 3411 if fake.invocations[key] == nil { 3412 fake.invocations[key] = [][]interface{}{} 3413 } 3414 fake.invocations[key] = append(fake.invocations[key], args) 3415 } 3416 3417 var _ command.Config = new(FakeConfig)