github.com/arunkumar7540/cli@v6.45.0+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 ExperimentalLoginStub func() bool 149 experimentalLoginMutex sync.RWMutex 150 experimentalLoginArgsForCall []struct { 151 } 152 experimentalLoginReturns struct { 153 result1 bool 154 } 155 experimentalLoginReturnsOnCall map[int]struct { 156 result1 bool 157 } 158 GetPluginStub func(string) (configv3.Plugin, bool) 159 getPluginMutex sync.RWMutex 160 getPluginArgsForCall []struct { 161 arg1 string 162 } 163 getPluginReturns struct { 164 result1 configv3.Plugin 165 result2 bool 166 } 167 getPluginReturnsOnCall map[int]struct { 168 result1 configv3.Plugin 169 result2 bool 170 } 171 GetPluginCaseInsensitiveStub func(string) (configv3.Plugin, bool) 172 getPluginCaseInsensitiveMutex sync.RWMutex 173 getPluginCaseInsensitiveArgsForCall []struct { 174 arg1 string 175 } 176 getPluginCaseInsensitiveReturns struct { 177 result1 configv3.Plugin 178 result2 bool 179 } 180 getPluginCaseInsensitiveReturnsOnCall map[int]struct { 181 result1 configv3.Plugin 182 result2 bool 183 } 184 HasTargetedOrganizationStub func() bool 185 hasTargetedOrganizationMutex sync.RWMutex 186 hasTargetedOrganizationArgsForCall []struct { 187 } 188 hasTargetedOrganizationReturns struct { 189 result1 bool 190 } 191 hasTargetedOrganizationReturnsOnCall map[int]struct { 192 result1 bool 193 } 194 HasTargetedSpaceStub func() bool 195 hasTargetedSpaceMutex sync.RWMutex 196 hasTargetedSpaceArgsForCall []struct { 197 } 198 hasTargetedSpaceReturns struct { 199 result1 bool 200 } 201 hasTargetedSpaceReturnsOnCall map[int]struct { 202 result1 bool 203 } 204 LocaleStub func() string 205 localeMutex sync.RWMutex 206 localeArgsForCall []struct { 207 } 208 localeReturns struct { 209 result1 string 210 } 211 localeReturnsOnCall map[int]struct { 212 result1 string 213 } 214 MinCLIVersionStub func() string 215 minCLIVersionMutex sync.RWMutex 216 minCLIVersionArgsForCall []struct { 217 } 218 minCLIVersionReturns struct { 219 result1 string 220 } 221 minCLIVersionReturnsOnCall map[int]struct { 222 result1 string 223 } 224 NOAARequestRetryCountStub func() int 225 nOAARequestRetryCountMutex sync.RWMutex 226 nOAARequestRetryCountArgsForCall []struct { 227 } 228 nOAARequestRetryCountReturns struct { 229 result1 int 230 } 231 nOAARequestRetryCountReturnsOnCall map[int]struct { 232 result1 int 233 } 234 OverallPollingTimeoutStub func() time.Duration 235 overallPollingTimeoutMutex sync.RWMutex 236 overallPollingTimeoutArgsForCall []struct { 237 } 238 overallPollingTimeoutReturns struct { 239 result1 time.Duration 240 } 241 overallPollingTimeoutReturnsOnCall map[int]struct { 242 result1 time.Duration 243 } 244 PluginHomeStub func() string 245 pluginHomeMutex sync.RWMutex 246 pluginHomeArgsForCall []struct { 247 } 248 pluginHomeReturns struct { 249 result1 string 250 } 251 pluginHomeReturnsOnCall map[int]struct { 252 result1 string 253 } 254 PluginRepositoriesStub func() []configv3.PluginRepository 255 pluginRepositoriesMutex sync.RWMutex 256 pluginRepositoriesArgsForCall []struct { 257 } 258 pluginRepositoriesReturns struct { 259 result1 []configv3.PluginRepository 260 } 261 pluginRepositoriesReturnsOnCall map[int]struct { 262 result1 []configv3.PluginRepository 263 } 264 PluginsStub func() []configv3.Plugin 265 pluginsMutex sync.RWMutex 266 pluginsArgsForCall []struct { 267 } 268 pluginsReturns struct { 269 result1 []configv3.Plugin 270 } 271 pluginsReturnsOnCall map[int]struct { 272 result1 []configv3.Plugin 273 } 274 PollingIntervalStub func() time.Duration 275 pollingIntervalMutex sync.RWMutex 276 pollingIntervalArgsForCall []struct { 277 } 278 pollingIntervalReturns struct { 279 result1 time.Duration 280 } 281 pollingIntervalReturnsOnCall map[int]struct { 282 result1 time.Duration 283 } 284 RefreshTokenStub func() string 285 refreshTokenMutex sync.RWMutex 286 refreshTokenArgsForCall []struct { 287 } 288 refreshTokenReturns struct { 289 result1 string 290 } 291 refreshTokenReturnsOnCall map[int]struct { 292 result1 string 293 } 294 RemovePluginStub func(string) 295 removePluginMutex sync.RWMutex 296 removePluginArgsForCall []struct { 297 arg1 string 298 } 299 RequestRetryCountStub func() int 300 requestRetryCountMutex sync.RWMutex 301 requestRetryCountArgsForCall []struct { 302 } 303 requestRetryCountReturns struct { 304 result1 int 305 } 306 requestRetryCountReturnsOnCall map[int]struct { 307 result1 int 308 } 309 RoutingEndpointStub func() string 310 routingEndpointMutex sync.RWMutex 311 routingEndpointArgsForCall []struct { 312 } 313 routingEndpointReturns struct { 314 result1 string 315 } 316 routingEndpointReturnsOnCall map[int]struct { 317 result1 string 318 } 319 SSHOAuthClientStub func() string 320 sSHOAuthClientMutex sync.RWMutex 321 sSHOAuthClientArgsForCall []struct { 322 } 323 sSHOAuthClientReturns struct { 324 result1 string 325 } 326 sSHOAuthClientReturnsOnCall map[int]struct { 327 result1 string 328 } 329 SetAccessTokenStub func(string) 330 setAccessTokenMutex sync.RWMutex 331 setAccessTokenArgsForCall []struct { 332 arg1 string 333 } 334 SetMinCLIVersionStub func(string) 335 setMinCLIVersionMutex sync.RWMutex 336 setMinCLIVersionArgsForCall []struct { 337 arg1 string 338 } 339 SetOrganizationInformationStub func(string, string) 340 setOrganizationInformationMutex sync.RWMutex 341 setOrganizationInformationArgsForCall []struct { 342 arg1 string 343 arg2 string 344 } 345 SetRefreshTokenStub func(string) 346 setRefreshTokenMutex sync.RWMutex 347 setRefreshTokenArgsForCall []struct { 348 arg1 string 349 } 350 SetSpaceInformationStub func(string, string, bool) 351 setSpaceInformationMutex sync.RWMutex 352 setSpaceInformationArgsForCall []struct { 353 arg1 string 354 arg2 string 355 arg3 bool 356 } 357 SetTargetInformationStub func(string, string, string, string, string, string, bool) 358 setTargetInformationMutex sync.RWMutex 359 setTargetInformationArgsForCall []struct { 360 arg1 string 361 arg2 string 362 arg3 string 363 arg4 string 364 arg5 string 365 arg6 string 366 arg7 bool 367 } 368 SetTokenInformationStub func(string, string, string) 369 setTokenInformationMutex sync.RWMutex 370 setTokenInformationArgsForCall []struct { 371 arg1 string 372 arg2 string 373 arg3 string 374 } 375 SetUAAClientCredentialsStub func(string, string) 376 setUAAClientCredentialsMutex sync.RWMutex 377 setUAAClientCredentialsArgsForCall []struct { 378 arg1 string 379 arg2 string 380 } 381 SetUAAEndpointStub func(string) 382 setUAAEndpointMutex sync.RWMutex 383 setUAAEndpointArgsForCall []struct { 384 arg1 string 385 } 386 SetUAAGrantTypeStub func(string) 387 setUAAGrantTypeMutex sync.RWMutex 388 setUAAGrantTypeArgsForCall []struct { 389 arg1 string 390 } 391 SkipSSLValidationStub func() bool 392 skipSSLValidationMutex sync.RWMutex 393 skipSSLValidationArgsForCall []struct { 394 } 395 skipSSLValidationReturns struct { 396 result1 bool 397 } 398 skipSSLValidationReturnsOnCall map[int]struct { 399 result1 bool 400 } 401 StagingTimeoutStub func() time.Duration 402 stagingTimeoutMutex sync.RWMutex 403 stagingTimeoutArgsForCall []struct { 404 } 405 stagingTimeoutReturns struct { 406 result1 time.Duration 407 } 408 stagingTimeoutReturnsOnCall map[int]struct { 409 result1 time.Duration 410 } 411 StartupTimeoutStub func() time.Duration 412 startupTimeoutMutex sync.RWMutex 413 startupTimeoutArgsForCall []struct { 414 } 415 startupTimeoutReturns struct { 416 result1 time.Duration 417 } 418 startupTimeoutReturnsOnCall map[int]struct { 419 result1 time.Duration 420 } 421 TargetStub func() string 422 targetMutex sync.RWMutex 423 targetArgsForCall []struct { 424 } 425 targetReturns struct { 426 result1 string 427 } 428 targetReturnsOnCall map[int]struct { 429 result1 string 430 } 431 TargetedOrganizationStub func() configv3.Organization 432 targetedOrganizationMutex sync.RWMutex 433 targetedOrganizationArgsForCall []struct { 434 } 435 targetedOrganizationReturns struct { 436 result1 configv3.Organization 437 } 438 targetedOrganizationReturnsOnCall map[int]struct { 439 result1 configv3.Organization 440 } 441 TargetedOrganizationNameStub func() string 442 targetedOrganizationNameMutex sync.RWMutex 443 targetedOrganizationNameArgsForCall []struct { 444 } 445 targetedOrganizationNameReturns struct { 446 result1 string 447 } 448 targetedOrganizationNameReturnsOnCall map[int]struct { 449 result1 string 450 } 451 TargetedSpaceStub func() configv3.Space 452 targetedSpaceMutex sync.RWMutex 453 targetedSpaceArgsForCall []struct { 454 } 455 targetedSpaceReturns struct { 456 result1 configv3.Space 457 } 458 targetedSpaceReturnsOnCall map[int]struct { 459 result1 configv3.Space 460 } 461 UAADisableKeepAlivesStub func() bool 462 uAADisableKeepAlivesMutex sync.RWMutex 463 uAADisableKeepAlivesArgsForCall []struct { 464 } 465 uAADisableKeepAlivesReturns struct { 466 result1 bool 467 } 468 uAADisableKeepAlivesReturnsOnCall map[int]struct { 469 result1 bool 470 } 471 UAAGrantTypeStub func() string 472 uAAGrantTypeMutex sync.RWMutex 473 uAAGrantTypeArgsForCall []struct { 474 } 475 uAAGrantTypeReturns struct { 476 result1 string 477 } 478 uAAGrantTypeReturnsOnCall map[int]struct { 479 result1 string 480 } 481 UAAOAuthClientStub func() string 482 uAAOAuthClientMutex sync.RWMutex 483 uAAOAuthClientArgsForCall []struct { 484 } 485 uAAOAuthClientReturns struct { 486 result1 string 487 } 488 uAAOAuthClientReturnsOnCall map[int]struct { 489 result1 string 490 } 491 UAAOAuthClientSecretStub func() string 492 uAAOAuthClientSecretMutex sync.RWMutex 493 uAAOAuthClientSecretArgsForCall []struct { 494 } 495 uAAOAuthClientSecretReturns struct { 496 result1 string 497 } 498 uAAOAuthClientSecretReturnsOnCall map[int]struct { 499 result1 string 500 } 501 UnsetOrganizationAndSpaceInformationStub func() 502 unsetOrganizationAndSpaceInformationMutex sync.RWMutex 503 unsetOrganizationAndSpaceInformationArgsForCall []struct { 504 } 505 UnsetSpaceInformationStub func() 506 unsetSpaceInformationMutex sync.RWMutex 507 unsetSpaceInformationArgsForCall []struct { 508 } 509 UnsetUserInformationStub func() 510 unsetUserInformationMutex sync.RWMutex 511 unsetUserInformationArgsForCall []struct { 512 } 513 V7SetSpaceInformationStub func(string, string) 514 v7SetSpaceInformationMutex sync.RWMutex 515 v7SetSpaceInformationArgsForCall []struct { 516 arg1 string 517 arg2 string 518 } 519 VerboseStub func() (bool, []string) 520 verboseMutex sync.RWMutex 521 verboseArgsForCall []struct { 522 } 523 verboseReturns struct { 524 result1 bool 525 result2 []string 526 } 527 verboseReturnsOnCall map[int]struct { 528 result1 bool 529 result2 []string 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) ExperimentalLogin() bool { 1239 fake.experimentalLoginMutex.Lock() 1240 ret, specificReturn := fake.experimentalLoginReturnsOnCall[len(fake.experimentalLoginArgsForCall)] 1241 fake.experimentalLoginArgsForCall = append(fake.experimentalLoginArgsForCall, struct { 1242 }{}) 1243 fake.recordInvocation("ExperimentalLogin", []interface{}{}) 1244 fake.experimentalLoginMutex.Unlock() 1245 if fake.ExperimentalLoginStub != nil { 1246 return fake.ExperimentalLoginStub() 1247 } 1248 if specificReturn { 1249 return ret.result1 1250 } 1251 fakeReturns := fake.experimentalLoginReturns 1252 return fakeReturns.result1 1253 } 1254 1255 func (fake *FakeConfig) ExperimentalLoginCallCount() int { 1256 fake.experimentalLoginMutex.RLock() 1257 defer fake.experimentalLoginMutex.RUnlock() 1258 return len(fake.experimentalLoginArgsForCall) 1259 } 1260 1261 func (fake *FakeConfig) ExperimentalLoginCalls(stub func() bool) { 1262 fake.experimentalLoginMutex.Lock() 1263 defer fake.experimentalLoginMutex.Unlock() 1264 fake.ExperimentalLoginStub = stub 1265 } 1266 1267 func (fake *FakeConfig) ExperimentalLoginReturns(result1 bool) { 1268 fake.experimentalLoginMutex.Lock() 1269 defer fake.experimentalLoginMutex.Unlock() 1270 fake.ExperimentalLoginStub = nil 1271 fake.experimentalLoginReturns = struct { 1272 result1 bool 1273 }{result1} 1274 } 1275 1276 func (fake *FakeConfig) ExperimentalLoginReturnsOnCall(i int, result1 bool) { 1277 fake.experimentalLoginMutex.Lock() 1278 defer fake.experimentalLoginMutex.Unlock() 1279 fake.ExperimentalLoginStub = nil 1280 if fake.experimentalLoginReturnsOnCall == nil { 1281 fake.experimentalLoginReturnsOnCall = make(map[int]struct { 1282 result1 bool 1283 }) 1284 } 1285 fake.experimentalLoginReturnsOnCall[i] = struct { 1286 result1 bool 1287 }{result1} 1288 } 1289 1290 func (fake *FakeConfig) GetPlugin(arg1 string) (configv3.Plugin, bool) { 1291 fake.getPluginMutex.Lock() 1292 ret, specificReturn := fake.getPluginReturnsOnCall[len(fake.getPluginArgsForCall)] 1293 fake.getPluginArgsForCall = append(fake.getPluginArgsForCall, struct { 1294 arg1 string 1295 }{arg1}) 1296 fake.recordInvocation("GetPlugin", []interface{}{arg1}) 1297 fake.getPluginMutex.Unlock() 1298 if fake.GetPluginStub != nil { 1299 return fake.GetPluginStub(arg1) 1300 } 1301 if specificReturn { 1302 return ret.result1, ret.result2 1303 } 1304 fakeReturns := fake.getPluginReturns 1305 return fakeReturns.result1, fakeReturns.result2 1306 } 1307 1308 func (fake *FakeConfig) GetPluginCallCount() int { 1309 fake.getPluginMutex.RLock() 1310 defer fake.getPluginMutex.RUnlock() 1311 return len(fake.getPluginArgsForCall) 1312 } 1313 1314 func (fake *FakeConfig) GetPluginCalls(stub func(string) (configv3.Plugin, bool)) { 1315 fake.getPluginMutex.Lock() 1316 defer fake.getPluginMutex.Unlock() 1317 fake.GetPluginStub = stub 1318 } 1319 1320 func (fake *FakeConfig) GetPluginArgsForCall(i int) string { 1321 fake.getPluginMutex.RLock() 1322 defer fake.getPluginMutex.RUnlock() 1323 argsForCall := fake.getPluginArgsForCall[i] 1324 return argsForCall.arg1 1325 } 1326 1327 func (fake *FakeConfig) GetPluginReturns(result1 configv3.Plugin, result2 bool) { 1328 fake.getPluginMutex.Lock() 1329 defer fake.getPluginMutex.Unlock() 1330 fake.GetPluginStub = nil 1331 fake.getPluginReturns = struct { 1332 result1 configv3.Plugin 1333 result2 bool 1334 }{result1, result2} 1335 } 1336 1337 func (fake *FakeConfig) GetPluginReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 1338 fake.getPluginMutex.Lock() 1339 defer fake.getPluginMutex.Unlock() 1340 fake.GetPluginStub = nil 1341 if fake.getPluginReturnsOnCall == nil { 1342 fake.getPluginReturnsOnCall = make(map[int]struct { 1343 result1 configv3.Plugin 1344 result2 bool 1345 }) 1346 } 1347 fake.getPluginReturnsOnCall[i] = struct { 1348 result1 configv3.Plugin 1349 result2 bool 1350 }{result1, result2} 1351 } 1352 1353 func (fake *FakeConfig) GetPluginCaseInsensitive(arg1 string) (configv3.Plugin, bool) { 1354 fake.getPluginCaseInsensitiveMutex.Lock() 1355 ret, specificReturn := fake.getPluginCaseInsensitiveReturnsOnCall[len(fake.getPluginCaseInsensitiveArgsForCall)] 1356 fake.getPluginCaseInsensitiveArgsForCall = append(fake.getPluginCaseInsensitiveArgsForCall, struct { 1357 arg1 string 1358 }{arg1}) 1359 fake.recordInvocation("GetPluginCaseInsensitive", []interface{}{arg1}) 1360 fake.getPluginCaseInsensitiveMutex.Unlock() 1361 if fake.GetPluginCaseInsensitiveStub != nil { 1362 return fake.GetPluginCaseInsensitiveStub(arg1) 1363 } 1364 if specificReturn { 1365 return ret.result1, ret.result2 1366 } 1367 fakeReturns := fake.getPluginCaseInsensitiveReturns 1368 return fakeReturns.result1, fakeReturns.result2 1369 } 1370 1371 func (fake *FakeConfig) GetPluginCaseInsensitiveCallCount() int { 1372 fake.getPluginCaseInsensitiveMutex.RLock() 1373 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 1374 return len(fake.getPluginCaseInsensitiveArgsForCall) 1375 } 1376 1377 func (fake *FakeConfig) GetPluginCaseInsensitiveCalls(stub func(string) (configv3.Plugin, bool)) { 1378 fake.getPluginCaseInsensitiveMutex.Lock() 1379 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1380 fake.GetPluginCaseInsensitiveStub = stub 1381 } 1382 1383 func (fake *FakeConfig) GetPluginCaseInsensitiveArgsForCall(i int) string { 1384 fake.getPluginCaseInsensitiveMutex.RLock() 1385 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 1386 argsForCall := fake.getPluginCaseInsensitiveArgsForCall[i] 1387 return argsForCall.arg1 1388 } 1389 1390 func (fake *FakeConfig) GetPluginCaseInsensitiveReturns(result1 configv3.Plugin, result2 bool) { 1391 fake.getPluginCaseInsensitiveMutex.Lock() 1392 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1393 fake.GetPluginCaseInsensitiveStub = nil 1394 fake.getPluginCaseInsensitiveReturns = struct { 1395 result1 configv3.Plugin 1396 result2 bool 1397 }{result1, result2} 1398 } 1399 1400 func (fake *FakeConfig) GetPluginCaseInsensitiveReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 1401 fake.getPluginCaseInsensitiveMutex.Lock() 1402 defer fake.getPluginCaseInsensitiveMutex.Unlock() 1403 fake.GetPluginCaseInsensitiveStub = nil 1404 if fake.getPluginCaseInsensitiveReturnsOnCall == nil { 1405 fake.getPluginCaseInsensitiveReturnsOnCall = make(map[int]struct { 1406 result1 configv3.Plugin 1407 result2 bool 1408 }) 1409 } 1410 fake.getPluginCaseInsensitiveReturnsOnCall[i] = struct { 1411 result1 configv3.Plugin 1412 result2 bool 1413 }{result1, result2} 1414 } 1415 1416 func (fake *FakeConfig) HasTargetedOrganization() bool { 1417 fake.hasTargetedOrganizationMutex.Lock() 1418 ret, specificReturn := fake.hasTargetedOrganizationReturnsOnCall[len(fake.hasTargetedOrganizationArgsForCall)] 1419 fake.hasTargetedOrganizationArgsForCall = append(fake.hasTargetedOrganizationArgsForCall, struct { 1420 }{}) 1421 fake.recordInvocation("HasTargetedOrganization", []interface{}{}) 1422 fake.hasTargetedOrganizationMutex.Unlock() 1423 if fake.HasTargetedOrganizationStub != nil { 1424 return fake.HasTargetedOrganizationStub() 1425 } 1426 if specificReturn { 1427 return ret.result1 1428 } 1429 fakeReturns := fake.hasTargetedOrganizationReturns 1430 return fakeReturns.result1 1431 } 1432 1433 func (fake *FakeConfig) HasTargetedOrganizationCallCount() int { 1434 fake.hasTargetedOrganizationMutex.RLock() 1435 defer fake.hasTargetedOrganizationMutex.RUnlock() 1436 return len(fake.hasTargetedOrganizationArgsForCall) 1437 } 1438 1439 func (fake *FakeConfig) HasTargetedOrganizationCalls(stub func() bool) { 1440 fake.hasTargetedOrganizationMutex.Lock() 1441 defer fake.hasTargetedOrganizationMutex.Unlock() 1442 fake.HasTargetedOrganizationStub = stub 1443 } 1444 1445 func (fake *FakeConfig) HasTargetedOrganizationReturns(result1 bool) { 1446 fake.hasTargetedOrganizationMutex.Lock() 1447 defer fake.hasTargetedOrganizationMutex.Unlock() 1448 fake.HasTargetedOrganizationStub = nil 1449 fake.hasTargetedOrganizationReturns = struct { 1450 result1 bool 1451 }{result1} 1452 } 1453 1454 func (fake *FakeConfig) HasTargetedOrganizationReturnsOnCall(i int, result1 bool) { 1455 fake.hasTargetedOrganizationMutex.Lock() 1456 defer fake.hasTargetedOrganizationMutex.Unlock() 1457 fake.HasTargetedOrganizationStub = nil 1458 if fake.hasTargetedOrganizationReturnsOnCall == nil { 1459 fake.hasTargetedOrganizationReturnsOnCall = make(map[int]struct { 1460 result1 bool 1461 }) 1462 } 1463 fake.hasTargetedOrganizationReturnsOnCall[i] = struct { 1464 result1 bool 1465 }{result1} 1466 } 1467 1468 func (fake *FakeConfig) HasTargetedSpace() bool { 1469 fake.hasTargetedSpaceMutex.Lock() 1470 ret, specificReturn := fake.hasTargetedSpaceReturnsOnCall[len(fake.hasTargetedSpaceArgsForCall)] 1471 fake.hasTargetedSpaceArgsForCall = append(fake.hasTargetedSpaceArgsForCall, struct { 1472 }{}) 1473 fake.recordInvocation("HasTargetedSpace", []interface{}{}) 1474 fake.hasTargetedSpaceMutex.Unlock() 1475 if fake.HasTargetedSpaceStub != nil { 1476 return fake.HasTargetedSpaceStub() 1477 } 1478 if specificReturn { 1479 return ret.result1 1480 } 1481 fakeReturns := fake.hasTargetedSpaceReturns 1482 return fakeReturns.result1 1483 } 1484 1485 func (fake *FakeConfig) HasTargetedSpaceCallCount() int { 1486 fake.hasTargetedSpaceMutex.RLock() 1487 defer fake.hasTargetedSpaceMutex.RUnlock() 1488 return len(fake.hasTargetedSpaceArgsForCall) 1489 } 1490 1491 func (fake *FakeConfig) HasTargetedSpaceCalls(stub func() bool) { 1492 fake.hasTargetedSpaceMutex.Lock() 1493 defer fake.hasTargetedSpaceMutex.Unlock() 1494 fake.HasTargetedSpaceStub = stub 1495 } 1496 1497 func (fake *FakeConfig) HasTargetedSpaceReturns(result1 bool) { 1498 fake.hasTargetedSpaceMutex.Lock() 1499 defer fake.hasTargetedSpaceMutex.Unlock() 1500 fake.HasTargetedSpaceStub = nil 1501 fake.hasTargetedSpaceReturns = struct { 1502 result1 bool 1503 }{result1} 1504 } 1505 1506 func (fake *FakeConfig) HasTargetedSpaceReturnsOnCall(i int, result1 bool) { 1507 fake.hasTargetedSpaceMutex.Lock() 1508 defer fake.hasTargetedSpaceMutex.Unlock() 1509 fake.HasTargetedSpaceStub = nil 1510 if fake.hasTargetedSpaceReturnsOnCall == nil { 1511 fake.hasTargetedSpaceReturnsOnCall = make(map[int]struct { 1512 result1 bool 1513 }) 1514 } 1515 fake.hasTargetedSpaceReturnsOnCall[i] = struct { 1516 result1 bool 1517 }{result1} 1518 } 1519 1520 func (fake *FakeConfig) Locale() string { 1521 fake.localeMutex.Lock() 1522 ret, specificReturn := fake.localeReturnsOnCall[len(fake.localeArgsForCall)] 1523 fake.localeArgsForCall = append(fake.localeArgsForCall, struct { 1524 }{}) 1525 fake.recordInvocation("Locale", []interface{}{}) 1526 fake.localeMutex.Unlock() 1527 if fake.LocaleStub != nil { 1528 return fake.LocaleStub() 1529 } 1530 if specificReturn { 1531 return ret.result1 1532 } 1533 fakeReturns := fake.localeReturns 1534 return fakeReturns.result1 1535 } 1536 1537 func (fake *FakeConfig) LocaleCallCount() int { 1538 fake.localeMutex.RLock() 1539 defer fake.localeMutex.RUnlock() 1540 return len(fake.localeArgsForCall) 1541 } 1542 1543 func (fake *FakeConfig) LocaleCalls(stub func() string) { 1544 fake.localeMutex.Lock() 1545 defer fake.localeMutex.Unlock() 1546 fake.LocaleStub = stub 1547 } 1548 1549 func (fake *FakeConfig) LocaleReturns(result1 string) { 1550 fake.localeMutex.Lock() 1551 defer fake.localeMutex.Unlock() 1552 fake.LocaleStub = nil 1553 fake.localeReturns = struct { 1554 result1 string 1555 }{result1} 1556 } 1557 1558 func (fake *FakeConfig) LocaleReturnsOnCall(i int, result1 string) { 1559 fake.localeMutex.Lock() 1560 defer fake.localeMutex.Unlock() 1561 fake.LocaleStub = nil 1562 if fake.localeReturnsOnCall == nil { 1563 fake.localeReturnsOnCall = make(map[int]struct { 1564 result1 string 1565 }) 1566 } 1567 fake.localeReturnsOnCall[i] = struct { 1568 result1 string 1569 }{result1} 1570 } 1571 1572 func (fake *FakeConfig) MinCLIVersion() string { 1573 fake.minCLIVersionMutex.Lock() 1574 ret, specificReturn := fake.minCLIVersionReturnsOnCall[len(fake.minCLIVersionArgsForCall)] 1575 fake.minCLIVersionArgsForCall = append(fake.minCLIVersionArgsForCall, struct { 1576 }{}) 1577 fake.recordInvocation("MinCLIVersion", []interface{}{}) 1578 fake.minCLIVersionMutex.Unlock() 1579 if fake.MinCLIVersionStub != nil { 1580 return fake.MinCLIVersionStub() 1581 } 1582 if specificReturn { 1583 return ret.result1 1584 } 1585 fakeReturns := fake.minCLIVersionReturns 1586 return fakeReturns.result1 1587 } 1588 1589 func (fake *FakeConfig) MinCLIVersionCallCount() int { 1590 fake.minCLIVersionMutex.RLock() 1591 defer fake.minCLIVersionMutex.RUnlock() 1592 return len(fake.minCLIVersionArgsForCall) 1593 } 1594 1595 func (fake *FakeConfig) MinCLIVersionCalls(stub func() string) { 1596 fake.minCLIVersionMutex.Lock() 1597 defer fake.minCLIVersionMutex.Unlock() 1598 fake.MinCLIVersionStub = stub 1599 } 1600 1601 func (fake *FakeConfig) MinCLIVersionReturns(result1 string) { 1602 fake.minCLIVersionMutex.Lock() 1603 defer fake.minCLIVersionMutex.Unlock() 1604 fake.MinCLIVersionStub = nil 1605 fake.minCLIVersionReturns = struct { 1606 result1 string 1607 }{result1} 1608 } 1609 1610 func (fake *FakeConfig) MinCLIVersionReturnsOnCall(i int, result1 string) { 1611 fake.minCLIVersionMutex.Lock() 1612 defer fake.minCLIVersionMutex.Unlock() 1613 fake.MinCLIVersionStub = nil 1614 if fake.minCLIVersionReturnsOnCall == nil { 1615 fake.minCLIVersionReturnsOnCall = make(map[int]struct { 1616 result1 string 1617 }) 1618 } 1619 fake.minCLIVersionReturnsOnCall[i] = struct { 1620 result1 string 1621 }{result1} 1622 } 1623 1624 func (fake *FakeConfig) NOAARequestRetryCount() int { 1625 fake.nOAARequestRetryCountMutex.Lock() 1626 ret, specificReturn := fake.nOAARequestRetryCountReturnsOnCall[len(fake.nOAARequestRetryCountArgsForCall)] 1627 fake.nOAARequestRetryCountArgsForCall = append(fake.nOAARequestRetryCountArgsForCall, struct { 1628 }{}) 1629 fake.recordInvocation("NOAARequestRetryCount", []interface{}{}) 1630 fake.nOAARequestRetryCountMutex.Unlock() 1631 if fake.NOAARequestRetryCountStub != nil { 1632 return fake.NOAARequestRetryCountStub() 1633 } 1634 if specificReturn { 1635 return ret.result1 1636 } 1637 fakeReturns := fake.nOAARequestRetryCountReturns 1638 return fakeReturns.result1 1639 } 1640 1641 func (fake *FakeConfig) NOAARequestRetryCountCallCount() int { 1642 fake.nOAARequestRetryCountMutex.RLock() 1643 defer fake.nOAARequestRetryCountMutex.RUnlock() 1644 return len(fake.nOAARequestRetryCountArgsForCall) 1645 } 1646 1647 func (fake *FakeConfig) NOAARequestRetryCountCalls(stub func() int) { 1648 fake.nOAARequestRetryCountMutex.Lock() 1649 defer fake.nOAARequestRetryCountMutex.Unlock() 1650 fake.NOAARequestRetryCountStub = stub 1651 } 1652 1653 func (fake *FakeConfig) NOAARequestRetryCountReturns(result1 int) { 1654 fake.nOAARequestRetryCountMutex.Lock() 1655 defer fake.nOAARequestRetryCountMutex.Unlock() 1656 fake.NOAARequestRetryCountStub = nil 1657 fake.nOAARequestRetryCountReturns = struct { 1658 result1 int 1659 }{result1} 1660 } 1661 1662 func (fake *FakeConfig) NOAARequestRetryCountReturnsOnCall(i int, result1 int) { 1663 fake.nOAARequestRetryCountMutex.Lock() 1664 defer fake.nOAARequestRetryCountMutex.Unlock() 1665 fake.NOAARequestRetryCountStub = nil 1666 if fake.nOAARequestRetryCountReturnsOnCall == nil { 1667 fake.nOAARequestRetryCountReturnsOnCall = make(map[int]struct { 1668 result1 int 1669 }) 1670 } 1671 fake.nOAARequestRetryCountReturnsOnCall[i] = struct { 1672 result1 int 1673 }{result1} 1674 } 1675 1676 func (fake *FakeConfig) OverallPollingTimeout() time.Duration { 1677 fake.overallPollingTimeoutMutex.Lock() 1678 ret, specificReturn := fake.overallPollingTimeoutReturnsOnCall[len(fake.overallPollingTimeoutArgsForCall)] 1679 fake.overallPollingTimeoutArgsForCall = append(fake.overallPollingTimeoutArgsForCall, struct { 1680 }{}) 1681 fake.recordInvocation("OverallPollingTimeout", []interface{}{}) 1682 fake.overallPollingTimeoutMutex.Unlock() 1683 if fake.OverallPollingTimeoutStub != nil { 1684 return fake.OverallPollingTimeoutStub() 1685 } 1686 if specificReturn { 1687 return ret.result1 1688 } 1689 fakeReturns := fake.overallPollingTimeoutReturns 1690 return fakeReturns.result1 1691 } 1692 1693 func (fake *FakeConfig) OverallPollingTimeoutCallCount() int { 1694 fake.overallPollingTimeoutMutex.RLock() 1695 defer fake.overallPollingTimeoutMutex.RUnlock() 1696 return len(fake.overallPollingTimeoutArgsForCall) 1697 } 1698 1699 func (fake *FakeConfig) OverallPollingTimeoutCalls(stub func() time.Duration) { 1700 fake.overallPollingTimeoutMutex.Lock() 1701 defer fake.overallPollingTimeoutMutex.Unlock() 1702 fake.OverallPollingTimeoutStub = stub 1703 } 1704 1705 func (fake *FakeConfig) OverallPollingTimeoutReturns(result1 time.Duration) { 1706 fake.overallPollingTimeoutMutex.Lock() 1707 defer fake.overallPollingTimeoutMutex.Unlock() 1708 fake.OverallPollingTimeoutStub = nil 1709 fake.overallPollingTimeoutReturns = struct { 1710 result1 time.Duration 1711 }{result1} 1712 } 1713 1714 func (fake *FakeConfig) OverallPollingTimeoutReturnsOnCall(i int, result1 time.Duration) { 1715 fake.overallPollingTimeoutMutex.Lock() 1716 defer fake.overallPollingTimeoutMutex.Unlock() 1717 fake.OverallPollingTimeoutStub = nil 1718 if fake.overallPollingTimeoutReturnsOnCall == nil { 1719 fake.overallPollingTimeoutReturnsOnCall = make(map[int]struct { 1720 result1 time.Duration 1721 }) 1722 } 1723 fake.overallPollingTimeoutReturnsOnCall[i] = struct { 1724 result1 time.Duration 1725 }{result1} 1726 } 1727 1728 func (fake *FakeConfig) PluginHome() string { 1729 fake.pluginHomeMutex.Lock() 1730 ret, specificReturn := fake.pluginHomeReturnsOnCall[len(fake.pluginHomeArgsForCall)] 1731 fake.pluginHomeArgsForCall = append(fake.pluginHomeArgsForCall, struct { 1732 }{}) 1733 fake.recordInvocation("PluginHome", []interface{}{}) 1734 fake.pluginHomeMutex.Unlock() 1735 if fake.PluginHomeStub != nil { 1736 return fake.PluginHomeStub() 1737 } 1738 if specificReturn { 1739 return ret.result1 1740 } 1741 fakeReturns := fake.pluginHomeReturns 1742 return fakeReturns.result1 1743 } 1744 1745 func (fake *FakeConfig) PluginHomeCallCount() int { 1746 fake.pluginHomeMutex.RLock() 1747 defer fake.pluginHomeMutex.RUnlock() 1748 return len(fake.pluginHomeArgsForCall) 1749 } 1750 1751 func (fake *FakeConfig) PluginHomeCalls(stub func() string) { 1752 fake.pluginHomeMutex.Lock() 1753 defer fake.pluginHomeMutex.Unlock() 1754 fake.PluginHomeStub = stub 1755 } 1756 1757 func (fake *FakeConfig) PluginHomeReturns(result1 string) { 1758 fake.pluginHomeMutex.Lock() 1759 defer fake.pluginHomeMutex.Unlock() 1760 fake.PluginHomeStub = nil 1761 fake.pluginHomeReturns = struct { 1762 result1 string 1763 }{result1} 1764 } 1765 1766 func (fake *FakeConfig) PluginHomeReturnsOnCall(i int, result1 string) { 1767 fake.pluginHomeMutex.Lock() 1768 defer fake.pluginHomeMutex.Unlock() 1769 fake.PluginHomeStub = nil 1770 if fake.pluginHomeReturnsOnCall == nil { 1771 fake.pluginHomeReturnsOnCall = make(map[int]struct { 1772 result1 string 1773 }) 1774 } 1775 fake.pluginHomeReturnsOnCall[i] = struct { 1776 result1 string 1777 }{result1} 1778 } 1779 1780 func (fake *FakeConfig) PluginRepositories() []configv3.PluginRepository { 1781 fake.pluginRepositoriesMutex.Lock() 1782 ret, specificReturn := fake.pluginRepositoriesReturnsOnCall[len(fake.pluginRepositoriesArgsForCall)] 1783 fake.pluginRepositoriesArgsForCall = append(fake.pluginRepositoriesArgsForCall, struct { 1784 }{}) 1785 fake.recordInvocation("PluginRepositories", []interface{}{}) 1786 fake.pluginRepositoriesMutex.Unlock() 1787 if fake.PluginRepositoriesStub != nil { 1788 return fake.PluginRepositoriesStub() 1789 } 1790 if specificReturn { 1791 return ret.result1 1792 } 1793 fakeReturns := fake.pluginRepositoriesReturns 1794 return fakeReturns.result1 1795 } 1796 1797 func (fake *FakeConfig) PluginRepositoriesCallCount() int { 1798 fake.pluginRepositoriesMutex.RLock() 1799 defer fake.pluginRepositoriesMutex.RUnlock() 1800 return len(fake.pluginRepositoriesArgsForCall) 1801 } 1802 1803 func (fake *FakeConfig) PluginRepositoriesCalls(stub func() []configv3.PluginRepository) { 1804 fake.pluginRepositoriesMutex.Lock() 1805 defer fake.pluginRepositoriesMutex.Unlock() 1806 fake.PluginRepositoriesStub = stub 1807 } 1808 1809 func (fake *FakeConfig) PluginRepositoriesReturns(result1 []configv3.PluginRepository) { 1810 fake.pluginRepositoriesMutex.Lock() 1811 defer fake.pluginRepositoriesMutex.Unlock() 1812 fake.PluginRepositoriesStub = nil 1813 fake.pluginRepositoriesReturns = struct { 1814 result1 []configv3.PluginRepository 1815 }{result1} 1816 } 1817 1818 func (fake *FakeConfig) PluginRepositoriesReturnsOnCall(i int, result1 []configv3.PluginRepository) { 1819 fake.pluginRepositoriesMutex.Lock() 1820 defer fake.pluginRepositoriesMutex.Unlock() 1821 fake.PluginRepositoriesStub = nil 1822 if fake.pluginRepositoriesReturnsOnCall == nil { 1823 fake.pluginRepositoriesReturnsOnCall = make(map[int]struct { 1824 result1 []configv3.PluginRepository 1825 }) 1826 } 1827 fake.pluginRepositoriesReturnsOnCall[i] = struct { 1828 result1 []configv3.PluginRepository 1829 }{result1} 1830 } 1831 1832 func (fake *FakeConfig) Plugins() []configv3.Plugin { 1833 fake.pluginsMutex.Lock() 1834 ret, specificReturn := fake.pluginsReturnsOnCall[len(fake.pluginsArgsForCall)] 1835 fake.pluginsArgsForCall = append(fake.pluginsArgsForCall, struct { 1836 }{}) 1837 fake.recordInvocation("Plugins", []interface{}{}) 1838 fake.pluginsMutex.Unlock() 1839 if fake.PluginsStub != nil { 1840 return fake.PluginsStub() 1841 } 1842 if specificReturn { 1843 return ret.result1 1844 } 1845 fakeReturns := fake.pluginsReturns 1846 return fakeReturns.result1 1847 } 1848 1849 func (fake *FakeConfig) PluginsCallCount() int { 1850 fake.pluginsMutex.RLock() 1851 defer fake.pluginsMutex.RUnlock() 1852 return len(fake.pluginsArgsForCall) 1853 } 1854 1855 func (fake *FakeConfig) PluginsCalls(stub func() []configv3.Plugin) { 1856 fake.pluginsMutex.Lock() 1857 defer fake.pluginsMutex.Unlock() 1858 fake.PluginsStub = stub 1859 } 1860 1861 func (fake *FakeConfig) PluginsReturns(result1 []configv3.Plugin) { 1862 fake.pluginsMutex.Lock() 1863 defer fake.pluginsMutex.Unlock() 1864 fake.PluginsStub = nil 1865 fake.pluginsReturns = struct { 1866 result1 []configv3.Plugin 1867 }{result1} 1868 } 1869 1870 func (fake *FakeConfig) PluginsReturnsOnCall(i int, result1 []configv3.Plugin) { 1871 fake.pluginsMutex.Lock() 1872 defer fake.pluginsMutex.Unlock() 1873 fake.PluginsStub = nil 1874 if fake.pluginsReturnsOnCall == nil { 1875 fake.pluginsReturnsOnCall = make(map[int]struct { 1876 result1 []configv3.Plugin 1877 }) 1878 } 1879 fake.pluginsReturnsOnCall[i] = struct { 1880 result1 []configv3.Plugin 1881 }{result1} 1882 } 1883 1884 func (fake *FakeConfig) PollingInterval() time.Duration { 1885 fake.pollingIntervalMutex.Lock() 1886 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 1887 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct { 1888 }{}) 1889 fake.recordInvocation("PollingInterval", []interface{}{}) 1890 fake.pollingIntervalMutex.Unlock() 1891 if fake.PollingIntervalStub != nil { 1892 return fake.PollingIntervalStub() 1893 } 1894 if specificReturn { 1895 return ret.result1 1896 } 1897 fakeReturns := fake.pollingIntervalReturns 1898 return fakeReturns.result1 1899 } 1900 1901 func (fake *FakeConfig) PollingIntervalCallCount() int { 1902 fake.pollingIntervalMutex.RLock() 1903 defer fake.pollingIntervalMutex.RUnlock() 1904 return len(fake.pollingIntervalArgsForCall) 1905 } 1906 1907 func (fake *FakeConfig) PollingIntervalCalls(stub func() time.Duration) { 1908 fake.pollingIntervalMutex.Lock() 1909 defer fake.pollingIntervalMutex.Unlock() 1910 fake.PollingIntervalStub = stub 1911 } 1912 1913 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 1914 fake.pollingIntervalMutex.Lock() 1915 defer fake.pollingIntervalMutex.Unlock() 1916 fake.PollingIntervalStub = nil 1917 fake.pollingIntervalReturns = struct { 1918 result1 time.Duration 1919 }{result1} 1920 } 1921 1922 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 1923 fake.pollingIntervalMutex.Lock() 1924 defer fake.pollingIntervalMutex.Unlock() 1925 fake.PollingIntervalStub = nil 1926 if fake.pollingIntervalReturnsOnCall == nil { 1927 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 1928 result1 time.Duration 1929 }) 1930 } 1931 fake.pollingIntervalReturnsOnCall[i] = struct { 1932 result1 time.Duration 1933 }{result1} 1934 } 1935 1936 func (fake *FakeConfig) RefreshToken() string { 1937 fake.refreshTokenMutex.Lock() 1938 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 1939 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct { 1940 }{}) 1941 fake.recordInvocation("RefreshToken", []interface{}{}) 1942 fake.refreshTokenMutex.Unlock() 1943 if fake.RefreshTokenStub != nil { 1944 return fake.RefreshTokenStub() 1945 } 1946 if specificReturn { 1947 return ret.result1 1948 } 1949 fakeReturns := fake.refreshTokenReturns 1950 return fakeReturns.result1 1951 } 1952 1953 func (fake *FakeConfig) RefreshTokenCallCount() int { 1954 fake.refreshTokenMutex.RLock() 1955 defer fake.refreshTokenMutex.RUnlock() 1956 return len(fake.refreshTokenArgsForCall) 1957 } 1958 1959 func (fake *FakeConfig) RefreshTokenCalls(stub func() string) { 1960 fake.refreshTokenMutex.Lock() 1961 defer fake.refreshTokenMutex.Unlock() 1962 fake.RefreshTokenStub = stub 1963 } 1964 1965 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 1966 fake.refreshTokenMutex.Lock() 1967 defer fake.refreshTokenMutex.Unlock() 1968 fake.RefreshTokenStub = nil 1969 fake.refreshTokenReturns = struct { 1970 result1 string 1971 }{result1} 1972 } 1973 1974 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 1975 fake.refreshTokenMutex.Lock() 1976 defer fake.refreshTokenMutex.Unlock() 1977 fake.RefreshTokenStub = nil 1978 if fake.refreshTokenReturnsOnCall == nil { 1979 fake.refreshTokenReturnsOnCall = make(map[int]struct { 1980 result1 string 1981 }) 1982 } 1983 fake.refreshTokenReturnsOnCall[i] = struct { 1984 result1 string 1985 }{result1} 1986 } 1987 1988 func (fake *FakeConfig) RemovePlugin(arg1 string) { 1989 fake.removePluginMutex.Lock() 1990 fake.removePluginArgsForCall = append(fake.removePluginArgsForCall, struct { 1991 arg1 string 1992 }{arg1}) 1993 fake.recordInvocation("RemovePlugin", []interface{}{arg1}) 1994 fake.removePluginMutex.Unlock() 1995 if fake.RemovePluginStub != nil { 1996 fake.RemovePluginStub(arg1) 1997 } 1998 } 1999 2000 func (fake *FakeConfig) RemovePluginCallCount() int { 2001 fake.removePluginMutex.RLock() 2002 defer fake.removePluginMutex.RUnlock() 2003 return len(fake.removePluginArgsForCall) 2004 } 2005 2006 func (fake *FakeConfig) RemovePluginCalls(stub func(string)) { 2007 fake.removePluginMutex.Lock() 2008 defer fake.removePluginMutex.Unlock() 2009 fake.RemovePluginStub = stub 2010 } 2011 2012 func (fake *FakeConfig) RemovePluginArgsForCall(i int) string { 2013 fake.removePluginMutex.RLock() 2014 defer fake.removePluginMutex.RUnlock() 2015 argsForCall := fake.removePluginArgsForCall[i] 2016 return argsForCall.arg1 2017 } 2018 2019 func (fake *FakeConfig) RequestRetryCount() int { 2020 fake.requestRetryCountMutex.Lock() 2021 ret, specificReturn := fake.requestRetryCountReturnsOnCall[len(fake.requestRetryCountArgsForCall)] 2022 fake.requestRetryCountArgsForCall = append(fake.requestRetryCountArgsForCall, struct { 2023 }{}) 2024 fake.recordInvocation("RequestRetryCount", []interface{}{}) 2025 fake.requestRetryCountMutex.Unlock() 2026 if fake.RequestRetryCountStub != nil { 2027 return fake.RequestRetryCountStub() 2028 } 2029 if specificReturn { 2030 return ret.result1 2031 } 2032 fakeReturns := fake.requestRetryCountReturns 2033 return fakeReturns.result1 2034 } 2035 2036 func (fake *FakeConfig) RequestRetryCountCallCount() int { 2037 fake.requestRetryCountMutex.RLock() 2038 defer fake.requestRetryCountMutex.RUnlock() 2039 return len(fake.requestRetryCountArgsForCall) 2040 } 2041 2042 func (fake *FakeConfig) RequestRetryCountCalls(stub func() int) { 2043 fake.requestRetryCountMutex.Lock() 2044 defer fake.requestRetryCountMutex.Unlock() 2045 fake.RequestRetryCountStub = stub 2046 } 2047 2048 func (fake *FakeConfig) RequestRetryCountReturns(result1 int) { 2049 fake.requestRetryCountMutex.Lock() 2050 defer fake.requestRetryCountMutex.Unlock() 2051 fake.RequestRetryCountStub = nil 2052 fake.requestRetryCountReturns = struct { 2053 result1 int 2054 }{result1} 2055 } 2056 2057 func (fake *FakeConfig) RequestRetryCountReturnsOnCall(i int, result1 int) { 2058 fake.requestRetryCountMutex.Lock() 2059 defer fake.requestRetryCountMutex.Unlock() 2060 fake.RequestRetryCountStub = nil 2061 if fake.requestRetryCountReturnsOnCall == nil { 2062 fake.requestRetryCountReturnsOnCall = make(map[int]struct { 2063 result1 int 2064 }) 2065 } 2066 fake.requestRetryCountReturnsOnCall[i] = struct { 2067 result1 int 2068 }{result1} 2069 } 2070 2071 func (fake *FakeConfig) RoutingEndpoint() string { 2072 fake.routingEndpointMutex.Lock() 2073 ret, specificReturn := fake.routingEndpointReturnsOnCall[len(fake.routingEndpointArgsForCall)] 2074 fake.routingEndpointArgsForCall = append(fake.routingEndpointArgsForCall, struct { 2075 }{}) 2076 fake.recordInvocation("RoutingEndpoint", []interface{}{}) 2077 fake.routingEndpointMutex.Unlock() 2078 if fake.RoutingEndpointStub != nil { 2079 return fake.RoutingEndpointStub() 2080 } 2081 if specificReturn { 2082 return ret.result1 2083 } 2084 fakeReturns := fake.routingEndpointReturns 2085 return fakeReturns.result1 2086 } 2087 2088 func (fake *FakeConfig) RoutingEndpointCallCount() int { 2089 fake.routingEndpointMutex.RLock() 2090 defer fake.routingEndpointMutex.RUnlock() 2091 return len(fake.routingEndpointArgsForCall) 2092 } 2093 2094 func (fake *FakeConfig) RoutingEndpointCalls(stub func() string) { 2095 fake.routingEndpointMutex.Lock() 2096 defer fake.routingEndpointMutex.Unlock() 2097 fake.RoutingEndpointStub = stub 2098 } 2099 2100 func (fake *FakeConfig) RoutingEndpointReturns(result1 string) { 2101 fake.routingEndpointMutex.Lock() 2102 defer fake.routingEndpointMutex.Unlock() 2103 fake.RoutingEndpointStub = nil 2104 fake.routingEndpointReturns = struct { 2105 result1 string 2106 }{result1} 2107 } 2108 2109 func (fake *FakeConfig) RoutingEndpointReturnsOnCall(i int, result1 string) { 2110 fake.routingEndpointMutex.Lock() 2111 defer fake.routingEndpointMutex.Unlock() 2112 fake.RoutingEndpointStub = nil 2113 if fake.routingEndpointReturnsOnCall == nil { 2114 fake.routingEndpointReturnsOnCall = make(map[int]struct { 2115 result1 string 2116 }) 2117 } 2118 fake.routingEndpointReturnsOnCall[i] = struct { 2119 result1 string 2120 }{result1} 2121 } 2122 2123 func (fake *FakeConfig) SSHOAuthClient() string { 2124 fake.sSHOAuthClientMutex.Lock() 2125 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 2126 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct { 2127 }{}) 2128 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 2129 fake.sSHOAuthClientMutex.Unlock() 2130 if fake.SSHOAuthClientStub != nil { 2131 return fake.SSHOAuthClientStub() 2132 } 2133 if specificReturn { 2134 return ret.result1 2135 } 2136 fakeReturns := fake.sSHOAuthClientReturns 2137 return fakeReturns.result1 2138 } 2139 2140 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 2141 fake.sSHOAuthClientMutex.RLock() 2142 defer fake.sSHOAuthClientMutex.RUnlock() 2143 return len(fake.sSHOAuthClientArgsForCall) 2144 } 2145 2146 func (fake *FakeConfig) SSHOAuthClientCalls(stub func() string) { 2147 fake.sSHOAuthClientMutex.Lock() 2148 defer fake.sSHOAuthClientMutex.Unlock() 2149 fake.SSHOAuthClientStub = stub 2150 } 2151 2152 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 2153 fake.sSHOAuthClientMutex.Lock() 2154 defer fake.sSHOAuthClientMutex.Unlock() 2155 fake.SSHOAuthClientStub = nil 2156 fake.sSHOAuthClientReturns = struct { 2157 result1 string 2158 }{result1} 2159 } 2160 2161 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 2162 fake.sSHOAuthClientMutex.Lock() 2163 defer fake.sSHOAuthClientMutex.Unlock() 2164 fake.SSHOAuthClientStub = nil 2165 if fake.sSHOAuthClientReturnsOnCall == nil { 2166 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 2167 result1 string 2168 }) 2169 } 2170 fake.sSHOAuthClientReturnsOnCall[i] = struct { 2171 result1 string 2172 }{result1} 2173 } 2174 2175 func (fake *FakeConfig) SetAccessToken(arg1 string) { 2176 fake.setAccessTokenMutex.Lock() 2177 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 2178 arg1 string 2179 }{arg1}) 2180 fake.recordInvocation("SetAccessToken", []interface{}{arg1}) 2181 fake.setAccessTokenMutex.Unlock() 2182 if fake.SetAccessTokenStub != nil { 2183 fake.SetAccessTokenStub(arg1) 2184 } 2185 } 2186 2187 func (fake *FakeConfig) SetAccessTokenCallCount() int { 2188 fake.setAccessTokenMutex.RLock() 2189 defer fake.setAccessTokenMutex.RUnlock() 2190 return len(fake.setAccessTokenArgsForCall) 2191 } 2192 2193 func (fake *FakeConfig) SetAccessTokenCalls(stub func(string)) { 2194 fake.setAccessTokenMutex.Lock() 2195 defer fake.setAccessTokenMutex.Unlock() 2196 fake.SetAccessTokenStub = stub 2197 } 2198 2199 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 2200 fake.setAccessTokenMutex.RLock() 2201 defer fake.setAccessTokenMutex.RUnlock() 2202 argsForCall := fake.setAccessTokenArgsForCall[i] 2203 return argsForCall.arg1 2204 } 2205 2206 func (fake *FakeConfig) SetMinCLIVersion(arg1 string) { 2207 fake.setMinCLIVersionMutex.Lock() 2208 fake.setMinCLIVersionArgsForCall = append(fake.setMinCLIVersionArgsForCall, struct { 2209 arg1 string 2210 }{arg1}) 2211 fake.recordInvocation("SetMinCLIVersion", []interface{}{arg1}) 2212 fake.setMinCLIVersionMutex.Unlock() 2213 if fake.SetMinCLIVersionStub != nil { 2214 fake.SetMinCLIVersionStub(arg1) 2215 } 2216 } 2217 2218 func (fake *FakeConfig) SetMinCLIVersionCallCount() int { 2219 fake.setMinCLIVersionMutex.RLock() 2220 defer fake.setMinCLIVersionMutex.RUnlock() 2221 return len(fake.setMinCLIVersionArgsForCall) 2222 } 2223 2224 func (fake *FakeConfig) SetMinCLIVersionCalls(stub func(string)) { 2225 fake.setMinCLIVersionMutex.Lock() 2226 defer fake.setMinCLIVersionMutex.Unlock() 2227 fake.SetMinCLIVersionStub = stub 2228 } 2229 2230 func (fake *FakeConfig) SetMinCLIVersionArgsForCall(i int) string { 2231 fake.setMinCLIVersionMutex.RLock() 2232 defer fake.setMinCLIVersionMutex.RUnlock() 2233 argsForCall := fake.setMinCLIVersionArgsForCall[i] 2234 return argsForCall.arg1 2235 } 2236 2237 func (fake *FakeConfig) SetOrganizationInformation(arg1 string, arg2 string) { 2238 fake.setOrganizationInformationMutex.Lock() 2239 fake.setOrganizationInformationArgsForCall = append(fake.setOrganizationInformationArgsForCall, struct { 2240 arg1 string 2241 arg2 string 2242 }{arg1, arg2}) 2243 fake.recordInvocation("SetOrganizationInformation", []interface{}{arg1, arg2}) 2244 fake.setOrganizationInformationMutex.Unlock() 2245 if fake.SetOrganizationInformationStub != nil { 2246 fake.SetOrganizationInformationStub(arg1, arg2) 2247 } 2248 } 2249 2250 func (fake *FakeConfig) SetOrganizationInformationCallCount() int { 2251 fake.setOrganizationInformationMutex.RLock() 2252 defer fake.setOrganizationInformationMutex.RUnlock() 2253 return len(fake.setOrganizationInformationArgsForCall) 2254 } 2255 2256 func (fake *FakeConfig) SetOrganizationInformationCalls(stub func(string, string)) { 2257 fake.setOrganizationInformationMutex.Lock() 2258 defer fake.setOrganizationInformationMutex.Unlock() 2259 fake.SetOrganizationInformationStub = stub 2260 } 2261 2262 func (fake *FakeConfig) SetOrganizationInformationArgsForCall(i int) (string, string) { 2263 fake.setOrganizationInformationMutex.RLock() 2264 defer fake.setOrganizationInformationMutex.RUnlock() 2265 argsForCall := fake.setOrganizationInformationArgsForCall[i] 2266 return argsForCall.arg1, argsForCall.arg2 2267 } 2268 2269 func (fake *FakeConfig) SetRefreshToken(arg1 string) { 2270 fake.setRefreshTokenMutex.Lock() 2271 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 2272 arg1 string 2273 }{arg1}) 2274 fake.recordInvocation("SetRefreshToken", []interface{}{arg1}) 2275 fake.setRefreshTokenMutex.Unlock() 2276 if fake.SetRefreshTokenStub != nil { 2277 fake.SetRefreshTokenStub(arg1) 2278 } 2279 } 2280 2281 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 2282 fake.setRefreshTokenMutex.RLock() 2283 defer fake.setRefreshTokenMutex.RUnlock() 2284 return len(fake.setRefreshTokenArgsForCall) 2285 } 2286 2287 func (fake *FakeConfig) SetRefreshTokenCalls(stub func(string)) { 2288 fake.setRefreshTokenMutex.Lock() 2289 defer fake.setRefreshTokenMutex.Unlock() 2290 fake.SetRefreshTokenStub = stub 2291 } 2292 2293 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 2294 fake.setRefreshTokenMutex.RLock() 2295 defer fake.setRefreshTokenMutex.RUnlock() 2296 argsForCall := fake.setRefreshTokenArgsForCall[i] 2297 return argsForCall.arg1 2298 } 2299 2300 func (fake *FakeConfig) SetSpaceInformation(arg1 string, arg2 string, arg3 bool) { 2301 fake.setSpaceInformationMutex.Lock() 2302 fake.setSpaceInformationArgsForCall = append(fake.setSpaceInformationArgsForCall, struct { 2303 arg1 string 2304 arg2 string 2305 arg3 bool 2306 }{arg1, arg2, arg3}) 2307 fake.recordInvocation("SetSpaceInformation", []interface{}{arg1, arg2, arg3}) 2308 fake.setSpaceInformationMutex.Unlock() 2309 if fake.SetSpaceInformationStub != nil { 2310 fake.SetSpaceInformationStub(arg1, arg2, arg3) 2311 } 2312 } 2313 2314 func (fake *FakeConfig) SetSpaceInformationCallCount() int { 2315 fake.setSpaceInformationMutex.RLock() 2316 defer fake.setSpaceInformationMutex.RUnlock() 2317 return len(fake.setSpaceInformationArgsForCall) 2318 } 2319 2320 func (fake *FakeConfig) SetSpaceInformationCalls(stub func(string, string, bool)) { 2321 fake.setSpaceInformationMutex.Lock() 2322 defer fake.setSpaceInformationMutex.Unlock() 2323 fake.SetSpaceInformationStub = stub 2324 } 2325 2326 func (fake *FakeConfig) SetSpaceInformationArgsForCall(i int) (string, string, bool) { 2327 fake.setSpaceInformationMutex.RLock() 2328 defer fake.setSpaceInformationMutex.RUnlock() 2329 argsForCall := fake.setSpaceInformationArgsForCall[i] 2330 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2331 } 2332 2333 func (fake *FakeConfig) SetTargetInformation(arg1 string, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 bool) { 2334 fake.setTargetInformationMutex.Lock() 2335 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 2336 arg1 string 2337 arg2 string 2338 arg3 string 2339 arg4 string 2340 arg5 string 2341 arg6 string 2342 arg7 bool 2343 }{arg1, arg2, arg3, arg4, arg5, arg6, arg7}) 2344 fake.recordInvocation("SetTargetInformation", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6, arg7}) 2345 fake.setTargetInformationMutex.Unlock() 2346 if fake.SetTargetInformationStub != nil { 2347 fake.SetTargetInformationStub(arg1, arg2, arg3, arg4, arg5, arg6, arg7) 2348 } 2349 } 2350 2351 func (fake *FakeConfig) SetTargetInformationCallCount() int { 2352 fake.setTargetInformationMutex.RLock() 2353 defer fake.setTargetInformationMutex.RUnlock() 2354 return len(fake.setTargetInformationArgsForCall) 2355 } 2356 2357 func (fake *FakeConfig) SetTargetInformationCalls(stub func(string, string, string, string, string, string, bool)) { 2358 fake.setTargetInformationMutex.Lock() 2359 defer fake.setTargetInformationMutex.Unlock() 2360 fake.SetTargetInformationStub = stub 2361 } 2362 2363 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, bool) { 2364 fake.setTargetInformationMutex.RLock() 2365 defer fake.setTargetInformationMutex.RUnlock() 2366 argsForCall := fake.setTargetInformationArgsForCall[i] 2367 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6, argsForCall.arg7 2368 } 2369 2370 func (fake *FakeConfig) SetTokenInformation(arg1 string, arg2 string, arg3 string) { 2371 fake.setTokenInformationMutex.Lock() 2372 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 2373 arg1 string 2374 arg2 string 2375 arg3 string 2376 }{arg1, arg2, arg3}) 2377 fake.recordInvocation("SetTokenInformation", []interface{}{arg1, arg2, arg3}) 2378 fake.setTokenInformationMutex.Unlock() 2379 if fake.SetTokenInformationStub != nil { 2380 fake.SetTokenInformationStub(arg1, arg2, arg3) 2381 } 2382 } 2383 2384 func (fake *FakeConfig) SetTokenInformationCallCount() int { 2385 fake.setTokenInformationMutex.RLock() 2386 defer fake.setTokenInformationMutex.RUnlock() 2387 return len(fake.setTokenInformationArgsForCall) 2388 } 2389 2390 func (fake *FakeConfig) SetTokenInformationCalls(stub func(string, string, string)) { 2391 fake.setTokenInformationMutex.Lock() 2392 defer fake.setTokenInformationMutex.Unlock() 2393 fake.SetTokenInformationStub = stub 2394 } 2395 2396 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 2397 fake.setTokenInformationMutex.RLock() 2398 defer fake.setTokenInformationMutex.RUnlock() 2399 argsForCall := fake.setTokenInformationArgsForCall[i] 2400 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2401 } 2402 2403 func (fake *FakeConfig) SetUAAClientCredentials(arg1 string, arg2 string) { 2404 fake.setUAAClientCredentialsMutex.Lock() 2405 fake.setUAAClientCredentialsArgsForCall = append(fake.setUAAClientCredentialsArgsForCall, struct { 2406 arg1 string 2407 arg2 string 2408 }{arg1, arg2}) 2409 fake.recordInvocation("SetUAAClientCredentials", []interface{}{arg1, arg2}) 2410 fake.setUAAClientCredentialsMutex.Unlock() 2411 if fake.SetUAAClientCredentialsStub != nil { 2412 fake.SetUAAClientCredentialsStub(arg1, arg2) 2413 } 2414 } 2415 2416 func (fake *FakeConfig) SetUAAClientCredentialsCallCount() int { 2417 fake.setUAAClientCredentialsMutex.RLock() 2418 defer fake.setUAAClientCredentialsMutex.RUnlock() 2419 return len(fake.setUAAClientCredentialsArgsForCall) 2420 } 2421 2422 func (fake *FakeConfig) SetUAAClientCredentialsCalls(stub func(string, string)) { 2423 fake.setUAAClientCredentialsMutex.Lock() 2424 defer fake.setUAAClientCredentialsMutex.Unlock() 2425 fake.SetUAAClientCredentialsStub = stub 2426 } 2427 2428 func (fake *FakeConfig) SetUAAClientCredentialsArgsForCall(i int) (string, string) { 2429 fake.setUAAClientCredentialsMutex.RLock() 2430 defer fake.setUAAClientCredentialsMutex.RUnlock() 2431 argsForCall := fake.setUAAClientCredentialsArgsForCall[i] 2432 return argsForCall.arg1, argsForCall.arg2 2433 } 2434 2435 func (fake *FakeConfig) SetUAAEndpoint(arg1 string) { 2436 fake.setUAAEndpointMutex.Lock() 2437 fake.setUAAEndpointArgsForCall = append(fake.setUAAEndpointArgsForCall, struct { 2438 arg1 string 2439 }{arg1}) 2440 fake.recordInvocation("SetUAAEndpoint", []interface{}{arg1}) 2441 fake.setUAAEndpointMutex.Unlock() 2442 if fake.SetUAAEndpointStub != nil { 2443 fake.SetUAAEndpointStub(arg1) 2444 } 2445 } 2446 2447 func (fake *FakeConfig) SetUAAEndpointCallCount() int { 2448 fake.setUAAEndpointMutex.RLock() 2449 defer fake.setUAAEndpointMutex.RUnlock() 2450 return len(fake.setUAAEndpointArgsForCall) 2451 } 2452 2453 func (fake *FakeConfig) SetUAAEndpointCalls(stub func(string)) { 2454 fake.setUAAEndpointMutex.Lock() 2455 defer fake.setUAAEndpointMutex.Unlock() 2456 fake.SetUAAEndpointStub = stub 2457 } 2458 2459 func (fake *FakeConfig) SetUAAEndpointArgsForCall(i int) string { 2460 fake.setUAAEndpointMutex.RLock() 2461 defer fake.setUAAEndpointMutex.RUnlock() 2462 argsForCall := fake.setUAAEndpointArgsForCall[i] 2463 return argsForCall.arg1 2464 } 2465 2466 func (fake *FakeConfig) SetUAAGrantType(arg1 string) { 2467 fake.setUAAGrantTypeMutex.Lock() 2468 fake.setUAAGrantTypeArgsForCall = append(fake.setUAAGrantTypeArgsForCall, struct { 2469 arg1 string 2470 }{arg1}) 2471 fake.recordInvocation("SetUAAGrantType", []interface{}{arg1}) 2472 fake.setUAAGrantTypeMutex.Unlock() 2473 if fake.SetUAAGrantTypeStub != nil { 2474 fake.SetUAAGrantTypeStub(arg1) 2475 } 2476 } 2477 2478 func (fake *FakeConfig) SetUAAGrantTypeCallCount() int { 2479 fake.setUAAGrantTypeMutex.RLock() 2480 defer fake.setUAAGrantTypeMutex.RUnlock() 2481 return len(fake.setUAAGrantTypeArgsForCall) 2482 } 2483 2484 func (fake *FakeConfig) SetUAAGrantTypeCalls(stub func(string)) { 2485 fake.setUAAGrantTypeMutex.Lock() 2486 defer fake.setUAAGrantTypeMutex.Unlock() 2487 fake.SetUAAGrantTypeStub = stub 2488 } 2489 2490 func (fake *FakeConfig) SetUAAGrantTypeArgsForCall(i int) string { 2491 fake.setUAAGrantTypeMutex.RLock() 2492 defer fake.setUAAGrantTypeMutex.RUnlock() 2493 argsForCall := fake.setUAAGrantTypeArgsForCall[i] 2494 return argsForCall.arg1 2495 } 2496 2497 func (fake *FakeConfig) SkipSSLValidation() bool { 2498 fake.skipSSLValidationMutex.Lock() 2499 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 2500 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct { 2501 }{}) 2502 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 2503 fake.skipSSLValidationMutex.Unlock() 2504 if fake.SkipSSLValidationStub != nil { 2505 return fake.SkipSSLValidationStub() 2506 } 2507 if specificReturn { 2508 return ret.result1 2509 } 2510 fakeReturns := fake.skipSSLValidationReturns 2511 return fakeReturns.result1 2512 } 2513 2514 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 2515 fake.skipSSLValidationMutex.RLock() 2516 defer fake.skipSSLValidationMutex.RUnlock() 2517 return len(fake.skipSSLValidationArgsForCall) 2518 } 2519 2520 func (fake *FakeConfig) SkipSSLValidationCalls(stub func() bool) { 2521 fake.skipSSLValidationMutex.Lock() 2522 defer fake.skipSSLValidationMutex.Unlock() 2523 fake.SkipSSLValidationStub = stub 2524 } 2525 2526 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 2527 fake.skipSSLValidationMutex.Lock() 2528 defer fake.skipSSLValidationMutex.Unlock() 2529 fake.SkipSSLValidationStub = nil 2530 fake.skipSSLValidationReturns = struct { 2531 result1 bool 2532 }{result1} 2533 } 2534 2535 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 2536 fake.skipSSLValidationMutex.Lock() 2537 defer fake.skipSSLValidationMutex.Unlock() 2538 fake.SkipSSLValidationStub = nil 2539 if fake.skipSSLValidationReturnsOnCall == nil { 2540 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 2541 result1 bool 2542 }) 2543 } 2544 fake.skipSSLValidationReturnsOnCall[i] = struct { 2545 result1 bool 2546 }{result1} 2547 } 2548 2549 func (fake *FakeConfig) StagingTimeout() time.Duration { 2550 fake.stagingTimeoutMutex.Lock() 2551 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 2552 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct { 2553 }{}) 2554 fake.recordInvocation("StagingTimeout", []interface{}{}) 2555 fake.stagingTimeoutMutex.Unlock() 2556 if fake.StagingTimeoutStub != nil { 2557 return fake.StagingTimeoutStub() 2558 } 2559 if specificReturn { 2560 return ret.result1 2561 } 2562 fakeReturns := fake.stagingTimeoutReturns 2563 return fakeReturns.result1 2564 } 2565 2566 func (fake *FakeConfig) StagingTimeoutCallCount() int { 2567 fake.stagingTimeoutMutex.RLock() 2568 defer fake.stagingTimeoutMutex.RUnlock() 2569 return len(fake.stagingTimeoutArgsForCall) 2570 } 2571 2572 func (fake *FakeConfig) StagingTimeoutCalls(stub func() time.Duration) { 2573 fake.stagingTimeoutMutex.Lock() 2574 defer fake.stagingTimeoutMutex.Unlock() 2575 fake.StagingTimeoutStub = stub 2576 } 2577 2578 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 2579 fake.stagingTimeoutMutex.Lock() 2580 defer fake.stagingTimeoutMutex.Unlock() 2581 fake.StagingTimeoutStub = nil 2582 fake.stagingTimeoutReturns = struct { 2583 result1 time.Duration 2584 }{result1} 2585 } 2586 2587 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 2588 fake.stagingTimeoutMutex.Lock() 2589 defer fake.stagingTimeoutMutex.Unlock() 2590 fake.StagingTimeoutStub = nil 2591 if fake.stagingTimeoutReturnsOnCall == nil { 2592 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 2593 result1 time.Duration 2594 }) 2595 } 2596 fake.stagingTimeoutReturnsOnCall[i] = struct { 2597 result1 time.Duration 2598 }{result1} 2599 } 2600 2601 func (fake *FakeConfig) StartupTimeout() time.Duration { 2602 fake.startupTimeoutMutex.Lock() 2603 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 2604 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct { 2605 }{}) 2606 fake.recordInvocation("StartupTimeout", []interface{}{}) 2607 fake.startupTimeoutMutex.Unlock() 2608 if fake.StartupTimeoutStub != nil { 2609 return fake.StartupTimeoutStub() 2610 } 2611 if specificReturn { 2612 return ret.result1 2613 } 2614 fakeReturns := fake.startupTimeoutReturns 2615 return fakeReturns.result1 2616 } 2617 2618 func (fake *FakeConfig) StartupTimeoutCallCount() int { 2619 fake.startupTimeoutMutex.RLock() 2620 defer fake.startupTimeoutMutex.RUnlock() 2621 return len(fake.startupTimeoutArgsForCall) 2622 } 2623 2624 func (fake *FakeConfig) StartupTimeoutCalls(stub func() time.Duration) { 2625 fake.startupTimeoutMutex.Lock() 2626 defer fake.startupTimeoutMutex.Unlock() 2627 fake.StartupTimeoutStub = stub 2628 } 2629 2630 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 2631 fake.startupTimeoutMutex.Lock() 2632 defer fake.startupTimeoutMutex.Unlock() 2633 fake.StartupTimeoutStub = nil 2634 fake.startupTimeoutReturns = struct { 2635 result1 time.Duration 2636 }{result1} 2637 } 2638 2639 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 2640 fake.startupTimeoutMutex.Lock() 2641 defer fake.startupTimeoutMutex.Unlock() 2642 fake.StartupTimeoutStub = nil 2643 if fake.startupTimeoutReturnsOnCall == nil { 2644 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 2645 result1 time.Duration 2646 }) 2647 } 2648 fake.startupTimeoutReturnsOnCall[i] = struct { 2649 result1 time.Duration 2650 }{result1} 2651 } 2652 2653 func (fake *FakeConfig) Target() string { 2654 fake.targetMutex.Lock() 2655 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 2656 fake.targetArgsForCall = append(fake.targetArgsForCall, struct { 2657 }{}) 2658 fake.recordInvocation("Target", []interface{}{}) 2659 fake.targetMutex.Unlock() 2660 if fake.TargetStub != nil { 2661 return fake.TargetStub() 2662 } 2663 if specificReturn { 2664 return ret.result1 2665 } 2666 fakeReturns := fake.targetReturns 2667 return fakeReturns.result1 2668 } 2669 2670 func (fake *FakeConfig) TargetCallCount() int { 2671 fake.targetMutex.RLock() 2672 defer fake.targetMutex.RUnlock() 2673 return len(fake.targetArgsForCall) 2674 } 2675 2676 func (fake *FakeConfig) TargetCalls(stub func() string) { 2677 fake.targetMutex.Lock() 2678 defer fake.targetMutex.Unlock() 2679 fake.TargetStub = stub 2680 } 2681 2682 func (fake *FakeConfig) TargetReturns(result1 string) { 2683 fake.targetMutex.Lock() 2684 defer fake.targetMutex.Unlock() 2685 fake.TargetStub = nil 2686 fake.targetReturns = struct { 2687 result1 string 2688 }{result1} 2689 } 2690 2691 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 2692 fake.targetMutex.Lock() 2693 defer fake.targetMutex.Unlock() 2694 fake.TargetStub = nil 2695 if fake.targetReturnsOnCall == nil { 2696 fake.targetReturnsOnCall = make(map[int]struct { 2697 result1 string 2698 }) 2699 } 2700 fake.targetReturnsOnCall[i] = struct { 2701 result1 string 2702 }{result1} 2703 } 2704 2705 func (fake *FakeConfig) TargetedOrganization() configv3.Organization { 2706 fake.targetedOrganizationMutex.Lock() 2707 ret, specificReturn := fake.targetedOrganizationReturnsOnCall[len(fake.targetedOrganizationArgsForCall)] 2708 fake.targetedOrganizationArgsForCall = append(fake.targetedOrganizationArgsForCall, struct { 2709 }{}) 2710 fake.recordInvocation("TargetedOrganization", []interface{}{}) 2711 fake.targetedOrganizationMutex.Unlock() 2712 if fake.TargetedOrganizationStub != nil { 2713 return fake.TargetedOrganizationStub() 2714 } 2715 if specificReturn { 2716 return ret.result1 2717 } 2718 fakeReturns := fake.targetedOrganizationReturns 2719 return fakeReturns.result1 2720 } 2721 2722 func (fake *FakeConfig) TargetedOrganizationCallCount() int { 2723 fake.targetedOrganizationMutex.RLock() 2724 defer fake.targetedOrganizationMutex.RUnlock() 2725 return len(fake.targetedOrganizationArgsForCall) 2726 } 2727 2728 func (fake *FakeConfig) TargetedOrganizationCalls(stub func() configv3.Organization) { 2729 fake.targetedOrganizationMutex.Lock() 2730 defer fake.targetedOrganizationMutex.Unlock() 2731 fake.TargetedOrganizationStub = stub 2732 } 2733 2734 func (fake *FakeConfig) TargetedOrganizationReturns(result1 configv3.Organization) { 2735 fake.targetedOrganizationMutex.Lock() 2736 defer fake.targetedOrganizationMutex.Unlock() 2737 fake.TargetedOrganizationStub = nil 2738 fake.targetedOrganizationReturns = struct { 2739 result1 configv3.Organization 2740 }{result1} 2741 } 2742 2743 func (fake *FakeConfig) TargetedOrganizationReturnsOnCall(i int, result1 configv3.Organization) { 2744 fake.targetedOrganizationMutex.Lock() 2745 defer fake.targetedOrganizationMutex.Unlock() 2746 fake.TargetedOrganizationStub = nil 2747 if fake.targetedOrganizationReturnsOnCall == nil { 2748 fake.targetedOrganizationReturnsOnCall = make(map[int]struct { 2749 result1 configv3.Organization 2750 }) 2751 } 2752 fake.targetedOrganizationReturnsOnCall[i] = struct { 2753 result1 configv3.Organization 2754 }{result1} 2755 } 2756 2757 func (fake *FakeConfig) TargetedOrganizationName() string { 2758 fake.targetedOrganizationNameMutex.Lock() 2759 ret, specificReturn := fake.targetedOrganizationNameReturnsOnCall[len(fake.targetedOrganizationNameArgsForCall)] 2760 fake.targetedOrganizationNameArgsForCall = append(fake.targetedOrganizationNameArgsForCall, struct { 2761 }{}) 2762 fake.recordInvocation("TargetedOrganizationName", []interface{}{}) 2763 fake.targetedOrganizationNameMutex.Unlock() 2764 if fake.TargetedOrganizationNameStub != nil { 2765 return fake.TargetedOrganizationNameStub() 2766 } 2767 if specificReturn { 2768 return ret.result1 2769 } 2770 fakeReturns := fake.targetedOrganizationNameReturns 2771 return fakeReturns.result1 2772 } 2773 2774 func (fake *FakeConfig) TargetedOrganizationNameCallCount() int { 2775 fake.targetedOrganizationNameMutex.RLock() 2776 defer fake.targetedOrganizationNameMutex.RUnlock() 2777 return len(fake.targetedOrganizationNameArgsForCall) 2778 } 2779 2780 func (fake *FakeConfig) TargetedOrganizationNameCalls(stub func() string) { 2781 fake.targetedOrganizationNameMutex.Lock() 2782 defer fake.targetedOrganizationNameMutex.Unlock() 2783 fake.TargetedOrganizationNameStub = stub 2784 } 2785 2786 func (fake *FakeConfig) TargetedOrganizationNameReturns(result1 string) { 2787 fake.targetedOrganizationNameMutex.Lock() 2788 defer fake.targetedOrganizationNameMutex.Unlock() 2789 fake.TargetedOrganizationNameStub = nil 2790 fake.targetedOrganizationNameReturns = struct { 2791 result1 string 2792 }{result1} 2793 } 2794 2795 func (fake *FakeConfig) TargetedOrganizationNameReturnsOnCall(i int, result1 string) { 2796 fake.targetedOrganizationNameMutex.Lock() 2797 defer fake.targetedOrganizationNameMutex.Unlock() 2798 fake.TargetedOrganizationNameStub = nil 2799 if fake.targetedOrganizationNameReturnsOnCall == nil { 2800 fake.targetedOrganizationNameReturnsOnCall = make(map[int]struct { 2801 result1 string 2802 }) 2803 } 2804 fake.targetedOrganizationNameReturnsOnCall[i] = struct { 2805 result1 string 2806 }{result1} 2807 } 2808 2809 func (fake *FakeConfig) TargetedSpace() configv3.Space { 2810 fake.targetedSpaceMutex.Lock() 2811 ret, specificReturn := fake.targetedSpaceReturnsOnCall[len(fake.targetedSpaceArgsForCall)] 2812 fake.targetedSpaceArgsForCall = append(fake.targetedSpaceArgsForCall, struct { 2813 }{}) 2814 fake.recordInvocation("TargetedSpace", []interface{}{}) 2815 fake.targetedSpaceMutex.Unlock() 2816 if fake.TargetedSpaceStub != nil { 2817 return fake.TargetedSpaceStub() 2818 } 2819 if specificReturn { 2820 return ret.result1 2821 } 2822 fakeReturns := fake.targetedSpaceReturns 2823 return fakeReturns.result1 2824 } 2825 2826 func (fake *FakeConfig) TargetedSpaceCallCount() int { 2827 fake.targetedSpaceMutex.RLock() 2828 defer fake.targetedSpaceMutex.RUnlock() 2829 return len(fake.targetedSpaceArgsForCall) 2830 } 2831 2832 func (fake *FakeConfig) TargetedSpaceCalls(stub func() configv3.Space) { 2833 fake.targetedSpaceMutex.Lock() 2834 defer fake.targetedSpaceMutex.Unlock() 2835 fake.TargetedSpaceStub = stub 2836 } 2837 2838 func (fake *FakeConfig) TargetedSpaceReturns(result1 configv3.Space) { 2839 fake.targetedSpaceMutex.Lock() 2840 defer fake.targetedSpaceMutex.Unlock() 2841 fake.TargetedSpaceStub = nil 2842 fake.targetedSpaceReturns = struct { 2843 result1 configv3.Space 2844 }{result1} 2845 } 2846 2847 func (fake *FakeConfig) TargetedSpaceReturnsOnCall(i int, result1 configv3.Space) { 2848 fake.targetedSpaceMutex.Lock() 2849 defer fake.targetedSpaceMutex.Unlock() 2850 fake.TargetedSpaceStub = nil 2851 if fake.targetedSpaceReturnsOnCall == nil { 2852 fake.targetedSpaceReturnsOnCall = make(map[int]struct { 2853 result1 configv3.Space 2854 }) 2855 } 2856 fake.targetedSpaceReturnsOnCall[i] = struct { 2857 result1 configv3.Space 2858 }{result1} 2859 } 2860 2861 func (fake *FakeConfig) UAADisableKeepAlives() bool { 2862 fake.uAADisableKeepAlivesMutex.Lock() 2863 ret, specificReturn := fake.uAADisableKeepAlivesReturnsOnCall[len(fake.uAADisableKeepAlivesArgsForCall)] 2864 fake.uAADisableKeepAlivesArgsForCall = append(fake.uAADisableKeepAlivesArgsForCall, struct { 2865 }{}) 2866 fake.recordInvocation("UAADisableKeepAlives", []interface{}{}) 2867 fake.uAADisableKeepAlivesMutex.Unlock() 2868 if fake.UAADisableKeepAlivesStub != nil { 2869 return fake.UAADisableKeepAlivesStub() 2870 } 2871 if specificReturn { 2872 return ret.result1 2873 } 2874 fakeReturns := fake.uAADisableKeepAlivesReturns 2875 return fakeReturns.result1 2876 } 2877 2878 func (fake *FakeConfig) UAADisableKeepAlivesCallCount() int { 2879 fake.uAADisableKeepAlivesMutex.RLock() 2880 defer fake.uAADisableKeepAlivesMutex.RUnlock() 2881 return len(fake.uAADisableKeepAlivesArgsForCall) 2882 } 2883 2884 func (fake *FakeConfig) UAADisableKeepAlivesCalls(stub func() bool) { 2885 fake.uAADisableKeepAlivesMutex.Lock() 2886 defer fake.uAADisableKeepAlivesMutex.Unlock() 2887 fake.UAADisableKeepAlivesStub = stub 2888 } 2889 2890 func (fake *FakeConfig) UAADisableKeepAlivesReturns(result1 bool) { 2891 fake.uAADisableKeepAlivesMutex.Lock() 2892 defer fake.uAADisableKeepAlivesMutex.Unlock() 2893 fake.UAADisableKeepAlivesStub = nil 2894 fake.uAADisableKeepAlivesReturns = struct { 2895 result1 bool 2896 }{result1} 2897 } 2898 2899 func (fake *FakeConfig) UAADisableKeepAlivesReturnsOnCall(i int, result1 bool) { 2900 fake.uAADisableKeepAlivesMutex.Lock() 2901 defer fake.uAADisableKeepAlivesMutex.Unlock() 2902 fake.UAADisableKeepAlivesStub = nil 2903 if fake.uAADisableKeepAlivesReturnsOnCall == nil { 2904 fake.uAADisableKeepAlivesReturnsOnCall = make(map[int]struct { 2905 result1 bool 2906 }) 2907 } 2908 fake.uAADisableKeepAlivesReturnsOnCall[i] = struct { 2909 result1 bool 2910 }{result1} 2911 } 2912 2913 func (fake *FakeConfig) UAAGrantType() string { 2914 fake.uAAGrantTypeMutex.Lock() 2915 ret, specificReturn := fake.uAAGrantTypeReturnsOnCall[len(fake.uAAGrantTypeArgsForCall)] 2916 fake.uAAGrantTypeArgsForCall = append(fake.uAAGrantTypeArgsForCall, struct { 2917 }{}) 2918 fake.recordInvocation("UAAGrantType", []interface{}{}) 2919 fake.uAAGrantTypeMutex.Unlock() 2920 if fake.UAAGrantTypeStub != nil { 2921 return fake.UAAGrantTypeStub() 2922 } 2923 if specificReturn { 2924 return ret.result1 2925 } 2926 fakeReturns := fake.uAAGrantTypeReturns 2927 return fakeReturns.result1 2928 } 2929 2930 func (fake *FakeConfig) UAAGrantTypeCallCount() int { 2931 fake.uAAGrantTypeMutex.RLock() 2932 defer fake.uAAGrantTypeMutex.RUnlock() 2933 return len(fake.uAAGrantTypeArgsForCall) 2934 } 2935 2936 func (fake *FakeConfig) UAAGrantTypeCalls(stub func() string) { 2937 fake.uAAGrantTypeMutex.Lock() 2938 defer fake.uAAGrantTypeMutex.Unlock() 2939 fake.UAAGrantTypeStub = stub 2940 } 2941 2942 func (fake *FakeConfig) UAAGrantTypeReturns(result1 string) { 2943 fake.uAAGrantTypeMutex.Lock() 2944 defer fake.uAAGrantTypeMutex.Unlock() 2945 fake.UAAGrantTypeStub = nil 2946 fake.uAAGrantTypeReturns = struct { 2947 result1 string 2948 }{result1} 2949 } 2950 2951 func (fake *FakeConfig) UAAGrantTypeReturnsOnCall(i int, result1 string) { 2952 fake.uAAGrantTypeMutex.Lock() 2953 defer fake.uAAGrantTypeMutex.Unlock() 2954 fake.UAAGrantTypeStub = nil 2955 if fake.uAAGrantTypeReturnsOnCall == nil { 2956 fake.uAAGrantTypeReturnsOnCall = make(map[int]struct { 2957 result1 string 2958 }) 2959 } 2960 fake.uAAGrantTypeReturnsOnCall[i] = struct { 2961 result1 string 2962 }{result1} 2963 } 2964 2965 func (fake *FakeConfig) UAAOAuthClient() string { 2966 fake.uAAOAuthClientMutex.Lock() 2967 ret, specificReturn := fake.uAAOAuthClientReturnsOnCall[len(fake.uAAOAuthClientArgsForCall)] 2968 fake.uAAOAuthClientArgsForCall = append(fake.uAAOAuthClientArgsForCall, struct { 2969 }{}) 2970 fake.recordInvocation("UAAOAuthClient", []interface{}{}) 2971 fake.uAAOAuthClientMutex.Unlock() 2972 if fake.UAAOAuthClientStub != nil { 2973 return fake.UAAOAuthClientStub() 2974 } 2975 if specificReturn { 2976 return ret.result1 2977 } 2978 fakeReturns := fake.uAAOAuthClientReturns 2979 return fakeReturns.result1 2980 } 2981 2982 func (fake *FakeConfig) UAAOAuthClientCallCount() int { 2983 fake.uAAOAuthClientMutex.RLock() 2984 defer fake.uAAOAuthClientMutex.RUnlock() 2985 return len(fake.uAAOAuthClientArgsForCall) 2986 } 2987 2988 func (fake *FakeConfig) UAAOAuthClientCalls(stub func() string) { 2989 fake.uAAOAuthClientMutex.Lock() 2990 defer fake.uAAOAuthClientMutex.Unlock() 2991 fake.UAAOAuthClientStub = stub 2992 } 2993 2994 func (fake *FakeConfig) UAAOAuthClientReturns(result1 string) { 2995 fake.uAAOAuthClientMutex.Lock() 2996 defer fake.uAAOAuthClientMutex.Unlock() 2997 fake.UAAOAuthClientStub = nil 2998 fake.uAAOAuthClientReturns = struct { 2999 result1 string 3000 }{result1} 3001 } 3002 3003 func (fake *FakeConfig) UAAOAuthClientReturnsOnCall(i int, result1 string) { 3004 fake.uAAOAuthClientMutex.Lock() 3005 defer fake.uAAOAuthClientMutex.Unlock() 3006 fake.UAAOAuthClientStub = nil 3007 if fake.uAAOAuthClientReturnsOnCall == nil { 3008 fake.uAAOAuthClientReturnsOnCall = make(map[int]struct { 3009 result1 string 3010 }) 3011 } 3012 fake.uAAOAuthClientReturnsOnCall[i] = struct { 3013 result1 string 3014 }{result1} 3015 } 3016 3017 func (fake *FakeConfig) UAAOAuthClientSecret() string { 3018 fake.uAAOAuthClientSecretMutex.Lock() 3019 ret, specificReturn := fake.uAAOAuthClientSecretReturnsOnCall[len(fake.uAAOAuthClientSecretArgsForCall)] 3020 fake.uAAOAuthClientSecretArgsForCall = append(fake.uAAOAuthClientSecretArgsForCall, struct { 3021 }{}) 3022 fake.recordInvocation("UAAOAuthClientSecret", []interface{}{}) 3023 fake.uAAOAuthClientSecretMutex.Unlock() 3024 if fake.UAAOAuthClientSecretStub != nil { 3025 return fake.UAAOAuthClientSecretStub() 3026 } 3027 if specificReturn { 3028 return ret.result1 3029 } 3030 fakeReturns := fake.uAAOAuthClientSecretReturns 3031 return fakeReturns.result1 3032 } 3033 3034 func (fake *FakeConfig) UAAOAuthClientSecretCallCount() int { 3035 fake.uAAOAuthClientSecretMutex.RLock() 3036 defer fake.uAAOAuthClientSecretMutex.RUnlock() 3037 return len(fake.uAAOAuthClientSecretArgsForCall) 3038 } 3039 3040 func (fake *FakeConfig) UAAOAuthClientSecretCalls(stub func() string) { 3041 fake.uAAOAuthClientSecretMutex.Lock() 3042 defer fake.uAAOAuthClientSecretMutex.Unlock() 3043 fake.UAAOAuthClientSecretStub = stub 3044 } 3045 3046 func (fake *FakeConfig) UAAOAuthClientSecretReturns(result1 string) { 3047 fake.uAAOAuthClientSecretMutex.Lock() 3048 defer fake.uAAOAuthClientSecretMutex.Unlock() 3049 fake.UAAOAuthClientSecretStub = nil 3050 fake.uAAOAuthClientSecretReturns = struct { 3051 result1 string 3052 }{result1} 3053 } 3054 3055 func (fake *FakeConfig) UAAOAuthClientSecretReturnsOnCall(i int, result1 string) { 3056 fake.uAAOAuthClientSecretMutex.Lock() 3057 defer fake.uAAOAuthClientSecretMutex.Unlock() 3058 fake.UAAOAuthClientSecretStub = nil 3059 if fake.uAAOAuthClientSecretReturnsOnCall == nil { 3060 fake.uAAOAuthClientSecretReturnsOnCall = make(map[int]struct { 3061 result1 string 3062 }) 3063 } 3064 fake.uAAOAuthClientSecretReturnsOnCall[i] = struct { 3065 result1 string 3066 }{result1} 3067 } 3068 3069 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformation() { 3070 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 3071 fake.unsetOrganizationAndSpaceInformationArgsForCall = append(fake.unsetOrganizationAndSpaceInformationArgsForCall, struct { 3072 }{}) 3073 fake.recordInvocation("UnsetOrganizationAndSpaceInformation", []interface{}{}) 3074 fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 3075 if fake.UnsetOrganizationAndSpaceInformationStub != nil { 3076 fake.UnsetOrganizationAndSpaceInformationStub() 3077 } 3078 } 3079 3080 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCallCount() int { 3081 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 3082 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 3083 return len(fake.unsetOrganizationAndSpaceInformationArgsForCall) 3084 } 3085 3086 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCalls(stub func()) { 3087 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 3088 defer fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 3089 fake.UnsetOrganizationAndSpaceInformationStub = stub 3090 } 3091 3092 func (fake *FakeConfig) UnsetSpaceInformation() { 3093 fake.unsetSpaceInformationMutex.Lock() 3094 fake.unsetSpaceInformationArgsForCall = append(fake.unsetSpaceInformationArgsForCall, struct { 3095 }{}) 3096 fake.recordInvocation("UnsetSpaceInformation", []interface{}{}) 3097 fake.unsetSpaceInformationMutex.Unlock() 3098 if fake.UnsetSpaceInformationStub != nil { 3099 fake.UnsetSpaceInformationStub() 3100 } 3101 } 3102 3103 func (fake *FakeConfig) UnsetSpaceInformationCallCount() int { 3104 fake.unsetSpaceInformationMutex.RLock() 3105 defer fake.unsetSpaceInformationMutex.RUnlock() 3106 return len(fake.unsetSpaceInformationArgsForCall) 3107 } 3108 3109 func (fake *FakeConfig) UnsetSpaceInformationCalls(stub func()) { 3110 fake.unsetSpaceInformationMutex.Lock() 3111 defer fake.unsetSpaceInformationMutex.Unlock() 3112 fake.UnsetSpaceInformationStub = stub 3113 } 3114 3115 func (fake *FakeConfig) UnsetUserInformation() { 3116 fake.unsetUserInformationMutex.Lock() 3117 fake.unsetUserInformationArgsForCall = append(fake.unsetUserInformationArgsForCall, struct { 3118 }{}) 3119 fake.recordInvocation("UnsetUserInformation", []interface{}{}) 3120 fake.unsetUserInformationMutex.Unlock() 3121 if fake.UnsetUserInformationStub != nil { 3122 fake.UnsetUserInformationStub() 3123 } 3124 } 3125 3126 func (fake *FakeConfig) UnsetUserInformationCallCount() int { 3127 fake.unsetUserInformationMutex.RLock() 3128 defer fake.unsetUserInformationMutex.RUnlock() 3129 return len(fake.unsetUserInformationArgsForCall) 3130 } 3131 3132 func (fake *FakeConfig) UnsetUserInformationCalls(stub func()) { 3133 fake.unsetUserInformationMutex.Lock() 3134 defer fake.unsetUserInformationMutex.Unlock() 3135 fake.UnsetUserInformationStub = stub 3136 } 3137 3138 func (fake *FakeConfig) V7SetSpaceInformation(arg1 string, arg2 string) { 3139 fake.v7SetSpaceInformationMutex.Lock() 3140 fake.v7SetSpaceInformationArgsForCall = append(fake.v7SetSpaceInformationArgsForCall, struct { 3141 arg1 string 3142 arg2 string 3143 }{arg1, arg2}) 3144 fake.recordInvocation("V7SetSpaceInformation", []interface{}{arg1, arg2}) 3145 fake.v7SetSpaceInformationMutex.Unlock() 3146 if fake.V7SetSpaceInformationStub != nil { 3147 fake.V7SetSpaceInformationStub(arg1, arg2) 3148 } 3149 } 3150 3151 func (fake *FakeConfig) V7SetSpaceInformationCallCount() int { 3152 fake.v7SetSpaceInformationMutex.RLock() 3153 defer fake.v7SetSpaceInformationMutex.RUnlock() 3154 return len(fake.v7SetSpaceInformationArgsForCall) 3155 } 3156 3157 func (fake *FakeConfig) V7SetSpaceInformationCalls(stub func(string, string)) { 3158 fake.v7SetSpaceInformationMutex.Lock() 3159 defer fake.v7SetSpaceInformationMutex.Unlock() 3160 fake.V7SetSpaceInformationStub = stub 3161 } 3162 3163 func (fake *FakeConfig) V7SetSpaceInformationArgsForCall(i int) (string, string) { 3164 fake.v7SetSpaceInformationMutex.RLock() 3165 defer fake.v7SetSpaceInformationMutex.RUnlock() 3166 argsForCall := fake.v7SetSpaceInformationArgsForCall[i] 3167 return argsForCall.arg1, argsForCall.arg2 3168 } 3169 3170 func (fake *FakeConfig) Verbose() (bool, []string) { 3171 fake.verboseMutex.Lock() 3172 ret, specificReturn := fake.verboseReturnsOnCall[len(fake.verboseArgsForCall)] 3173 fake.verboseArgsForCall = append(fake.verboseArgsForCall, struct { 3174 }{}) 3175 fake.recordInvocation("Verbose", []interface{}{}) 3176 fake.verboseMutex.Unlock() 3177 if fake.VerboseStub != nil { 3178 return fake.VerboseStub() 3179 } 3180 if specificReturn { 3181 return ret.result1, ret.result2 3182 } 3183 fakeReturns := fake.verboseReturns 3184 return fakeReturns.result1, fakeReturns.result2 3185 } 3186 3187 func (fake *FakeConfig) VerboseCallCount() int { 3188 fake.verboseMutex.RLock() 3189 defer fake.verboseMutex.RUnlock() 3190 return len(fake.verboseArgsForCall) 3191 } 3192 3193 func (fake *FakeConfig) VerboseCalls(stub func() (bool, []string)) { 3194 fake.verboseMutex.Lock() 3195 defer fake.verboseMutex.Unlock() 3196 fake.VerboseStub = stub 3197 } 3198 3199 func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string) { 3200 fake.verboseMutex.Lock() 3201 defer fake.verboseMutex.Unlock() 3202 fake.VerboseStub = nil 3203 fake.verboseReturns = struct { 3204 result1 bool 3205 result2 []string 3206 }{result1, result2} 3207 } 3208 3209 func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string) { 3210 fake.verboseMutex.Lock() 3211 defer fake.verboseMutex.Unlock() 3212 fake.VerboseStub = nil 3213 if fake.verboseReturnsOnCall == nil { 3214 fake.verboseReturnsOnCall = make(map[int]struct { 3215 result1 bool 3216 result2 []string 3217 }) 3218 } 3219 fake.verboseReturnsOnCall[i] = struct { 3220 result1 bool 3221 result2 []string 3222 }{result1, result2} 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.experimentalLoginMutex.RLock() 3309 defer fake.experimentalLoginMutex.RUnlock() 3310 fake.getPluginMutex.RLock() 3311 defer fake.getPluginMutex.RUnlock() 3312 fake.getPluginCaseInsensitiveMutex.RLock() 3313 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 3314 fake.hasTargetedOrganizationMutex.RLock() 3315 defer fake.hasTargetedOrganizationMutex.RUnlock() 3316 fake.hasTargetedSpaceMutex.RLock() 3317 defer fake.hasTargetedSpaceMutex.RUnlock() 3318 fake.localeMutex.RLock() 3319 defer fake.localeMutex.RUnlock() 3320 fake.minCLIVersionMutex.RLock() 3321 defer fake.minCLIVersionMutex.RUnlock() 3322 fake.nOAARequestRetryCountMutex.RLock() 3323 defer fake.nOAARequestRetryCountMutex.RUnlock() 3324 fake.overallPollingTimeoutMutex.RLock() 3325 defer fake.overallPollingTimeoutMutex.RUnlock() 3326 fake.pluginHomeMutex.RLock() 3327 defer fake.pluginHomeMutex.RUnlock() 3328 fake.pluginRepositoriesMutex.RLock() 3329 defer fake.pluginRepositoriesMutex.RUnlock() 3330 fake.pluginsMutex.RLock() 3331 defer fake.pluginsMutex.RUnlock() 3332 fake.pollingIntervalMutex.RLock() 3333 defer fake.pollingIntervalMutex.RUnlock() 3334 fake.refreshTokenMutex.RLock() 3335 defer fake.refreshTokenMutex.RUnlock() 3336 fake.removePluginMutex.RLock() 3337 defer fake.removePluginMutex.RUnlock() 3338 fake.requestRetryCountMutex.RLock() 3339 defer fake.requestRetryCountMutex.RUnlock() 3340 fake.routingEndpointMutex.RLock() 3341 defer fake.routingEndpointMutex.RUnlock() 3342 fake.sSHOAuthClientMutex.RLock() 3343 defer fake.sSHOAuthClientMutex.RUnlock() 3344 fake.setAccessTokenMutex.RLock() 3345 defer fake.setAccessTokenMutex.RUnlock() 3346 fake.setMinCLIVersionMutex.RLock() 3347 defer fake.setMinCLIVersionMutex.RUnlock() 3348 fake.setOrganizationInformationMutex.RLock() 3349 defer fake.setOrganizationInformationMutex.RUnlock() 3350 fake.setRefreshTokenMutex.RLock() 3351 defer fake.setRefreshTokenMutex.RUnlock() 3352 fake.setSpaceInformationMutex.RLock() 3353 defer fake.setSpaceInformationMutex.RUnlock() 3354 fake.setTargetInformationMutex.RLock() 3355 defer fake.setTargetInformationMutex.RUnlock() 3356 fake.setTokenInformationMutex.RLock() 3357 defer fake.setTokenInformationMutex.RUnlock() 3358 fake.setUAAClientCredentialsMutex.RLock() 3359 defer fake.setUAAClientCredentialsMutex.RUnlock() 3360 fake.setUAAEndpointMutex.RLock() 3361 defer fake.setUAAEndpointMutex.RUnlock() 3362 fake.setUAAGrantTypeMutex.RLock() 3363 defer fake.setUAAGrantTypeMutex.RUnlock() 3364 fake.skipSSLValidationMutex.RLock() 3365 defer fake.skipSSLValidationMutex.RUnlock() 3366 fake.stagingTimeoutMutex.RLock() 3367 defer fake.stagingTimeoutMutex.RUnlock() 3368 fake.startupTimeoutMutex.RLock() 3369 defer fake.startupTimeoutMutex.RUnlock() 3370 fake.targetMutex.RLock() 3371 defer fake.targetMutex.RUnlock() 3372 fake.targetedOrganizationMutex.RLock() 3373 defer fake.targetedOrganizationMutex.RUnlock() 3374 fake.targetedOrganizationNameMutex.RLock() 3375 defer fake.targetedOrganizationNameMutex.RUnlock() 3376 fake.targetedSpaceMutex.RLock() 3377 defer fake.targetedSpaceMutex.RUnlock() 3378 fake.uAADisableKeepAlivesMutex.RLock() 3379 defer fake.uAADisableKeepAlivesMutex.RUnlock() 3380 fake.uAAGrantTypeMutex.RLock() 3381 defer fake.uAAGrantTypeMutex.RUnlock() 3382 fake.uAAOAuthClientMutex.RLock() 3383 defer fake.uAAOAuthClientMutex.RUnlock() 3384 fake.uAAOAuthClientSecretMutex.RLock() 3385 defer fake.uAAOAuthClientSecretMutex.RUnlock() 3386 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 3387 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 3388 fake.unsetSpaceInformationMutex.RLock() 3389 defer fake.unsetSpaceInformationMutex.RUnlock() 3390 fake.unsetUserInformationMutex.RLock() 3391 defer fake.unsetUserInformationMutex.RUnlock() 3392 fake.v7SetSpaceInformationMutex.RLock() 3393 defer fake.v7SetSpaceInformationMutex.RUnlock() 3394 fake.verboseMutex.RLock() 3395 defer fake.verboseMutex.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)