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