github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+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 AccessTokenStub func() string 14 accessTokenMutex sync.RWMutex 15 accessTokenArgsForCall []struct{} 16 accessTokenReturns struct { 17 result1 string 18 } 19 accessTokenReturnsOnCall map[int]struct { 20 result1 string 21 } 22 AddPluginStub func(configv3.Plugin) 23 addPluginMutex sync.RWMutex 24 addPluginArgsForCall []struct { 25 arg1 configv3.Plugin 26 } 27 AddPluginRepositoryStub func(name string, url string) 28 addPluginRepositoryMutex sync.RWMutex 29 addPluginRepositoryArgsForCall []struct { 30 name string 31 url string 32 } 33 APIVersionStub func() string 34 aPIVersionMutex sync.RWMutex 35 aPIVersionArgsForCall []struct{} 36 aPIVersionReturns struct { 37 result1 string 38 } 39 aPIVersionReturnsOnCall map[int]struct { 40 result1 string 41 } 42 BinaryNameStub func() string 43 binaryNameMutex sync.RWMutex 44 binaryNameArgsForCall []struct{} 45 binaryNameReturns struct { 46 result1 string 47 } 48 binaryNameReturnsOnCall map[int]struct { 49 result1 string 50 } 51 BinaryVersionStub func() string 52 binaryVersionMutex sync.RWMutex 53 binaryVersionArgsForCall []struct{} 54 binaryVersionReturns struct { 55 result1 string 56 } 57 binaryVersionReturnsOnCall map[int]struct { 58 result1 string 59 } 60 ColorEnabledStub func() configv3.ColorSetting 61 colorEnabledMutex sync.RWMutex 62 colorEnabledArgsForCall []struct{} 63 colorEnabledReturns struct { 64 result1 configv3.ColorSetting 65 } 66 colorEnabledReturnsOnCall map[int]struct { 67 result1 configv3.ColorSetting 68 } 69 CurrentUserStub func() (configv3.User, error) 70 currentUserMutex sync.RWMutex 71 currentUserArgsForCall []struct{} 72 currentUserReturns struct { 73 result1 configv3.User 74 result2 error 75 } 76 currentUserReturnsOnCall map[int]struct { 77 result1 configv3.User 78 result2 error 79 } 80 DialTimeoutStub func() time.Duration 81 dialTimeoutMutex sync.RWMutex 82 dialTimeoutArgsForCall []struct{} 83 dialTimeoutReturns struct { 84 result1 time.Duration 85 } 86 dialTimeoutReturnsOnCall map[int]struct { 87 result1 time.Duration 88 } 89 DockerPasswordStub func() string 90 dockerPasswordMutex sync.RWMutex 91 dockerPasswordArgsForCall []struct{} 92 dockerPasswordReturns struct { 93 result1 string 94 } 95 dockerPasswordReturnsOnCall map[int]struct { 96 result1 string 97 } 98 ExperimentalStub func() bool 99 experimentalMutex sync.RWMutex 100 experimentalArgsForCall []struct{} 101 experimentalReturns struct { 102 result1 bool 103 } 104 experimentalReturnsOnCall map[int]struct { 105 result1 bool 106 } 107 GetPluginStub func(pluginName string) (configv3.Plugin, bool) 108 getPluginMutex sync.RWMutex 109 getPluginArgsForCall []struct { 110 pluginName string 111 } 112 getPluginReturns struct { 113 result1 configv3.Plugin 114 result2 bool 115 } 116 getPluginReturnsOnCall map[int]struct { 117 result1 configv3.Plugin 118 result2 bool 119 } 120 GetPluginCaseInsensitiveStub func(pluginName string) (configv3.Plugin, bool) 121 getPluginCaseInsensitiveMutex sync.RWMutex 122 getPluginCaseInsensitiveArgsForCall []struct { 123 pluginName string 124 } 125 getPluginCaseInsensitiveReturns struct { 126 result1 configv3.Plugin 127 result2 bool 128 } 129 getPluginCaseInsensitiveReturnsOnCall map[int]struct { 130 result1 configv3.Plugin 131 result2 bool 132 } 133 HasTargetedOrganizationStub func() bool 134 hasTargetedOrganizationMutex sync.RWMutex 135 hasTargetedOrganizationArgsForCall []struct{} 136 hasTargetedOrganizationReturns struct { 137 result1 bool 138 } 139 hasTargetedOrganizationReturnsOnCall map[int]struct { 140 result1 bool 141 } 142 HasTargetedSpaceStub func() bool 143 hasTargetedSpaceMutex sync.RWMutex 144 hasTargetedSpaceArgsForCall []struct{} 145 hasTargetedSpaceReturns struct { 146 result1 bool 147 } 148 hasTargetedSpaceReturnsOnCall map[int]struct { 149 result1 bool 150 } 151 LocaleStub func() string 152 localeMutex sync.RWMutex 153 localeArgsForCall []struct{} 154 localeReturns struct { 155 result1 string 156 } 157 localeReturnsOnCall map[int]struct { 158 result1 string 159 } 160 MinCLIVersionStub func() string 161 minCLIVersionMutex sync.RWMutex 162 minCLIVersionArgsForCall []struct{} 163 minCLIVersionReturns struct { 164 result1 string 165 } 166 minCLIVersionReturnsOnCall map[int]struct { 167 result1 string 168 } 169 OverallPollingTimeoutStub func() time.Duration 170 overallPollingTimeoutMutex sync.RWMutex 171 overallPollingTimeoutArgsForCall []struct{} 172 overallPollingTimeoutReturns struct { 173 result1 time.Duration 174 } 175 overallPollingTimeoutReturnsOnCall map[int]struct { 176 result1 time.Duration 177 } 178 PluginHomeStub func() string 179 pluginHomeMutex sync.RWMutex 180 pluginHomeArgsForCall []struct{} 181 pluginHomeReturns struct { 182 result1 string 183 } 184 pluginHomeReturnsOnCall map[int]struct { 185 result1 string 186 } 187 PluginRepositoriesStub func() []configv3.PluginRepository 188 pluginRepositoriesMutex sync.RWMutex 189 pluginRepositoriesArgsForCall []struct{} 190 pluginRepositoriesReturns struct { 191 result1 []configv3.PluginRepository 192 } 193 pluginRepositoriesReturnsOnCall map[int]struct { 194 result1 []configv3.PluginRepository 195 } 196 PluginsStub func() []configv3.Plugin 197 pluginsMutex sync.RWMutex 198 pluginsArgsForCall []struct{} 199 pluginsReturns struct { 200 result1 []configv3.Plugin 201 } 202 pluginsReturnsOnCall map[int]struct { 203 result1 []configv3.Plugin 204 } 205 PollingIntervalStub func() time.Duration 206 pollingIntervalMutex sync.RWMutex 207 pollingIntervalArgsForCall []struct{} 208 pollingIntervalReturns struct { 209 result1 time.Duration 210 } 211 pollingIntervalReturnsOnCall map[int]struct { 212 result1 time.Duration 213 } 214 RefreshTokenStub func() string 215 refreshTokenMutex sync.RWMutex 216 refreshTokenArgsForCall []struct{} 217 refreshTokenReturns struct { 218 result1 string 219 } 220 refreshTokenReturnsOnCall map[int]struct { 221 result1 string 222 } 223 RemovePluginStub func(string) 224 removePluginMutex sync.RWMutex 225 removePluginArgsForCall []struct { 226 arg1 string 227 } 228 SetAccessTokenStub func(token string) 229 setAccessTokenMutex sync.RWMutex 230 setAccessTokenArgsForCall []struct { 231 token string 232 } 233 SetOrganizationInformationStub func(guid string, name string) 234 setOrganizationInformationMutex sync.RWMutex 235 setOrganizationInformationArgsForCall []struct { 236 guid string 237 name string 238 } 239 SetRefreshTokenStub func(token string) 240 setRefreshTokenMutex sync.RWMutex 241 setRefreshTokenArgsForCall []struct { 242 token string 243 } 244 SetSpaceInformationStub func(guid string, name string, allowSSH bool) 245 setSpaceInformationMutex sync.RWMutex 246 setSpaceInformationArgsForCall []struct { 247 guid string 248 name string 249 allowSSH bool 250 } 251 SetTargetInformationStub func(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) 252 setTargetInformationMutex sync.RWMutex 253 setTargetInformationArgsForCall []struct { 254 api string 255 apiVersion string 256 auth string 257 minCLIVersion string 258 doppler string 259 routing string 260 skipSSLValidation bool 261 } 262 SetTokenInformationStub func(accessToken string, refreshToken string, sshOAuthClient string) 263 setTokenInformationMutex sync.RWMutex 264 setTokenInformationArgsForCall []struct { 265 accessToken string 266 refreshToken string 267 sshOAuthClient string 268 } 269 SetUAAEndpointStub func(uaaEndpoint string) 270 setUAAEndpointMutex sync.RWMutex 271 setUAAEndpointArgsForCall []struct { 272 uaaEndpoint string 273 } 274 SkipSSLValidationStub func() bool 275 skipSSLValidationMutex sync.RWMutex 276 skipSSLValidationArgsForCall []struct{} 277 skipSSLValidationReturns struct { 278 result1 bool 279 } 280 skipSSLValidationReturnsOnCall map[int]struct { 281 result1 bool 282 } 283 SSHOAuthClientStub func() string 284 sSHOAuthClientMutex sync.RWMutex 285 sSHOAuthClientArgsForCall []struct{} 286 sSHOAuthClientReturns struct { 287 result1 string 288 } 289 sSHOAuthClientReturnsOnCall map[int]struct { 290 result1 string 291 } 292 StagingTimeoutStub func() time.Duration 293 stagingTimeoutMutex sync.RWMutex 294 stagingTimeoutArgsForCall []struct{} 295 stagingTimeoutReturns struct { 296 result1 time.Duration 297 } 298 stagingTimeoutReturnsOnCall map[int]struct { 299 result1 time.Duration 300 } 301 StartupTimeoutStub func() time.Duration 302 startupTimeoutMutex sync.RWMutex 303 startupTimeoutArgsForCall []struct{} 304 startupTimeoutReturns struct { 305 result1 time.Duration 306 } 307 startupTimeoutReturnsOnCall map[int]struct { 308 result1 time.Duration 309 } 310 TargetStub func() string 311 targetMutex sync.RWMutex 312 targetArgsForCall []struct{} 313 targetReturns struct { 314 result1 string 315 } 316 targetReturnsOnCall map[int]struct { 317 result1 string 318 } 319 TargetedOrganizationStub func() configv3.Organization 320 targetedOrganizationMutex sync.RWMutex 321 targetedOrganizationArgsForCall []struct{} 322 targetedOrganizationReturns struct { 323 result1 configv3.Organization 324 } 325 targetedOrganizationReturnsOnCall map[int]struct { 326 result1 configv3.Organization 327 } 328 TargetedSpaceStub func() configv3.Space 329 targetedSpaceMutex sync.RWMutex 330 targetedSpaceArgsForCall []struct{} 331 targetedSpaceReturns struct { 332 result1 configv3.Space 333 } 334 targetedSpaceReturnsOnCall map[int]struct { 335 result1 configv3.Space 336 } 337 UAAOAuthClientStub func() string 338 uAAOAuthClientMutex sync.RWMutex 339 uAAOAuthClientArgsForCall []struct{} 340 uAAOAuthClientReturns struct { 341 result1 string 342 } 343 uAAOAuthClientReturnsOnCall map[int]struct { 344 result1 string 345 } 346 UAAOAuthClientSecretStub func() string 347 uAAOAuthClientSecretMutex sync.RWMutex 348 uAAOAuthClientSecretArgsForCall []struct{} 349 uAAOAuthClientSecretReturns struct { 350 result1 string 351 } 352 uAAOAuthClientSecretReturnsOnCall map[int]struct { 353 result1 string 354 } 355 UnsetOrganizationInformationStub func() 356 unsetOrganizationInformationMutex sync.RWMutex 357 unsetOrganizationInformationArgsForCall []struct{} 358 UnsetSpaceInformationStub func() 359 unsetSpaceInformationMutex sync.RWMutex 360 unsetSpaceInformationArgsForCall []struct{} 361 VerboseStub func() (bool, []string) 362 verboseMutex sync.RWMutex 363 verboseArgsForCall []struct{} 364 verboseReturns struct { 365 result1 bool 366 result2 []string 367 } 368 verboseReturnsOnCall map[int]struct { 369 result1 bool 370 result2 []string 371 } 372 WritePluginConfigStub func() error 373 writePluginConfigMutex sync.RWMutex 374 writePluginConfigArgsForCall []struct{} 375 writePluginConfigReturns struct { 376 result1 error 377 } 378 writePluginConfigReturnsOnCall map[int]struct { 379 result1 error 380 } 381 invocations map[string][][]interface{} 382 invocationsMutex sync.RWMutex 383 } 384 385 func (fake *FakeConfig) AccessToken() string { 386 fake.accessTokenMutex.Lock() 387 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 388 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct{}{}) 389 fake.recordInvocation("AccessToken", []interface{}{}) 390 fake.accessTokenMutex.Unlock() 391 if fake.AccessTokenStub != nil { 392 return fake.AccessTokenStub() 393 } 394 if specificReturn { 395 return ret.result1 396 } 397 return fake.accessTokenReturns.result1 398 } 399 400 func (fake *FakeConfig) AccessTokenCallCount() int { 401 fake.accessTokenMutex.RLock() 402 defer fake.accessTokenMutex.RUnlock() 403 return len(fake.accessTokenArgsForCall) 404 } 405 406 func (fake *FakeConfig) AccessTokenReturns(result1 string) { 407 fake.AccessTokenStub = nil 408 fake.accessTokenReturns = struct { 409 result1 string 410 }{result1} 411 } 412 413 func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) { 414 fake.AccessTokenStub = nil 415 if fake.accessTokenReturnsOnCall == nil { 416 fake.accessTokenReturnsOnCall = make(map[int]struct { 417 result1 string 418 }) 419 } 420 fake.accessTokenReturnsOnCall[i] = struct { 421 result1 string 422 }{result1} 423 } 424 425 func (fake *FakeConfig) AddPlugin(arg1 configv3.Plugin) { 426 fake.addPluginMutex.Lock() 427 fake.addPluginArgsForCall = append(fake.addPluginArgsForCall, struct { 428 arg1 configv3.Plugin 429 }{arg1}) 430 fake.recordInvocation("AddPlugin", []interface{}{arg1}) 431 fake.addPluginMutex.Unlock() 432 if fake.AddPluginStub != nil { 433 fake.AddPluginStub(arg1) 434 } 435 } 436 437 func (fake *FakeConfig) AddPluginCallCount() int { 438 fake.addPluginMutex.RLock() 439 defer fake.addPluginMutex.RUnlock() 440 return len(fake.addPluginArgsForCall) 441 } 442 443 func (fake *FakeConfig) AddPluginArgsForCall(i int) configv3.Plugin { 444 fake.addPluginMutex.RLock() 445 defer fake.addPluginMutex.RUnlock() 446 return fake.addPluginArgsForCall[i].arg1 447 } 448 449 func (fake *FakeConfig) AddPluginRepository(name string, url string) { 450 fake.addPluginRepositoryMutex.Lock() 451 fake.addPluginRepositoryArgsForCall = append(fake.addPluginRepositoryArgsForCall, struct { 452 name string 453 url string 454 }{name, url}) 455 fake.recordInvocation("AddPluginRepository", []interface{}{name, url}) 456 fake.addPluginRepositoryMutex.Unlock() 457 if fake.AddPluginRepositoryStub != nil { 458 fake.AddPluginRepositoryStub(name, url) 459 } 460 } 461 462 func (fake *FakeConfig) AddPluginRepositoryCallCount() int { 463 fake.addPluginRepositoryMutex.RLock() 464 defer fake.addPluginRepositoryMutex.RUnlock() 465 return len(fake.addPluginRepositoryArgsForCall) 466 } 467 468 func (fake *FakeConfig) AddPluginRepositoryArgsForCall(i int) (string, string) { 469 fake.addPluginRepositoryMutex.RLock() 470 defer fake.addPluginRepositoryMutex.RUnlock() 471 return fake.addPluginRepositoryArgsForCall[i].name, fake.addPluginRepositoryArgsForCall[i].url 472 } 473 474 func (fake *FakeConfig) APIVersion() string { 475 fake.aPIVersionMutex.Lock() 476 ret, specificReturn := fake.aPIVersionReturnsOnCall[len(fake.aPIVersionArgsForCall)] 477 fake.aPIVersionArgsForCall = append(fake.aPIVersionArgsForCall, struct{}{}) 478 fake.recordInvocation("APIVersion", []interface{}{}) 479 fake.aPIVersionMutex.Unlock() 480 if fake.APIVersionStub != nil { 481 return fake.APIVersionStub() 482 } 483 if specificReturn { 484 return ret.result1 485 } 486 return fake.aPIVersionReturns.result1 487 } 488 489 func (fake *FakeConfig) APIVersionCallCount() int { 490 fake.aPIVersionMutex.RLock() 491 defer fake.aPIVersionMutex.RUnlock() 492 return len(fake.aPIVersionArgsForCall) 493 } 494 495 func (fake *FakeConfig) APIVersionReturns(result1 string) { 496 fake.APIVersionStub = nil 497 fake.aPIVersionReturns = struct { 498 result1 string 499 }{result1} 500 } 501 502 func (fake *FakeConfig) APIVersionReturnsOnCall(i int, result1 string) { 503 fake.APIVersionStub = nil 504 if fake.aPIVersionReturnsOnCall == nil { 505 fake.aPIVersionReturnsOnCall = make(map[int]struct { 506 result1 string 507 }) 508 } 509 fake.aPIVersionReturnsOnCall[i] = struct { 510 result1 string 511 }{result1} 512 } 513 514 func (fake *FakeConfig) BinaryName() string { 515 fake.binaryNameMutex.Lock() 516 ret, specificReturn := fake.binaryNameReturnsOnCall[len(fake.binaryNameArgsForCall)] 517 fake.binaryNameArgsForCall = append(fake.binaryNameArgsForCall, struct{}{}) 518 fake.recordInvocation("BinaryName", []interface{}{}) 519 fake.binaryNameMutex.Unlock() 520 if fake.BinaryNameStub != nil { 521 return fake.BinaryNameStub() 522 } 523 if specificReturn { 524 return ret.result1 525 } 526 return fake.binaryNameReturns.result1 527 } 528 529 func (fake *FakeConfig) BinaryNameCallCount() int { 530 fake.binaryNameMutex.RLock() 531 defer fake.binaryNameMutex.RUnlock() 532 return len(fake.binaryNameArgsForCall) 533 } 534 535 func (fake *FakeConfig) BinaryNameReturns(result1 string) { 536 fake.BinaryNameStub = nil 537 fake.binaryNameReturns = struct { 538 result1 string 539 }{result1} 540 } 541 542 func (fake *FakeConfig) BinaryNameReturnsOnCall(i int, result1 string) { 543 fake.BinaryNameStub = nil 544 if fake.binaryNameReturnsOnCall == nil { 545 fake.binaryNameReturnsOnCall = make(map[int]struct { 546 result1 string 547 }) 548 } 549 fake.binaryNameReturnsOnCall[i] = struct { 550 result1 string 551 }{result1} 552 } 553 554 func (fake *FakeConfig) BinaryVersion() string { 555 fake.binaryVersionMutex.Lock() 556 ret, specificReturn := fake.binaryVersionReturnsOnCall[len(fake.binaryVersionArgsForCall)] 557 fake.binaryVersionArgsForCall = append(fake.binaryVersionArgsForCall, struct{}{}) 558 fake.recordInvocation("BinaryVersion", []interface{}{}) 559 fake.binaryVersionMutex.Unlock() 560 if fake.BinaryVersionStub != nil { 561 return fake.BinaryVersionStub() 562 } 563 if specificReturn { 564 return ret.result1 565 } 566 return fake.binaryVersionReturns.result1 567 } 568 569 func (fake *FakeConfig) BinaryVersionCallCount() int { 570 fake.binaryVersionMutex.RLock() 571 defer fake.binaryVersionMutex.RUnlock() 572 return len(fake.binaryVersionArgsForCall) 573 } 574 575 func (fake *FakeConfig) BinaryVersionReturns(result1 string) { 576 fake.BinaryVersionStub = nil 577 fake.binaryVersionReturns = struct { 578 result1 string 579 }{result1} 580 } 581 582 func (fake *FakeConfig) BinaryVersionReturnsOnCall(i int, result1 string) { 583 fake.BinaryVersionStub = nil 584 if fake.binaryVersionReturnsOnCall == nil { 585 fake.binaryVersionReturnsOnCall = make(map[int]struct { 586 result1 string 587 }) 588 } 589 fake.binaryVersionReturnsOnCall[i] = struct { 590 result1 string 591 }{result1} 592 } 593 594 func (fake *FakeConfig) ColorEnabled() configv3.ColorSetting { 595 fake.colorEnabledMutex.Lock() 596 ret, specificReturn := fake.colorEnabledReturnsOnCall[len(fake.colorEnabledArgsForCall)] 597 fake.colorEnabledArgsForCall = append(fake.colorEnabledArgsForCall, struct{}{}) 598 fake.recordInvocation("ColorEnabled", []interface{}{}) 599 fake.colorEnabledMutex.Unlock() 600 if fake.ColorEnabledStub != nil { 601 return fake.ColorEnabledStub() 602 } 603 if specificReturn { 604 return ret.result1 605 } 606 return fake.colorEnabledReturns.result1 607 } 608 609 func (fake *FakeConfig) ColorEnabledCallCount() int { 610 fake.colorEnabledMutex.RLock() 611 defer fake.colorEnabledMutex.RUnlock() 612 return len(fake.colorEnabledArgsForCall) 613 } 614 615 func (fake *FakeConfig) ColorEnabledReturns(result1 configv3.ColorSetting) { 616 fake.ColorEnabledStub = nil 617 fake.colorEnabledReturns = struct { 618 result1 configv3.ColorSetting 619 }{result1} 620 } 621 622 func (fake *FakeConfig) ColorEnabledReturnsOnCall(i int, result1 configv3.ColorSetting) { 623 fake.ColorEnabledStub = nil 624 if fake.colorEnabledReturnsOnCall == nil { 625 fake.colorEnabledReturnsOnCall = make(map[int]struct { 626 result1 configv3.ColorSetting 627 }) 628 } 629 fake.colorEnabledReturnsOnCall[i] = struct { 630 result1 configv3.ColorSetting 631 }{result1} 632 } 633 634 func (fake *FakeConfig) CurrentUser() (configv3.User, error) { 635 fake.currentUserMutex.Lock() 636 ret, specificReturn := fake.currentUserReturnsOnCall[len(fake.currentUserArgsForCall)] 637 fake.currentUserArgsForCall = append(fake.currentUserArgsForCall, struct{}{}) 638 fake.recordInvocation("CurrentUser", []interface{}{}) 639 fake.currentUserMutex.Unlock() 640 if fake.CurrentUserStub != nil { 641 return fake.CurrentUserStub() 642 } 643 if specificReturn { 644 return ret.result1, ret.result2 645 } 646 return fake.currentUserReturns.result1, fake.currentUserReturns.result2 647 } 648 649 func (fake *FakeConfig) CurrentUserCallCount() int { 650 fake.currentUserMutex.RLock() 651 defer fake.currentUserMutex.RUnlock() 652 return len(fake.currentUserArgsForCall) 653 } 654 655 func (fake *FakeConfig) CurrentUserReturns(result1 configv3.User, result2 error) { 656 fake.CurrentUserStub = nil 657 fake.currentUserReturns = struct { 658 result1 configv3.User 659 result2 error 660 }{result1, result2} 661 } 662 663 func (fake *FakeConfig) CurrentUserReturnsOnCall(i int, result1 configv3.User, result2 error) { 664 fake.CurrentUserStub = nil 665 if fake.currentUserReturnsOnCall == nil { 666 fake.currentUserReturnsOnCall = make(map[int]struct { 667 result1 configv3.User 668 result2 error 669 }) 670 } 671 fake.currentUserReturnsOnCall[i] = struct { 672 result1 configv3.User 673 result2 error 674 }{result1, result2} 675 } 676 677 func (fake *FakeConfig) DialTimeout() time.Duration { 678 fake.dialTimeoutMutex.Lock() 679 ret, specificReturn := fake.dialTimeoutReturnsOnCall[len(fake.dialTimeoutArgsForCall)] 680 fake.dialTimeoutArgsForCall = append(fake.dialTimeoutArgsForCall, struct{}{}) 681 fake.recordInvocation("DialTimeout", []interface{}{}) 682 fake.dialTimeoutMutex.Unlock() 683 if fake.DialTimeoutStub != nil { 684 return fake.DialTimeoutStub() 685 } 686 if specificReturn { 687 return ret.result1 688 } 689 return fake.dialTimeoutReturns.result1 690 } 691 692 func (fake *FakeConfig) DialTimeoutCallCount() int { 693 fake.dialTimeoutMutex.RLock() 694 defer fake.dialTimeoutMutex.RUnlock() 695 return len(fake.dialTimeoutArgsForCall) 696 } 697 698 func (fake *FakeConfig) DialTimeoutReturns(result1 time.Duration) { 699 fake.DialTimeoutStub = nil 700 fake.dialTimeoutReturns = struct { 701 result1 time.Duration 702 }{result1} 703 } 704 705 func (fake *FakeConfig) DialTimeoutReturnsOnCall(i int, result1 time.Duration) { 706 fake.DialTimeoutStub = nil 707 if fake.dialTimeoutReturnsOnCall == nil { 708 fake.dialTimeoutReturnsOnCall = make(map[int]struct { 709 result1 time.Duration 710 }) 711 } 712 fake.dialTimeoutReturnsOnCall[i] = struct { 713 result1 time.Duration 714 }{result1} 715 } 716 717 func (fake *FakeConfig) DockerPassword() string { 718 fake.dockerPasswordMutex.Lock() 719 ret, specificReturn := fake.dockerPasswordReturnsOnCall[len(fake.dockerPasswordArgsForCall)] 720 fake.dockerPasswordArgsForCall = append(fake.dockerPasswordArgsForCall, struct{}{}) 721 fake.recordInvocation("DockerPassword", []interface{}{}) 722 fake.dockerPasswordMutex.Unlock() 723 if fake.DockerPasswordStub != nil { 724 return fake.DockerPasswordStub() 725 } 726 if specificReturn { 727 return ret.result1 728 } 729 return fake.dockerPasswordReturns.result1 730 } 731 732 func (fake *FakeConfig) DockerPasswordCallCount() int { 733 fake.dockerPasswordMutex.RLock() 734 defer fake.dockerPasswordMutex.RUnlock() 735 return len(fake.dockerPasswordArgsForCall) 736 } 737 738 func (fake *FakeConfig) DockerPasswordReturns(result1 string) { 739 fake.DockerPasswordStub = nil 740 fake.dockerPasswordReturns = struct { 741 result1 string 742 }{result1} 743 } 744 745 func (fake *FakeConfig) DockerPasswordReturnsOnCall(i int, result1 string) { 746 fake.DockerPasswordStub = nil 747 if fake.dockerPasswordReturnsOnCall == nil { 748 fake.dockerPasswordReturnsOnCall = make(map[int]struct { 749 result1 string 750 }) 751 } 752 fake.dockerPasswordReturnsOnCall[i] = struct { 753 result1 string 754 }{result1} 755 } 756 757 func (fake *FakeConfig) Experimental() bool { 758 fake.experimentalMutex.Lock() 759 ret, specificReturn := fake.experimentalReturnsOnCall[len(fake.experimentalArgsForCall)] 760 fake.experimentalArgsForCall = append(fake.experimentalArgsForCall, struct{}{}) 761 fake.recordInvocation("Experimental", []interface{}{}) 762 fake.experimentalMutex.Unlock() 763 if fake.ExperimentalStub != nil { 764 return fake.ExperimentalStub() 765 } 766 if specificReturn { 767 return ret.result1 768 } 769 return fake.experimentalReturns.result1 770 } 771 772 func (fake *FakeConfig) ExperimentalCallCount() int { 773 fake.experimentalMutex.RLock() 774 defer fake.experimentalMutex.RUnlock() 775 return len(fake.experimentalArgsForCall) 776 } 777 778 func (fake *FakeConfig) ExperimentalReturns(result1 bool) { 779 fake.ExperimentalStub = nil 780 fake.experimentalReturns = struct { 781 result1 bool 782 }{result1} 783 } 784 785 func (fake *FakeConfig) ExperimentalReturnsOnCall(i int, result1 bool) { 786 fake.ExperimentalStub = nil 787 if fake.experimentalReturnsOnCall == nil { 788 fake.experimentalReturnsOnCall = make(map[int]struct { 789 result1 bool 790 }) 791 } 792 fake.experimentalReturnsOnCall[i] = struct { 793 result1 bool 794 }{result1} 795 } 796 797 func (fake *FakeConfig) GetPlugin(pluginName string) (configv3.Plugin, bool) { 798 fake.getPluginMutex.Lock() 799 ret, specificReturn := fake.getPluginReturnsOnCall[len(fake.getPluginArgsForCall)] 800 fake.getPluginArgsForCall = append(fake.getPluginArgsForCall, struct { 801 pluginName string 802 }{pluginName}) 803 fake.recordInvocation("GetPlugin", []interface{}{pluginName}) 804 fake.getPluginMutex.Unlock() 805 if fake.GetPluginStub != nil { 806 return fake.GetPluginStub(pluginName) 807 } 808 if specificReturn { 809 return ret.result1, ret.result2 810 } 811 return fake.getPluginReturns.result1, fake.getPluginReturns.result2 812 } 813 814 func (fake *FakeConfig) GetPluginCallCount() int { 815 fake.getPluginMutex.RLock() 816 defer fake.getPluginMutex.RUnlock() 817 return len(fake.getPluginArgsForCall) 818 } 819 820 func (fake *FakeConfig) GetPluginArgsForCall(i int) string { 821 fake.getPluginMutex.RLock() 822 defer fake.getPluginMutex.RUnlock() 823 return fake.getPluginArgsForCall[i].pluginName 824 } 825 826 func (fake *FakeConfig) GetPluginReturns(result1 configv3.Plugin, result2 bool) { 827 fake.GetPluginStub = nil 828 fake.getPluginReturns = struct { 829 result1 configv3.Plugin 830 result2 bool 831 }{result1, result2} 832 } 833 834 func (fake *FakeConfig) GetPluginReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 835 fake.GetPluginStub = nil 836 if fake.getPluginReturnsOnCall == nil { 837 fake.getPluginReturnsOnCall = make(map[int]struct { 838 result1 configv3.Plugin 839 result2 bool 840 }) 841 } 842 fake.getPluginReturnsOnCall[i] = struct { 843 result1 configv3.Plugin 844 result2 bool 845 }{result1, result2} 846 } 847 848 func (fake *FakeConfig) GetPluginCaseInsensitive(pluginName string) (configv3.Plugin, bool) { 849 fake.getPluginCaseInsensitiveMutex.Lock() 850 ret, specificReturn := fake.getPluginCaseInsensitiveReturnsOnCall[len(fake.getPluginCaseInsensitiveArgsForCall)] 851 fake.getPluginCaseInsensitiveArgsForCall = append(fake.getPluginCaseInsensitiveArgsForCall, struct { 852 pluginName string 853 }{pluginName}) 854 fake.recordInvocation("GetPluginCaseInsensitive", []interface{}{pluginName}) 855 fake.getPluginCaseInsensitiveMutex.Unlock() 856 if fake.GetPluginCaseInsensitiveStub != nil { 857 return fake.GetPluginCaseInsensitiveStub(pluginName) 858 } 859 if specificReturn { 860 return ret.result1, ret.result2 861 } 862 return fake.getPluginCaseInsensitiveReturns.result1, fake.getPluginCaseInsensitiveReturns.result2 863 } 864 865 func (fake *FakeConfig) GetPluginCaseInsensitiveCallCount() int { 866 fake.getPluginCaseInsensitiveMutex.RLock() 867 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 868 return len(fake.getPluginCaseInsensitiveArgsForCall) 869 } 870 871 func (fake *FakeConfig) GetPluginCaseInsensitiveArgsForCall(i int) string { 872 fake.getPluginCaseInsensitiveMutex.RLock() 873 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 874 return fake.getPluginCaseInsensitiveArgsForCall[i].pluginName 875 } 876 877 func (fake *FakeConfig) GetPluginCaseInsensitiveReturns(result1 configv3.Plugin, result2 bool) { 878 fake.GetPluginCaseInsensitiveStub = nil 879 fake.getPluginCaseInsensitiveReturns = struct { 880 result1 configv3.Plugin 881 result2 bool 882 }{result1, result2} 883 } 884 885 func (fake *FakeConfig) GetPluginCaseInsensitiveReturnsOnCall(i int, result1 configv3.Plugin, result2 bool) { 886 fake.GetPluginCaseInsensitiveStub = nil 887 if fake.getPluginCaseInsensitiveReturnsOnCall == nil { 888 fake.getPluginCaseInsensitiveReturnsOnCall = make(map[int]struct { 889 result1 configv3.Plugin 890 result2 bool 891 }) 892 } 893 fake.getPluginCaseInsensitiveReturnsOnCall[i] = struct { 894 result1 configv3.Plugin 895 result2 bool 896 }{result1, result2} 897 } 898 899 func (fake *FakeConfig) HasTargetedOrganization() bool { 900 fake.hasTargetedOrganizationMutex.Lock() 901 ret, specificReturn := fake.hasTargetedOrganizationReturnsOnCall[len(fake.hasTargetedOrganizationArgsForCall)] 902 fake.hasTargetedOrganizationArgsForCall = append(fake.hasTargetedOrganizationArgsForCall, struct{}{}) 903 fake.recordInvocation("HasTargetedOrganization", []interface{}{}) 904 fake.hasTargetedOrganizationMutex.Unlock() 905 if fake.HasTargetedOrganizationStub != nil { 906 return fake.HasTargetedOrganizationStub() 907 } 908 if specificReturn { 909 return ret.result1 910 } 911 return fake.hasTargetedOrganizationReturns.result1 912 } 913 914 func (fake *FakeConfig) HasTargetedOrganizationCallCount() int { 915 fake.hasTargetedOrganizationMutex.RLock() 916 defer fake.hasTargetedOrganizationMutex.RUnlock() 917 return len(fake.hasTargetedOrganizationArgsForCall) 918 } 919 920 func (fake *FakeConfig) HasTargetedOrganizationReturns(result1 bool) { 921 fake.HasTargetedOrganizationStub = nil 922 fake.hasTargetedOrganizationReturns = struct { 923 result1 bool 924 }{result1} 925 } 926 927 func (fake *FakeConfig) HasTargetedOrganizationReturnsOnCall(i int, result1 bool) { 928 fake.HasTargetedOrganizationStub = nil 929 if fake.hasTargetedOrganizationReturnsOnCall == nil { 930 fake.hasTargetedOrganizationReturnsOnCall = make(map[int]struct { 931 result1 bool 932 }) 933 } 934 fake.hasTargetedOrganizationReturnsOnCall[i] = struct { 935 result1 bool 936 }{result1} 937 } 938 939 func (fake *FakeConfig) HasTargetedSpace() bool { 940 fake.hasTargetedSpaceMutex.Lock() 941 ret, specificReturn := fake.hasTargetedSpaceReturnsOnCall[len(fake.hasTargetedSpaceArgsForCall)] 942 fake.hasTargetedSpaceArgsForCall = append(fake.hasTargetedSpaceArgsForCall, struct{}{}) 943 fake.recordInvocation("HasTargetedSpace", []interface{}{}) 944 fake.hasTargetedSpaceMutex.Unlock() 945 if fake.HasTargetedSpaceStub != nil { 946 return fake.HasTargetedSpaceStub() 947 } 948 if specificReturn { 949 return ret.result1 950 } 951 return fake.hasTargetedSpaceReturns.result1 952 } 953 954 func (fake *FakeConfig) HasTargetedSpaceCallCount() int { 955 fake.hasTargetedSpaceMutex.RLock() 956 defer fake.hasTargetedSpaceMutex.RUnlock() 957 return len(fake.hasTargetedSpaceArgsForCall) 958 } 959 960 func (fake *FakeConfig) HasTargetedSpaceReturns(result1 bool) { 961 fake.HasTargetedSpaceStub = nil 962 fake.hasTargetedSpaceReturns = struct { 963 result1 bool 964 }{result1} 965 } 966 967 func (fake *FakeConfig) HasTargetedSpaceReturnsOnCall(i int, result1 bool) { 968 fake.HasTargetedSpaceStub = nil 969 if fake.hasTargetedSpaceReturnsOnCall == nil { 970 fake.hasTargetedSpaceReturnsOnCall = make(map[int]struct { 971 result1 bool 972 }) 973 } 974 fake.hasTargetedSpaceReturnsOnCall[i] = struct { 975 result1 bool 976 }{result1} 977 } 978 979 func (fake *FakeConfig) Locale() string { 980 fake.localeMutex.Lock() 981 ret, specificReturn := fake.localeReturnsOnCall[len(fake.localeArgsForCall)] 982 fake.localeArgsForCall = append(fake.localeArgsForCall, struct{}{}) 983 fake.recordInvocation("Locale", []interface{}{}) 984 fake.localeMutex.Unlock() 985 if fake.LocaleStub != nil { 986 return fake.LocaleStub() 987 } 988 if specificReturn { 989 return ret.result1 990 } 991 return fake.localeReturns.result1 992 } 993 994 func (fake *FakeConfig) LocaleCallCount() int { 995 fake.localeMutex.RLock() 996 defer fake.localeMutex.RUnlock() 997 return len(fake.localeArgsForCall) 998 } 999 1000 func (fake *FakeConfig) LocaleReturns(result1 string) { 1001 fake.LocaleStub = nil 1002 fake.localeReturns = struct { 1003 result1 string 1004 }{result1} 1005 } 1006 1007 func (fake *FakeConfig) LocaleReturnsOnCall(i int, result1 string) { 1008 fake.LocaleStub = nil 1009 if fake.localeReturnsOnCall == nil { 1010 fake.localeReturnsOnCall = make(map[int]struct { 1011 result1 string 1012 }) 1013 } 1014 fake.localeReturnsOnCall[i] = struct { 1015 result1 string 1016 }{result1} 1017 } 1018 1019 func (fake *FakeConfig) MinCLIVersion() string { 1020 fake.minCLIVersionMutex.Lock() 1021 ret, specificReturn := fake.minCLIVersionReturnsOnCall[len(fake.minCLIVersionArgsForCall)] 1022 fake.minCLIVersionArgsForCall = append(fake.minCLIVersionArgsForCall, struct{}{}) 1023 fake.recordInvocation("MinCLIVersion", []interface{}{}) 1024 fake.minCLIVersionMutex.Unlock() 1025 if fake.MinCLIVersionStub != nil { 1026 return fake.MinCLIVersionStub() 1027 } 1028 if specificReturn { 1029 return ret.result1 1030 } 1031 return fake.minCLIVersionReturns.result1 1032 } 1033 1034 func (fake *FakeConfig) MinCLIVersionCallCount() int { 1035 fake.minCLIVersionMutex.RLock() 1036 defer fake.minCLIVersionMutex.RUnlock() 1037 return len(fake.minCLIVersionArgsForCall) 1038 } 1039 1040 func (fake *FakeConfig) MinCLIVersionReturns(result1 string) { 1041 fake.MinCLIVersionStub = nil 1042 fake.minCLIVersionReturns = struct { 1043 result1 string 1044 }{result1} 1045 } 1046 1047 func (fake *FakeConfig) MinCLIVersionReturnsOnCall(i int, result1 string) { 1048 fake.MinCLIVersionStub = nil 1049 if fake.minCLIVersionReturnsOnCall == nil { 1050 fake.minCLIVersionReturnsOnCall = make(map[int]struct { 1051 result1 string 1052 }) 1053 } 1054 fake.minCLIVersionReturnsOnCall[i] = struct { 1055 result1 string 1056 }{result1} 1057 } 1058 1059 func (fake *FakeConfig) OverallPollingTimeout() time.Duration { 1060 fake.overallPollingTimeoutMutex.Lock() 1061 ret, specificReturn := fake.overallPollingTimeoutReturnsOnCall[len(fake.overallPollingTimeoutArgsForCall)] 1062 fake.overallPollingTimeoutArgsForCall = append(fake.overallPollingTimeoutArgsForCall, struct{}{}) 1063 fake.recordInvocation("OverallPollingTimeout", []interface{}{}) 1064 fake.overallPollingTimeoutMutex.Unlock() 1065 if fake.OverallPollingTimeoutStub != nil { 1066 return fake.OverallPollingTimeoutStub() 1067 } 1068 if specificReturn { 1069 return ret.result1 1070 } 1071 return fake.overallPollingTimeoutReturns.result1 1072 } 1073 1074 func (fake *FakeConfig) OverallPollingTimeoutCallCount() int { 1075 fake.overallPollingTimeoutMutex.RLock() 1076 defer fake.overallPollingTimeoutMutex.RUnlock() 1077 return len(fake.overallPollingTimeoutArgsForCall) 1078 } 1079 1080 func (fake *FakeConfig) OverallPollingTimeoutReturns(result1 time.Duration) { 1081 fake.OverallPollingTimeoutStub = nil 1082 fake.overallPollingTimeoutReturns = struct { 1083 result1 time.Duration 1084 }{result1} 1085 } 1086 1087 func (fake *FakeConfig) OverallPollingTimeoutReturnsOnCall(i int, result1 time.Duration) { 1088 fake.OverallPollingTimeoutStub = nil 1089 if fake.overallPollingTimeoutReturnsOnCall == nil { 1090 fake.overallPollingTimeoutReturnsOnCall = make(map[int]struct { 1091 result1 time.Duration 1092 }) 1093 } 1094 fake.overallPollingTimeoutReturnsOnCall[i] = struct { 1095 result1 time.Duration 1096 }{result1} 1097 } 1098 1099 func (fake *FakeConfig) PluginHome() string { 1100 fake.pluginHomeMutex.Lock() 1101 ret, specificReturn := fake.pluginHomeReturnsOnCall[len(fake.pluginHomeArgsForCall)] 1102 fake.pluginHomeArgsForCall = append(fake.pluginHomeArgsForCall, struct{}{}) 1103 fake.recordInvocation("PluginHome", []interface{}{}) 1104 fake.pluginHomeMutex.Unlock() 1105 if fake.PluginHomeStub != nil { 1106 return fake.PluginHomeStub() 1107 } 1108 if specificReturn { 1109 return ret.result1 1110 } 1111 return fake.pluginHomeReturns.result1 1112 } 1113 1114 func (fake *FakeConfig) PluginHomeCallCount() int { 1115 fake.pluginHomeMutex.RLock() 1116 defer fake.pluginHomeMutex.RUnlock() 1117 return len(fake.pluginHomeArgsForCall) 1118 } 1119 1120 func (fake *FakeConfig) PluginHomeReturns(result1 string) { 1121 fake.PluginHomeStub = nil 1122 fake.pluginHomeReturns = struct { 1123 result1 string 1124 }{result1} 1125 } 1126 1127 func (fake *FakeConfig) PluginHomeReturnsOnCall(i int, result1 string) { 1128 fake.PluginHomeStub = nil 1129 if fake.pluginHomeReturnsOnCall == nil { 1130 fake.pluginHomeReturnsOnCall = make(map[int]struct { 1131 result1 string 1132 }) 1133 } 1134 fake.pluginHomeReturnsOnCall[i] = struct { 1135 result1 string 1136 }{result1} 1137 } 1138 1139 func (fake *FakeConfig) PluginRepositories() []configv3.PluginRepository { 1140 fake.pluginRepositoriesMutex.Lock() 1141 ret, specificReturn := fake.pluginRepositoriesReturnsOnCall[len(fake.pluginRepositoriesArgsForCall)] 1142 fake.pluginRepositoriesArgsForCall = append(fake.pluginRepositoriesArgsForCall, struct{}{}) 1143 fake.recordInvocation("PluginRepositories", []interface{}{}) 1144 fake.pluginRepositoriesMutex.Unlock() 1145 if fake.PluginRepositoriesStub != nil { 1146 return fake.PluginRepositoriesStub() 1147 } 1148 if specificReturn { 1149 return ret.result1 1150 } 1151 return fake.pluginRepositoriesReturns.result1 1152 } 1153 1154 func (fake *FakeConfig) PluginRepositoriesCallCount() int { 1155 fake.pluginRepositoriesMutex.RLock() 1156 defer fake.pluginRepositoriesMutex.RUnlock() 1157 return len(fake.pluginRepositoriesArgsForCall) 1158 } 1159 1160 func (fake *FakeConfig) PluginRepositoriesReturns(result1 []configv3.PluginRepository) { 1161 fake.PluginRepositoriesStub = nil 1162 fake.pluginRepositoriesReturns = struct { 1163 result1 []configv3.PluginRepository 1164 }{result1} 1165 } 1166 1167 func (fake *FakeConfig) PluginRepositoriesReturnsOnCall(i int, result1 []configv3.PluginRepository) { 1168 fake.PluginRepositoriesStub = nil 1169 if fake.pluginRepositoriesReturnsOnCall == nil { 1170 fake.pluginRepositoriesReturnsOnCall = make(map[int]struct { 1171 result1 []configv3.PluginRepository 1172 }) 1173 } 1174 fake.pluginRepositoriesReturnsOnCall[i] = struct { 1175 result1 []configv3.PluginRepository 1176 }{result1} 1177 } 1178 1179 func (fake *FakeConfig) Plugins() []configv3.Plugin { 1180 fake.pluginsMutex.Lock() 1181 ret, specificReturn := fake.pluginsReturnsOnCall[len(fake.pluginsArgsForCall)] 1182 fake.pluginsArgsForCall = append(fake.pluginsArgsForCall, struct{}{}) 1183 fake.recordInvocation("Plugins", []interface{}{}) 1184 fake.pluginsMutex.Unlock() 1185 if fake.PluginsStub != nil { 1186 return fake.PluginsStub() 1187 } 1188 if specificReturn { 1189 return ret.result1 1190 } 1191 return fake.pluginsReturns.result1 1192 } 1193 1194 func (fake *FakeConfig) PluginsCallCount() int { 1195 fake.pluginsMutex.RLock() 1196 defer fake.pluginsMutex.RUnlock() 1197 return len(fake.pluginsArgsForCall) 1198 } 1199 1200 func (fake *FakeConfig) PluginsReturns(result1 []configv3.Plugin) { 1201 fake.PluginsStub = nil 1202 fake.pluginsReturns = struct { 1203 result1 []configv3.Plugin 1204 }{result1} 1205 } 1206 1207 func (fake *FakeConfig) PluginsReturnsOnCall(i int, result1 []configv3.Plugin) { 1208 fake.PluginsStub = nil 1209 if fake.pluginsReturnsOnCall == nil { 1210 fake.pluginsReturnsOnCall = make(map[int]struct { 1211 result1 []configv3.Plugin 1212 }) 1213 } 1214 fake.pluginsReturnsOnCall[i] = struct { 1215 result1 []configv3.Plugin 1216 }{result1} 1217 } 1218 1219 func (fake *FakeConfig) PollingInterval() time.Duration { 1220 fake.pollingIntervalMutex.Lock() 1221 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 1222 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct{}{}) 1223 fake.recordInvocation("PollingInterval", []interface{}{}) 1224 fake.pollingIntervalMutex.Unlock() 1225 if fake.PollingIntervalStub != nil { 1226 return fake.PollingIntervalStub() 1227 } 1228 if specificReturn { 1229 return ret.result1 1230 } 1231 return fake.pollingIntervalReturns.result1 1232 } 1233 1234 func (fake *FakeConfig) PollingIntervalCallCount() int { 1235 fake.pollingIntervalMutex.RLock() 1236 defer fake.pollingIntervalMutex.RUnlock() 1237 return len(fake.pollingIntervalArgsForCall) 1238 } 1239 1240 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 1241 fake.PollingIntervalStub = nil 1242 fake.pollingIntervalReturns = struct { 1243 result1 time.Duration 1244 }{result1} 1245 } 1246 1247 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 1248 fake.PollingIntervalStub = nil 1249 if fake.pollingIntervalReturnsOnCall == nil { 1250 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 1251 result1 time.Duration 1252 }) 1253 } 1254 fake.pollingIntervalReturnsOnCall[i] = struct { 1255 result1 time.Duration 1256 }{result1} 1257 } 1258 1259 func (fake *FakeConfig) RefreshToken() string { 1260 fake.refreshTokenMutex.Lock() 1261 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 1262 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct{}{}) 1263 fake.recordInvocation("RefreshToken", []interface{}{}) 1264 fake.refreshTokenMutex.Unlock() 1265 if fake.RefreshTokenStub != nil { 1266 return fake.RefreshTokenStub() 1267 } 1268 if specificReturn { 1269 return ret.result1 1270 } 1271 return fake.refreshTokenReturns.result1 1272 } 1273 1274 func (fake *FakeConfig) RefreshTokenCallCount() int { 1275 fake.refreshTokenMutex.RLock() 1276 defer fake.refreshTokenMutex.RUnlock() 1277 return len(fake.refreshTokenArgsForCall) 1278 } 1279 1280 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 1281 fake.RefreshTokenStub = nil 1282 fake.refreshTokenReturns = struct { 1283 result1 string 1284 }{result1} 1285 } 1286 1287 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 1288 fake.RefreshTokenStub = nil 1289 if fake.refreshTokenReturnsOnCall == nil { 1290 fake.refreshTokenReturnsOnCall = make(map[int]struct { 1291 result1 string 1292 }) 1293 } 1294 fake.refreshTokenReturnsOnCall[i] = struct { 1295 result1 string 1296 }{result1} 1297 } 1298 1299 func (fake *FakeConfig) RemovePlugin(arg1 string) { 1300 fake.removePluginMutex.Lock() 1301 fake.removePluginArgsForCall = append(fake.removePluginArgsForCall, struct { 1302 arg1 string 1303 }{arg1}) 1304 fake.recordInvocation("RemovePlugin", []interface{}{arg1}) 1305 fake.removePluginMutex.Unlock() 1306 if fake.RemovePluginStub != nil { 1307 fake.RemovePluginStub(arg1) 1308 } 1309 } 1310 1311 func (fake *FakeConfig) RemovePluginCallCount() int { 1312 fake.removePluginMutex.RLock() 1313 defer fake.removePluginMutex.RUnlock() 1314 return len(fake.removePluginArgsForCall) 1315 } 1316 1317 func (fake *FakeConfig) RemovePluginArgsForCall(i int) string { 1318 fake.removePluginMutex.RLock() 1319 defer fake.removePluginMutex.RUnlock() 1320 return fake.removePluginArgsForCall[i].arg1 1321 } 1322 1323 func (fake *FakeConfig) SetAccessToken(token string) { 1324 fake.setAccessTokenMutex.Lock() 1325 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 1326 token string 1327 }{token}) 1328 fake.recordInvocation("SetAccessToken", []interface{}{token}) 1329 fake.setAccessTokenMutex.Unlock() 1330 if fake.SetAccessTokenStub != nil { 1331 fake.SetAccessTokenStub(token) 1332 } 1333 } 1334 1335 func (fake *FakeConfig) SetAccessTokenCallCount() int { 1336 fake.setAccessTokenMutex.RLock() 1337 defer fake.setAccessTokenMutex.RUnlock() 1338 return len(fake.setAccessTokenArgsForCall) 1339 } 1340 1341 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 1342 fake.setAccessTokenMutex.RLock() 1343 defer fake.setAccessTokenMutex.RUnlock() 1344 return fake.setAccessTokenArgsForCall[i].token 1345 } 1346 1347 func (fake *FakeConfig) SetOrganizationInformation(guid string, name string) { 1348 fake.setOrganizationInformationMutex.Lock() 1349 fake.setOrganizationInformationArgsForCall = append(fake.setOrganizationInformationArgsForCall, struct { 1350 guid string 1351 name string 1352 }{guid, name}) 1353 fake.recordInvocation("SetOrganizationInformation", []interface{}{guid, name}) 1354 fake.setOrganizationInformationMutex.Unlock() 1355 if fake.SetOrganizationInformationStub != nil { 1356 fake.SetOrganizationInformationStub(guid, name) 1357 } 1358 } 1359 1360 func (fake *FakeConfig) SetOrganizationInformationCallCount() int { 1361 fake.setOrganizationInformationMutex.RLock() 1362 defer fake.setOrganizationInformationMutex.RUnlock() 1363 return len(fake.setOrganizationInformationArgsForCall) 1364 } 1365 1366 func (fake *FakeConfig) SetOrganizationInformationArgsForCall(i int) (string, string) { 1367 fake.setOrganizationInformationMutex.RLock() 1368 defer fake.setOrganizationInformationMutex.RUnlock() 1369 return fake.setOrganizationInformationArgsForCall[i].guid, fake.setOrganizationInformationArgsForCall[i].name 1370 } 1371 1372 func (fake *FakeConfig) SetRefreshToken(token string) { 1373 fake.setRefreshTokenMutex.Lock() 1374 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 1375 token string 1376 }{token}) 1377 fake.recordInvocation("SetRefreshToken", []interface{}{token}) 1378 fake.setRefreshTokenMutex.Unlock() 1379 if fake.SetRefreshTokenStub != nil { 1380 fake.SetRefreshTokenStub(token) 1381 } 1382 } 1383 1384 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 1385 fake.setRefreshTokenMutex.RLock() 1386 defer fake.setRefreshTokenMutex.RUnlock() 1387 return len(fake.setRefreshTokenArgsForCall) 1388 } 1389 1390 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 1391 fake.setRefreshTokenMutex.RLock() 1392 defer fake.setRefreshTokenMutex.RUnlock() 1393 return fake.setRefreshTokenArgsForCall[i].token 1394 } 1395 1396 func (fake *FakeConfig) SetSpaceInformation(guid string, name string, allowSSH bool) { 1397 fake.setSpaceInformationMutex.Lock() 1398 fake.setSpaceInformationArgsForCall = append(fake.setSpaceInformationArgsForCall, struct { 1399 guid string 1400 name string 1401 allowSSH bool 1402 }{guid, name, allowSSH}) 1403 fake.recordInvocation("SetSpaceInformation", []interface{}{guid, name, allowSSH}) 1404 fake.setSpaceInformationMutex.Unlock() 1405 if fake.SetSpaceInformationStub != nil { 1406 fake.SetSpaceInformationStub(guid, name, allowSSH) 1407 } 1408 } 1409 1410 func (fake *FakeConfig) SetSpaceInformationCallCount() int { 1411 fake.setSpaceInformationMutex.RLock() 1412 defer fake.setSpaceInformationMutex.RUnlock() 1413 return len(fake.setSpaceInformationArgsForCall) 1414 } 1415 1416 func (fake *FakeConfig) SetSpaceInformationArgsForCall(i int) (string, string, bool) { 1417 fake.setSpaceInformationMutex.RLock() 1418 defer fake.setSpaceInformationMutex.RUnlock() 1419 return fake.setSpaceInformationArgsForCall[i].guid, fake.setSpaceInformationArgsForCall[i].name, fake.setSpaceInformationArgsForCall[i].allowSSH 1420 } 1421 1422 func (fake *FakeConfig) SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) { 1423 fake.setTargetInformationMutex.Lock() 1424 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 1425 api string 1426 apiVersion string 1427 auth string 1428 minCLIVersion string 1429 doppler string 1430 routing string 1431 skipSSLValidation bool 1432 }{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation}) 1433 fake.recordInvocation("SetTargetInformation", []interface{}{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation}) 1434 fake.setTargetInformationMutex.Unlock() 1435 if fake.SetTargetInformationStub != nil { 1436 fake.SetTargetInformationStub(api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation) 1437 } 1438 } 1439 1440 func (fake *FakeConfig) SetTargetInformationCallCount() int { 1441 fake.setTargetInformationMutex.RLock() 1442 defer fake.setTargetInformationMutex.RUnlock() 1443 return len(fake.setTargetInformationArgsForCall) 1444 } 1445 1446 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, bool) { 1447 fake.setTargetInformationMutex.RLock() 1448 defer fake.setTargetInformationMutex.RUnlock() 1449 return fake.setTargetInformationArgsForCall[i].api, fake.setTargetInformationArgsForCall[i].apiVersion, fake.setTargetInformationArgsForCall[i].auth, fake.setTargetInformationArgsForCall[i].minCLIVersion, fake.setTargetInformationArgsForCall[i].doppler, fake.setTargetInformationArgsForCall[i].routing, fake.setTargetInformationArgsForCall[i].skipSSLValidation 1450 } 1451 1452 func (fake *FakeConfig) SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string) { 1453 fake.setTokenInformationMutex.Lock() 1454 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 1455 accessToken string 1456 refreshToken string 1457 sshOAuthClient string 1458 }{accessToken, refreshToken, sshOAuthClient}) 1459 fake.recordInvocation("SetTokenInformation", []interface{}{accessToken, refreshToken, sshOAuthClient}) 1460 fake.setTokenInformationMutex.Unlock() 1461 if fake.SetTokenInformationStub != nil { 1462 fake.SetTokenInformationStub(accessToken, refreshToken, sshOAuthClient) 1463 } 1464 } 1465 1466 func (fake *FakeConfig) SetTokenInformationCallCount() int { 1467 fake.setTokenInformationMutex.RLock() 1468 defer fake.setTokenInformationMutex.RUnlock() 1469 return len(fake.setTokenInformationArgsForCall) 1470 } 1471 1472 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 1473 fake.setTokenInformationMutex.RLock() 1474 defer fake.setTokenInformationMutex.RUnlock() 1475 return fake.setTokenInformationArgsForCall[i].accessToken, fake.setTokenInformationArgsForCall[i].refreshToken, fake.setTokenInformationArgsForCall[i].sshOAuthClient 1476 } 1477 1478 func (fake *FakeConfig) SetUAAEndpoint(uaaEndpoint string) { 1479 fake.setUAAEndpointMutex.Lock() 1480 fake.setUAAEndpointArgsForCall = append(fake.setUAAEndpointArgsForCall, struct { 1481 uaaEndpoint string 1482 }{uaaEndpoint}) 1483 fake.recordInvocation("SetUAAEndpoint", []interface{}{uaaEndpoint}) 1484 fake.setUAAEndpointMutex.Unlock() 1485 if fake.SetUAAEndpointStub != nil { 1486 fake.SetUAAEndpointStub(uaaEndpoint) 1487 } 1488 } 1489 1490 func (fake *FakeConfig) SetUAAEndpointCallCount() int { 1491 fake.setUAAEndpointMutex.RLock() 1492 defer fake.setUAAEndpointMutex.RUnlock() 1493 return len(fake.setUAAEndpointArgsForCall) 1494 } 1495 1496 func (fake *FakeConfig) SetUAAEndpointArgsForCall(i int) string { 1497 fake.setUAAEndpointMutex.RLock() 1498 defer fake.setUAAEndpointMutex.RUnlock() 1499 return fake.setUAAEndpointArgsForCall[i].uaaEndpoint 1500 } 1501 1502 func (fake *FakeConfig) SkipSSLValidation() bool { 1503 fake.skipSSLValidationMutex.Lock() 1504 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 1505 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct{}{}) 1506 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 1507 fake.skipSSLValidationMutex.Unlock() 1508 if fake.SkipSSLValidationStub != nil { 1509 return fake.SkipSSLValidationStub() 1510 } 1511 if specificReturn { 1512 return ret.result1 1513 } 1514 return fake.skipSSLValidationReturns.result1 1515 } 1516 1517 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 1518 fake.skipSSLValidationMutex.RLock() 1519 defer fake.skipSSLValidationMutex.RUnlock() 1520 return len(fake.skipSSLValidationArgsForCall) 1521 } 1522 1523 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 1524 fake.SkipSSLValidationStub = nil 1525 fake.skipSSLValidationReturns = struct { 1526 result1 bool 1527 }{result1} 1528 } 1529 1530 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 1531 fake.SkipSSLValidationStub = nil 1532 if fake.skipSSLValidationReturnsOnCall == nil { 1533 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 1534 result1 bool 1535 }) 1536 } 1537 fake.skipSSLValidationReturnsOnCall[i] = struct { 1538 result1 bool 1539 }{result1} 1540 } 1541 1542 func (fake *FakeConfig) SSHOAuthClient() string { 1543 fake.sSHOAuthClientMutex.Lock() 1544 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 1545 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct{}{}) 1546 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 1547 fake.sSHOAuthClientMutex.Unlock() 1548 if fake.SSHOAuthClientStub != nil { 1549 return fake.SSHOAuthClientStub() 1550 } 1551 if specificReturn { 1552 return ret.result1 1553 } 1554 return fake.sSHOAuthClientReturns.result1 1555 } 1556 1557 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 1558 fake.sSHOAuthClientMutex.RLock() 1559 defer fake.sSHOAuthClientMutex.RUnlock() 1560 return len(fake.sSHOAuthClientArgsForCall) 1561 } 1562 1563 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 1564 fake.SSHOAuthClientStub = nil 1565 fake.sSHOAuthClientReturns = struct { 1566 result1 string 1567 }{result1} 1568 } 1569 1570 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 1571 fake.SSHOAuthClientStub = nil 1572 if fake.sSHOAuthClientReturnsOnCall == nil { 1573 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 1574 result1 string 1575 }) 1576 } 1577 fake.sSHOAuthClientReturnsOnCall[i] = struct { 1578 result1 string 1579 }{result1} 1580 } 1581 1582 func (fake *FakeConfig) StagingTimeout() time.Duration { 1583 fake.stagingTimeoutMutex.Lock() 1584 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 1585 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct{}{}) 1586 fake.recordInvocation("StagingTimeout", []interface{}{}) 1587 fake.stagingTimeoutMutex.Unlock() 1588 if fake.StagingTimeoutStub != nil { 1589 return fake.StagingTimeoutStub() 1590 } 1591 if specificReturn { 1592 return ret.result1 1593 } 1594 return fake.stagingTimeoutReturns.result1 1595 } 1596 1597 func (fake *FakeConfig) StagingTimeoutCallCount() int { 1598 fake.stagingTimeoutMutex.RLock() 1599 defer fake.stagingTimeoutMutex.RUnlock() 1600 return len(fake.stagingTimeoutArgsForCall) 1601 } 1602 1603 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 1604 fake.StagingTimeoutStub = nil 1605 fake.stagingTimeoutReturns = struct { 1606 result1 time.Duration 1607 }{result1} 1608 } 1609 1610 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 1611 fake.StagingTimeoutStub = nil 1612 if fake.stagingTimeoutReturnsOnCall == nil { 1613 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 1614 result1 time.Duration 1615 }) 1616 } 1617 fake.stagingTimeoutReturnsOnCall[i] = struct { 1618 result1 time.Duration 1619 }{result1} 1620 } 1621 1622 func (fake *FakeConfig) StartupTimeout() time.Duration { 1623 fake.startupTimeoutMutex.Lock() 1624 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 1625 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct{}{}) 1626 fake.recordInvocation("StartupTimeout", []interface{}{}) 1627 fake.startupTimeoutMutex.Unlock() 1628 if fake.StartupTimeoutStub != nil { 1629 return fake.StartupTimeoutStub() 1630 } 1631 if specificReturn { 1632 return ret.result1 1633 } 1634 return fake.startupTimeoutReturns.result1 1635 } 1636 1637 func (fake *FakeConfig) StartupTimeoutCallCount() int { 1638 fake.startupTimeoutMutex.RLock() 1639 defer fake.startupTimeoutMutex.RUnlock() 1640 return len(fake.startupTimeoutArgsForCall) 1641 } 1642 1643 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 1644 fake.StartupTimeoutStub = nil 1645 fake.startupTimeoutReturns = struct { 1646 result1 time.Duration 1647 }{result1} 1648 } 1649 1650 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 1651 fake.StartupTimeoutStub = nil 1652 if fake.startupTimeoutReturnsOnCall == nil { 1653 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 1654 result1 time.Duration 1655 }) 1656 } 1657 fake.startupTimeoutReturnsOnCall[i] = struct { 1658 result1 time.Duration 1659 }{result1} 1660 } 1661 1662 func (fake *FakeConfig) Target() string { 1663 fake.targetMutex.Lock() 1664 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 1665 fake.targetArgsForCall = append(fake.targetArgsForCall, struct{}{}) 1666 fake.recordInvocation("Target", []interface{}{}) 1667 fake.targetMutex.Unlock() 1668 if fake.TargetStub != nil { 1669 return fake.TargetStub() 1670 } 1671 if specificReturn { 1672 return ret.result1 1673 } 1674 return fake.targetReturns.result1 1675 } 1676 1677 func (fake *FakeConfig) TargetCallCount() int { 1678 fake.targetMutex.RLock() 1679 defer fake.targetMutex.RUnlock() 1680 return len(fake.targetArgsForCall) 1681 } 1682 1683 func (fake *FakeConfig) TargetReturns(result1 string) { 1684 fake.TargetStub = nil 1685 fake.targetReturns = struct { 1686 result1 string 1687 }{result1} 1688 } 1689 1690 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 1691 fake.TargetStub = nil 1692 if fake.targetReturnsOnCall == nil { 1693 fake.targetReturnsOnCall = make(map[int]struct { 1694 result1 string 1695 }) 1696 } 1697 fake.targetReturnsOnCall[i] = struct { 1698 result1 string 1699 }{result1} 1700 } 1701 1702 func (fake *FakeConfig) TargetedOrganization() configv3.Organization { 1703 fake.targetedOrganizationMutex.Lock() 1704 ret, specificReturn := fake.targetedOrganizationReturnsOnCall[len(fake.targetedOrganizationArgsForCall)] 1705 fake.targetedOrganizationArgsForCall = append(fake.targetedOrganizationArgsForCall, struct{}{}) 1706 fake.recordInvocation("TargetedOrganization", []interface{}{}) 1707 fake.targetedOrganizationMutex.Unlock() 1708 if fake.TargetedOrganizationStub != nil { 1709 return fake.TargetedOrganizationStub() 1710 } 1711 if specificReturn { 1712 return ret.result1 1713 } 1714 return fake.targetedOrganizationReturns.result1 1715 } 1716 1717 func (fake *FakeConfig) TargetedOrganizationCallCount() int { 1718 fake.targetedOrganizationMutex.RLock() 1719 defer fake.targetedOrganizationMutex.RUnlock() 1720 return len(fake.targetedOrganizationArgsForCall) 1721 } 1722 1723 func (fake *FakeConfig) TargetedOrganizationReturns(result1 configv3.Organization) { 1724 fake.TargetedOrganizationStub = nil 1725 fake.targetedOrganizationReturns = struct { 1726 result1 configv3.Organization 1727 }{result1} 1728 } 1729 1730 func (fake *FakeConfig) TargetedOrganizationReturnsOnCall(i int, result1 configv3.Organization) { 1731 fake.TargetedOrganizationStub = nil 1732 if fake.targetedOrganizationReturnsOnCall == nil { 1733 fake.targetedOrganizationReturnsOnCall = make(map[int]struct { 1734 result1 configv3.Organization 1735 }) 1736 } 1737 fake.targetedOrganizationReturnsOnCall[i] = struct { 1738 result1 configv3.Organization 1739 }{result1} 1740 } 1741 1742 func (fake *FakeConfig) TargetedSpace() configv3.Space { 1743 fake.targetedSpaceMutex.Lock() 1744 ret, specificReturn := fake.targetedSpaceReturnsOnCall[len(fake.targetedSpaceArgsForCall)] 1745 fake.targetedSpaceArgsForCall = append(fake.targetedSpaceArgsForCall, struct{}{}) 1746 fake.recordInvocation("TargetedSpace", []interface{}{}) 1747 fake.targetedSpaceMutex.Unlock() 1748 if fake.TargetedSpaceStub != nil { 1749 return fake.TargetedSpaceStub() 1750 } 1751 if specificReturn { 1752 return ret.result1 1753 } 1754 return fake.targetedSpaceReturns.result1 1755 } 1756 1757 func (fake *FakeConfig) TargetedSpaceCallCount() int { 1758 fake.targetedSpaceMutex.RLock() 1759 defer fake.targetedSpaceMutex.RUnlock() 1760 return len(fake.targetedSpaceArgsForCall) 1761 } 1762 1763 func (fake *FakeConfig) TargetedSpaceReturns(result1 configv3.Space) { 1764 fake.TargetedSpaceStub = nil 1765 fake.targetedSpaceReturns = struct { 1766 result1 configv3.Space 1767 }{result1} 1768 } 1769 1770 func (fake *FakeConfig) TargetedSpaceReturnsOnCall(i int, result1 configv3.Space) { 1771 fake.TargetedSpaceStub = nil 1772 if fake.targetedSpaceReturnsOnCall == nil { 1773 fake.targetedSpaceReturnsOnCall = make(map[int]struct { 1774 result1 configv3.Space 1775 }) 1776 } 1777 fake.targetedSpaceReturnsOnCall[i] = struct { 1778 result1 configv3.Space 1779 }{result1} 1780 } 1781 1782 func (fake *FakeConfig) UAAOAuthClient() string { 1783 fake.uAAOAuthClientMutex.Lock() 1784 ret, specificReturn := fake.uAAOAuthClientReturnsOnCall[len(fake.uAAOAuthClientArgsForCall)] 1785 fake.uAAOAuthClientArgsForCall = append(fake.uAAOAuthClientArgsForCall, struct{}{}) 1786 fake.recordInvocation("UAAOAuthClient", []interface{}{}) 1787 fake.uAAOAuthClientMutex.Unlock() 1788 if fake.UAAOAuthClientStub != nil { 1789 return fake.UAAOAuthClientStub() 1790 } 1791 if specificReturn { 1792 return ret.result1 1793 } 1794 return fake.uAAOAuthClientReturns.result1 1795 } 1796 1797 func (fake *FakeConfig) UAAOAuthClientCallCount() int { 1798 fake.uAAOAuthClientMutex.RLock() 1799 defer fake.uAAOAuthClientMutex.RUnlock() 1800 return len(fake.uAAOAuthClientArgsForCall) 1801 } 1802 1803 func (fake *FakeConfig) UAAOAuthClientReturns(result1 string) { 1804 fake.UAAOAuthClientStub = nil 1805 fake.uAAOAuthClientReturns = struct { 1806 result1 string 1807 }{result1} 1808 } 1809 1810 func (fake *FakeConfig) UAAOAuthClientReturnsOnCall(i int, result1 string) { 1811 fake.UAAOAuthClientStub = nil 1812 if fake.uAAOAuthClientReturnsOnCall == nil { 1813 fake.uAAOAuthClientReturnsOnCall = make(map[int]struct { 1814 result1 string 1815 }) 1816 } 1817 fake.uAAOAuthClientReturnsOnCall[i] = struct { 1818 result1 string 1819 }{result1} 1820 } 1821 1822 func (fake *FakeConfig) UAAOAuthClientSecret() string { 1823 fake.uAAOAuthClientSecretMutex.Lock() 1824 ret, specificReturn := fake.uAAOAuthClientSecretReturnsOnCall[len(fake.uAAOAuthClientSecretArgsForCall)] 1825 fake.uAAOAuthClientSecretArgsForCall = append(fake.uAAOAuthClientSecretArgsForCall, struct{}{}) 1826 fake.recordInvocation("UAAOAuthClientSecret", []interface{}{}) 1827 fake.uAAOAuthClientSecretMutex.Unlock() 1828 if fake.UAAOAuthClientSecretStub != nil { 1829 return fake.UAAOAuthClientSecretStub() 1830 } 1831 if specificReturn { 1832 return ret.result1 1833 } 1834 return fake.uAAOAuthClientSecretReturns.result1 1835 } 1836 1837 func (fake *FakeConfig) UAAOAuthClientSecretCallCount() int { 1838 fake.uAAOAuthClientSecretMutex.RLock() 1839 defer fake.uAAOAuthClientSecretMutex.RUnlock() 1840 return len(fake.uAAOAuthClientSecretArgsForCall) 1841 } 1842 1843 func (fake *FakeConfig) UAAOAuthClientSecretReturns(result1 string) { 1844 fake.UAAOAuthClientSecretStub = nil 1845 fake.uAAOAuthClientSecretReturns = struct { 1846 result1 string 1847 }{result1} 1848 } 1849 1850 func (fake *FakeConfig) UAAOAuthClientSecretReturnsOnCall(i int, result1 string) { 1851 fake.UAAOAuthClientSecretStub = nil 1852 if fake.uAAOAuthClientSecretReturnsOnCall == nil { 1853 fake.uAAOAuthClientSecretReturnsOnCall = make(map[int]struct { 1854 result1 string 1855 }) 1856 } 1857 fake.uAAOAuthClientSecretReturnsOnCall[i] = struct { 1858 result1 string 1859 }{result1} 1860 } 1861 1862 func (fake *FakeConfig) UnsetOrganizationInformation() { 1863 fake.unsetOrganizationInformationMutex.Lock() 1864 fake.unsetOrganizationInformationArgsForCall = append(fake.unsetOrganizationInformationArgsForCall, struct{}{}) 1865 fake.recordInvocation("UnsetOrganizationInformation", []interface{}{}) 1866 fake.unsetOrganizationInformationMutex.Unlock() 1867 if fake.UnsetOrganizationInformationStub != nil { 1868 fake.UnsetOrganizationInformationStub() 1869 } 1870 } 1871 1872 func (fake *FakeConfig) UnsetOrganizationInformationCallCount() int { 1873 fake.unsetOrganizationInformationMutex.RLock() 1874 defer fake.unsetOrganizationInformationMutex.RUnlock() 1875 return len(fake.unsetOrganizationInformationArgsForCall) 1876 } 1877 1878 func (fake *FakeConfig) UnsetSpaceInformation() { 1879 fake.unsetSpaceInformationMutex.Lock() 1880 fake.unsetSpaceInformationArgsForCall = append(fake.unsetSpaceInformationArgsForCall, struct{}{}) 1881 fake.recordInvocation("UnsetSpaceInformation", []interface{}{}) 1882 fake.unsetSpaceInformationMutex.Unlock() 1883 if fake.UnsetSpaceInformationStub != nil { 1884 fake.UnsetSpaceInformationStub() 1885 } 1886 } 1887 1888 func (fake *FakeConfig) UnsetSpaceInformationCallCount() int { 1889 fake.unsetSpaceInformationMutex.RLock() 1890 defer fake.unsetSpaceInformationMutex.RUnlock() 1891 return len(fake.unsetSpaceInformationArgsForCall) 1892 } 1893 1894 func (fake *FakeConfig) Verbose() (bool, []string) { 1895 fake.verboseMutex.Lock() 1896 ret, specificReturn := fake.verboseReturnsOnCall[len(fake.verboseArgsForCall)] 1897 fake.verboseArgsForCall = append(fake.verboseArgsForCall, struct{}{}) 1898 fake.recordInvocation("Verbose", []interface{}{}) 1899 fake.verboseMutex.Unlock() 1900 if fake.VerboseStub != nil { 1901 return fake.VerboseStub() 1902 } 1903 if specificReturn { 1904 return ret.result1, ret.result2 1905 } 1906 return fake.verboseReturns.result1, fake.verboseReturns.result2 1907 } 1908 1909 func (fake *FakeConfig) VerboseCallCount() int { 1910 fake.verboseMutex.RLock() 1911 defer fake.verboseMutex.RUnlock() 1912 return len(fake.verboseArgsForCall) 1913 } 1914 1915 func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string) { 1916 fake.VerboseStub = nil 1917 fake.verboseReturns = struct { 1918 result1 bool 1919 result2 []string 1920 }{result1, result2} 1921 } 1922 1923 func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string) { 1924 fake.VerboseStub = nil 1925 if fake.verboseReturnsOnCall == nil { 1926 fake.verboseReturnsOnCall = make(map[int]struct { 1927 result1 bool 1928 result2 []string 1929 }) 1930 } 1931 fake.verboseReturnsOnCall[i] = struct { 1932 result1 bool 1933 result2 []string 1934 }{result1, result2} 1935 } 1936 1937 func (fake *FakeConfig) WritePluginConfig() error { 1938 fake.writePluginConfigMutex.Lock() 1939 ret, specificReturn := fake.writePluginConfigReturnsOnCall[len(fake.writePluginConfigArgsForCall)] 1940 fake.writePluginConfigArgsForCall = append(fake.writePluginConfigArgsForCall, struct{}{}) 1941 fake.recordInvocation("WritePluginConfig", []interface{}{}) 1942 fake.writePluginConfigMutex.Unlock() 1943 if fake.WritePluginConfigStub != nil { 1944 return fake.WritePluginConfigStub() 1945 } 1946 if specificReturn { 1947 return ret.result1 1948 } 1949 return fake.writePluginConfigReturns.result1 1950 } 1951 1952 func (fake *FakeConfig) WritePluginConfigCallCount() int { 1953 fake.writePluginConfigMutex.RLock() 1954 defer fake.writePluginConfigMutex.RUnlock() 1955 return len(fake.writePluginConfigArgsForCall) 1956 } 1957 1958 func (fake *FakeConfig) WritePluginConfigReturns(result1 error) { 1959 fake.WritePluginConfigStub = nil 1960 fake.writePluginConfigReturns = struct { 1961 result1 error 1962 }{result1} 1963 } 1964 1965 func (fake *FakeConfig) WritePluginConfigReturnsOnCall(i int, result1 error) { 1966 fake.WritePluginConfigStub = nil 1967 if fake.writePluginConfigReturnsOnCall == nil { 1968 fake.writePluginConfigReturnsOnCall = make(map[int]struct { 1969 result1 error 1970 }) 1971 } 1972 fake.writePluginConfigReturnsOnCall[i] = struct { 1973 result1 error 1974 }{result1} 1975 } 1976 1977 func (fake *FakeConfig) Invocations() map[string][][]interface{} { 1978 fake.invocationsMutex.RLock() 1979 defer fake.invocationsMutex.RUnlock() 1980 fake.accessTokenMutex.RLock() 1981 defer fake.accessTokenMutex.RUnlock() 1982 fake.addPluginMutex.RLock() 1983 defer fake.addPluginMutex.RUnlock() 1984 fake.addPluginRepositoryMutex.RLock() 1985 defer fake.addPluginRepositoryMutex.RUnlock() 1986 fake.aPIVersionMutex.RLock() 1987 defer fake.aPIVersionMutex.RUnlock() 1988 fake.binaryNameMutex.RLock() 1989 defer fake.binaryNameMutex.RUnlock() 1990 fake.binaryVersionMutex.RLock() 1991 defer fake.binaryVersionMutex.RUnlock() 1992 fake.colorEnabledMutex.RLock() 1993 defer fake.colorEnabledMutex.RUnlock() 1994 fake.currentUserMutex.RLock() 1995 defer fake.currentUserMutex.RUnlock() 1996 fake.dialTimeoutMutex.RLock() 1997 defer fake.dialTimeoutMutex.RUnlock() 1998 fake.dockerPasswordMutex.RLock() 1999 defer fake.dockerPasswordMutex.RUnlock() 2000 fake.experimentalMutex.RLock() 2001 defer fake.experimentalMutex.RUnlock() 2002 fake.getPluginMutex.RLock() 2003 defer fake.getPluginMutex.RUnlock() 2004 fake.getPluginCaseInsensitiveMutex.RLock() 2005 defer fake.getPluginCaseInsensitiveMutex.RUnlock() 2006 fake.hasTargetedOrganizationMutex.RLock() 2007 defer fake.hasTargetedOrganizationMutex.RUnlock() 2008 fake.hasTargetedSpaceMutex.RLock() 2009 defer fake.hasTargetedSpaceMutex.RUnlock() 2010 fake.localeMutex.RLock() 2011 defer fake.localeMutex.RUnlock() 2012 fake.minCLIVersionMutex.RLock() 2013 defer fake.minCLIVersionMutex.RUnlock() 2014 fake.overallPollingTimeoutMutex.RLock() 2015 defer fake.overallPollingTimeoutMutex.RUnlock() 2016 fake.pluginHomeMutex.RLock() 2017 defer fake.pluginHomeMutex.RUnlock() 2018 fake.pluginRepositoriesMutex.RLock() 2019 defer fake.pluginRepositoriesMutex.RUnlock() 2020 fake.pluginsMutex.RLock() 2021 defer fake.pluginsMutex.RUnlock() 2022 fake.pollingIntervalMutex.RLock() 2023 defer fake.pollingIntervalMutex.RUnlock() 2024 fake.refreshTokenMutex.RLock() 2025 defer fake.refreshTokenMutex.RUnlock() 2026 fake.removePluginMutex.RLock() 2027 defer fake.removePluginMutex.RUnlock() 2028 fake.setAccessTokenMutex.RLock() 2029 defer fake.setAccessTokenMutex.RUnlock() 2030 fake.setOrganizationInformationMutex.RLock() 2031 defer fake.setOrganizationInformationMutex.RUnlock() 2032 fake.setRefreshTokenMutex.RLock() 2033 defer fake.setRefreshTokenMutex.RUnlock() 2034 fake.setSpaceInformationMutex.RLock() 2035 defer fake.setSpaceInformationMutex.RUnlock() 2036 fake.setTargetInformationMutex.RLock() 2037 defer fake.setTargetInformationMutex.RUnlock() 2038 fake.setTokenInformationMutex.RLock() 2039 defer fake.setTokenInformationMutex.RUnlock() 2040 fake.setUAAEndpointMutex.RLock() 2041 defer fake.setUAAEndpointMutex.RUnlock() 2042 fake.skipSSLValidationMutex.RLock() 2043 defer fake.skipSSLValidationMutex.RUnlock() 2044 fake.sSHOAuthClientMutex.RLock() 2045 defer fake.sSHOAuthClientMutex.RUnlock() 2046 fake.stagingTimeoutMutex.RLock() 2047 defer fake.stagingTimeoutMutex.RUnlock() 2048 fake.startupTimeoutMutex.RLock() 2049 defer fake.startupTimeoutMutex.RUnlock() 2050 fake.targetMutex.RLock() 2051 defer fake.targetMutex.RUnlock() 2052 fake.targetedOrganizationMutex.RLock() 2053 defer fake.targetedOrganizationMutex.RUnlock() 2054 fake.targetedSpaceMutex.RLock() 2055 defer fake.targetedSpaceMutex.RUnlock() 2056 fake.uAAOAuthClientMutex.RLock() 2057 defer fake.uAAOAuthClientMutex.RUnlock() 2058 fake.uAAOAuthClientSecretMutex.RLock() 2059 defer fake.uAAOAuthClientSecretMutex.RUnlock() 2060 fake.unsetOrganizationInformationMutex.RLock() 2061 defer fake.unsetOrganizationInformationMutex.RUnlock() 2062 fake.unsetSpaceInformationMutex.RLock() 2063 defer fake.unsetSpaceInformationMutex.RUnlock() 2064 fake.verboseMutex.RLock() 2065 defer fake.verboseMutex.RUnlock() 2066 fake.writePluginConfigMutex.RLock() 2067 defer fake.writePluginConfigMutex.RUnlock() 2068 copiedInvocations := map[string][][]interface{}{} 2069 for key, value := range fake.invocations { 2070 copiedInvocations[key] = value 2071 } 2072 return copiedInvocations 2073 } 2074 2075 func (fake *FakeConfig) recordInvocation(key string, args []interface{}) { 2076 fake.invocationsMutex.Lock() 2077 defer fake.invocationsMutex.Unlock() 2078 if fake.invocations == nil { 2079 fake.invocations = map[string][][]interface{}{} 2080 } 2081 if fake.invocations[key] == nil { 2082 fake.invocations[key] = [][]interface{}{} 2083 } 2084 fake.invocations[key] = append(fake.invocations[key], args) 2085 } 2086 2087 var _ command.Config = new(FakeConfig)