github.com/cloudfoundry/cli@v7.1.0+incompatible/plugin/pluginfakes/fake_cli_connection.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package pluginfakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/plugin" 8 plugin_models "code.cloudfoundry.org/cli/plugin/models" 9 ) 10 11 type FakeCliConnection struct { 12 AccessTokenStub func() (string, error) 13 accessTokenMutex sync.RWMutex 14 accessTokenArgsForCall []struct { 15 } 16 accessTokenReturns struct { 17 result1 string 18 result2 error 19 } 20 accessTokenReturnsOnCall map[int]struct { 21 result1 string 22 result2 error 23 } 24 ApiEndpointStub func() (string, error) 25 apiEndpointMutex sync.RWMutex 26 apiEndpointArgsForCall []struct { 27 } 28 apiEndpointReturns struct { 29 result1 string 30 result2 error 31 } 32 apiEndpointReturnsOnCall map[int]struct { 33 result1 string 34 result2 error 35 } 36 ApiVersionStub func() (string, error) 37 apiVersionMutex sync.RWMutex 38 apiVersionArgsForCall []struct { 39 } 40 apiVersionReturns struct { 41 result1 string 42 result2 error 43 } 44 apiVersionReturnsOnCall map[int]struct { 45 result1 string 46 result2 error 47 } 48 CliCommandStub func(...string) ([]string, error) 49 cliCommandMutex sync.RWMutex 50 cliCommandArgsForCall []struct { 51 arg1 []string 52 } 53 cliCommandReturns struct { 54 result1 []string 55 result2 error 56 } 57 cliCommandReturnsOnCall map[int]struct { 58 result1 []string 59 result2 error 60 } 61 CliCommandWithoutTerminalOutputStub func(...string) ([]string, error) 62 cliCommandWithoutTerminalOutputMutex sync.RWMutex 63 cliCommandWithoutTerminalOutputArgsForCall []struct { 64 arg1 []string 65 } 66 cliCommandWithoutTerminalOutputReturns struct { 67 result1 []string 68 result2 error 69 } 70 cliCommandWithoutTerminalOutputReturnsOnCall map[int]struct { 71 result1 []string 72 result2 error 73 } 74 DopplerEndpointStub func() (string, error) 75 dopplerEndpointMutex sync.RWMutex 76 dopplerEndpointArgsForCall []struct { 77 } 78 dopplerEndpointReturns struct { 79 result1 string 80 result2 error 81 } 82 dopplerEndpointReturnsOnCall map[int]struct { 83 result1 string 84 result2 error 85 } 86 GetAppStub func(string) (plugin_models.GetAppModel, error) 87 getAppMutex sync.RWMutex 88 getAppArgsForCall []struct { 89 arg1 string 90 } 91 getAppReturns struct { 92 result1 plugin_models.GetAppModel 93 result2 error 94 } 95 getAppReturnsOnCall map[int]struct { 96 result1 plugin_models.GetAppModel 97 result2 error 98 } 99 GetAppsStub func() ([]plugin_models.GetAppsModel, error) 100 getAppsMutex sync.RWMutex 101 getAppsArgsForCall []struct { 102 } 103 getAppsReturns struct { 104 result1 []plugin_models.GetAppsModel 105 result2 error 106 } 107 getAppsReturnsOnCall map[int]struct { 108 result1 []plugin_models.GetAppsModel 109 result2 error 110 } 111 GetCurrentOrgStub func() (plugin_models.Organization, error) 112 getCurrentOrgMutex sync.RWMutex 113 getCurrentOrgArgsForCall []struct { 114 } 115 getCurrentOrgReturns struct { 116 result1 plugin_models.Organization 117 result2 error 118 } 119 getCurrentOrgReturnsOnCall map[int]struct { 120 result1 plugin_models.Organization 121 result2 error 122 } 123 GetCurrentSpaceStub func() (plugin_models.Space, error) 124 getCurrentSpaceMutex sync.RWMutex 125 getCurrentSpaceArgsForCall []struct { 126 } 127 getCurrentSpaceReturns struct { 128 result1 plugin_models.Space 129 result2 error 130 } 131 getCurrentSpaceReturnsOnCall map[int]struct { 132 result1 plugin_models.Space 133 result2 error 134 } 135 GetOrgStub func(string) (plugin_models.GetOrg_Model, error) 136 getOrgMutex sync.RWMutex 137 getOrgArgsForCall []struct { 138 arg1 string 139 } 140 getOrgReturns struct { 141 result1 plugin_models.GetOrg_Model 142 result2 error 143 } 144 getOrgReturnsOnCall map[int]struct { 145 result1 plugin_models.GetOrg_Model 146 result2 error 147 } 148 GetOrgUsersStub func(string, ...string) ([]plugin_models.GetOrgUsers_Model, error) 149 getOrgUsersMutex sync.RWMutex 150 getOrgUsersArgsForCall []struct { 151 arg1 string 152 arg2 []string 153 } 154 getOrgUsersReturns struct { 155 result1 []plugin_models.GetOrgUsers_Model 156 result2 error 157 } 158 getOrgUsersReturnsOnCall map[int]struct { 159 result1 []plugin_models.GetOrgUsers_Model 160 result2 error 161 } 162 GetOrgsStub func() ([]plugin_models.GetOrgs_Model, error) 163 getOrgsMutex sync.RWMutex 164 getOrgsArgsForCall []struct { 165 } 166 getOrgsReturns struct { 167 result1 []plugin_models.GetOrgs_Model 168 result2 error 169 } 170 getOrgsReturnsOnCall map[int]struct { 171 result1 []plugin_models.GetOrgs_Model 172 result2 error 173 } 174 GetServiceStub func(string) (plugin_models.GetService_Model, error) 175 getServiceMutex sync.RWMutex 176 getServiceArgsForCall []struct { 177 arg1 string 178 } 179 getServiceReturns struct { 180 result1 plugin_models.GetService_Model 181 result2 error 182 } 183 getServiceReturnsOnCall map[int]struct { 184 result1 plugin_models.GetService_Model 185 result2 error 186 } 187 GetServicesStub func() ([]plugin_models.GetServices_Model, error) 188 getServicesMutex sync.RWMutex 189 getServicesArgsForCall []struct { 190 } 191 getServicesReturns struct { 192 result1 []plugin_models.GetServices_Model 193 result2 error 194 } 195 getServicesReturnsOnCall map[int]struct { 196 result1 []plugin_models.GetServices_Model 197 result2 error 198 } 199 GetSpaceStub func(string) (plugin_models.GetSpace_Model, error) 200 getSpaceMutex sync.RWMutex 201 getSpaceArgsForCall []struct { 202 arg1 string 203 } 204 getSpaceReturns struct { 205 result1 plugin_models.GetSpace_Model 206 result2 error 207 } 208 getSpaceReturnsOnCall map[int]struct { 209 result1 plugin_models.GetSpace_Model 210 result2 error 211 } 212 GetSpaceUsersStub func(string, string) ([]plugin_models.GetSpaceUsers_Model, error) 213 getSpaceUsersMutex sync.RWMutex 214 getSpaceUsersArgsForCall []struct { 215 arg1 string 216 arg2 string 217 } 218 getSpaceUsersReturns struct { 219 result1 []plugin_models.GetSpaceUsers_Model 220 result2 error 221 } 222 getSpaceUsersReturnsOnCall map[int]struct { 223 result1 []plugin_models.GetSpaceUsers_Model 224 result2 error 225 } 226 GetSpacesStub func() ([]plugin_models.GetSpaces_Model, error) 227 getSpacesMutex sync.RWMutex 228 getSpacesArgsForCall []struct { 229 } 230 getSpacesReturns struct { 231 result1 []plugin_models.GetSpaces_Model 232 result2 error 233 } 234 getSpacesReturnsOnCall map[int]struct { 235 result1 []plugin_models.GetSpaces_Model 236 result2 error 237 } 238 HasAPIEndpointStub func() (bool, error) 239 hasAPIEndpointMutex sync.RWMutex 240 hasAPIEndpointArgsForCall []struct { 241 } 242 hasAPIEndpointReturns struct { 243 result1 bool 244 result2 error 245 } 246 hasAPIEndpointReturnsOnCall map[int]struct { 247 result1 bool 248 result2 error 249 } 250 HasOrganizationStub func() (bool, error) 251 hasOrganizationMutex sync.RWMutex 252 hasOrganizationArgsForCall []struct { 253 } 254 hasOrganizationReturns struct { 255 result1 bool 256 result2 error 257 } 258 hasOrganizationReturnsOnCall map[int]struct { 259 result1 bool 260 result2 error 261 } 262 HasSpaceStub func() (bool, error) 263 hasSpaceMutex sync.RWMutex 264 hasSpaceArgsForCall []struct { 265 } 266 hasSpaceReturns struct { 267 result1 bool 268 result2 error 269 } 270 hasSpaceReturnsOnCall map[int]struct { 271 result1 bool 272 result2 error 273 } 274 IsLoggedInStub func() (bool, error) 275 isLoggedInMutex sync.RWMutex 276 isLoggedInArgsForCall []struct { 277 } 278 isLoggedInReturns struct { 279 result1 bool 280 result2 error 281 } 282 isLoggedInReturnsOnCall map[int]struct { 283 result1 bool 284 result2 error 285 } 286 IsSSLDisabledStub func() (bool, error) 287 isSSLDisabledMutex sync.RWMutex 288 isSSLDisabledArgsForCall []struct { 289 } 290 isSSLDisabledReturns struct { 291 result1 bool 292 result2 error 293 } 294 isSSLDisabledReturnsOnCall map[int]struct { 295 result1 bool 296 result2 error 297 } 298 LoggregatorEndpointStub func() (string, error) 299 loggregatorEndpointMutex sync.RWMutex 300 loggregatorEndpointArgsForCall []struct { 301 } 302 loggregatorEndpointReturns struct { 303 result1 string 304 result2 error 305 } 306 loggregatorEndpointReturnsOnCall map[int]struct { 307 result1 string 308 result2 error 309 } 310 UserEmailStub func() (string, error) 311 userEmailMutex sync.RWMutex 312 userEmailArgsForCall []struct { 313 } 314 userEmailReturns struct { 315 result1 string 316 result2 error 317 } 318 userEmailReturnsOnCall map[int]struct { 319 result1 string 320 result2 error 321 } 322 UserGuidStub func() (string, error) 323 userGuidMutex sync.RWMutex 324 userGuidArgsForCall []struct { 325 } 326 userGuidReturns struct { 327 result1 string 328 result2 error 329 } 330 userGuidReturnsOnCall map[int]struct { 331 result1 string 332 result2 error 333 } 334 UsernameStub func() (string, error) 335 usernameMutex sync.RWMutex 336 usernameArgsForCall []struct { 337 } 338 usernameReturns struct { 339 result1 string 340 result2 error 341 } 342 usernameReturnsOnCall map[int]struct { 343 result1 string 344 result2 error 345 } 346 invocations map[string][][]interface{} 347 invocationsMutex sync.RWMutex 348 } 349 350 func (fake *FakeCliConnection) AccessToken() (string, error) { 351 fake.accessTokenMutex.Lock() 352 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 353 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct { 354 }{}) 355 fake.recordInvocation("AccessToken", []interface{}{}) 356 fake.accessTokenMutex.Unlock() 357 if fake.AccessTokenStub != nil { 358 return fake.AccessTokenStub() 359 } 360 if specificReturn { 361 return ret.result1, ret.result2 362 } 363 fakeReturns := fake.accessTokenReturns 364 return fakeReturns.result1, fakeReturns.result2 365 } 366 367 func (fake *FakeCliConnection) AccessTokenCallCount() int { 368 fake.accessTokenMutex.RLock() 369 defer fake.accessTokenMutex.RUnlock() 370 return len(fake.accessTokenArgsForCall) 371 } 372 373 func (fake *FakeCliConnection) AccessTokenCalls(stub func() (string, error)) { 374 fake.accessTokenMutex.Lock() 375 defer fake.accessTokenMutex.Unlock() 376 fake.AccessTokenStub = stub 377 } 378 379 func (fake *FakeCliConnection) AccessTokenReturns(result1 string, result2 error) { 380 fake.accessTokenMutex.Lock() 381 defer fake.accessTokenMutex.Unlock() 382 fake.AccessTokenStub = nil 383 fake.accessTokenReturns = struct { 384 result1 string 385 result2 error 386 }{result1, result2} 387 } 388 389 func (fake *FakeCliConnection) AccessTokenReturnsOnCall(i int, result1 string, result2 error) { 390 fake.accessTokenMutex.Lock() 391 defer fake.accessTokenMutex.Unlock() 392 fake.AccessTokenStub = nil 393 if fake.accessTokenReturnsOnCall == nil { 394 fake.accessTokenReturnsOnCall = make(map[int]struct { 395 result1 string 396 result2 error 397 }) 398 } 399 fake.accessTokenReturnsOnCall[i] = struct { 400 result1 string 401 result2 error 402 }{result1, result2} 403 } 404 405 func (fake *FakeCliConnection) ApiEndpoint() (string, error) { 406 fake.apiEndpointMutex.Lock() 407 ret, specificReturn := fake.apiEndpointReturnsOnCall[len(fake.apiEndpointArgsForCall)] 408 fake.apiEndpointArgsForCall = append(fake.apiEndpointArgsForCall, struct { 409 }{}) 410 fake.recordInvocation("ApiEndpoint", []interface{}{}) 411 fake.apiEndpointMutex.Unlock() 412 if fake.ApiEndpointStub != nil { 413 return fake.ApiEndpointStub() 414 } 415 if specificReturn { 416 return ret.result1, ret.result2 417 } 418 fakeReturns := fake.apiEndpointReturns 419 return fakeReturns.result1, fakeReturns.result2 420 } 421 422 func (fake *FakeCliConnection) ApiEndpointCallCount() int { 423 fake.apiEndpointMutex.RLock() 424 defer fake.apiEndpointMutex.RUnlock() 425 return len(fake.apiEndpointArgsForCall) 426 } 427 428 func (fake *FakeCliConnection) ApiEndpointCalls(stub func() (string, error)) { 429 fake.apiEndpointMutex.Lock() 430 defer fake.apiEndpointMutex.Unlock() 431 fake.ApiEndpointStub = stub 432 } 433 434 func (fake *FakeCliConnection) ApiEndpointReturns(result1 string, result2 error) { 435 fake.apiEndpointMutex.Lock() 436 defer fake.apiEndpointMutex.Unlock() 437 fake.ApiEndpointStub = nil 438 fake.apiEndpointReturns = struct { 439 result1 string 440 result2 error 441 }{result1, result2} 442 } 443 444 func (fake *FakeCliConnection) ApiEndpointReturnsOnCall(i int, result1 string, result2 error) { 445 fake.apiEndpointMutex.Lock() 446 defer fake.apiEndpointMutex.Unlock() 447 fake.ApiEndpointStub = nil 448 if fake.apiEndpointReturnsOnCall == nil { 449 fake.apiEndpointReturnsOnCall = make(map[int]struct { 450 result1 string 451 result2 error 452 }) 453 } 454 fake.apiEndpointReturnsOnCall[i] = struct { 455 result1 string 456 result2 error 457 }{result1, result2} 458 } 459 460 func (fake *FakeCliConnection) ApiVersion() (string, error) { 461 fake.apiVersionMutex.Lock() 462 ret, specificReturn := fake.apiVersionReturnsOnCall[len(fake.apiVersionArgsForCall)] 463 fake.apiVersionArgsForCall = append(fake.apiVersionArgsForCall, struct { 464 }{}) 465 fake.recordInvocation("ApiVersion", []interface{}{}) 466 fake.apiVersionMutex.Unlock() 467 if fake.ApiVersionStub != nil { 468 return fake.ApiVersionStub() 469 } 470 if specificReturn { 471 return ret.result1, ret.result2 472 } 473 fakeReturns := fake.apiVersionReturns 474 return fakeReturns.result1, fakeReturns.result2 475 } 476 477 func (fake *FakeCliConnection) ApiVersionCallCount() int { 478 fake.apiVersionMutex.RLock() 479 defer fake.apiVersionMutex.RUnlock() 480 return len(fake.apiVersionArgsForCall) 481 } 482 483 func (fake *FakeCliConnection) ApiVersionCalls(stub func() (string, error)) { 484 fake.apiVersionMutex.Lock() 485 defer fake.apiVersionMutex.Unlock() 486 fake.ApiVersionStub = stub 487 } 488 489 func (fake *FakeCliConnection) ApiVersionReturns(result1 string, result2 error) { 490 fake.apiVersionMutex.Lock() 491 defer fake.apiVersionMutex.Unlock() 492 fake.ApiVersionStub = nil 493 fake.apiVersionReturns = struct { 494 result1 string 495 result2 error 496 }{result1, result2} 497 } 498 499 func (fake *FakeCliConnection) ApiVersionReturnsOnCall(i int, result1 string, result2 error) { 500 fake.apiVersionMutex.Lock() 501 defer fake.apiVersionMutex.Unlock() 502 fake.ApiVersionStub = nil 503 if fake.apiVersionReturnsOnCall == nil { 504 fake.apiVersionReturnsOnCall = make(map[int]struct { 505 result1 string 506 result2 error 507 }) 508 } 509 fake.apiVersionReturnsOnCall[i] = struct { 510 result1 string 511 result2 error 512 }{result1, result2} 513 } 514 515 func (fake *FakeCliConnection) CliCommand(arg1 ...string) ([]string, error) { 516 fake.cliCommandMutex.Lock() 517 ret, specificReturn := fake.cliCommandReturnsOnCall[len(fake.cliCommandArgsForCall)] 518 fake.cliCommandArgsForCall = append(fake.cliCommandArgsForCall, struct { 519 arg1 []string 520 }{arg1}) 521 fake.recordInvocation("CliCommand", []interface{}{arg1}) 522 fake.cliCommandMutex.Unlock() 523 if fake.CliCommandStub != nil { 524 return fake.CliCommandStub(arg1...) 525 } 526 if specificReturn { 527 return ret.result1, ret.result2 528 } 529 fakeReturns := fake.cliCommandReturns 530 return fakeReturns.result1, fakeReturns.result2 531 } 532 533 func (fake *FakeCliConnection) CliCommandCallCount() int { 534 fake.cliCommandMutex.RLock() 535 defer fake.cliCommandMutex.RUnlock() 536 return len(fake.cliCommandArgsForCall) 537 } 538 539 func (fake *FakeCliConnection) CliCommandCalls(stub func(...string) ([]string, error)) { 540 fake.cliCommandMutex.Lock() 541 defer fake.cliCommandMutex.Unlock() 542 fake.CliCommandStub = stub 543 } 544 545 func (fake *FakeCliConnection) CliCommandArgsForCall(i int) []string { 546 fake.cliCommandMutex.RLock() 547 defer fake.cliCommandMutex.RUnlock() 548 argsForCall := fake.cliCommandArgsForCall[i] 549 return argsForCall.arg1 550 } 551 552 func (fake *FakeCliConnection) CliCommandReturns(result1 []string, result2 error) { 553 fake.cliCommandMutex.Lock() 554 defer fake.cliCommandMutex.Unlock() 555 fake.CliCommandStub = nil 556 fake.cliCommandReturns = struct { 557 result1 []string 558 result2 error 559 }{result1, result2} 560 } 561 562 func (fake *FakeCliConnection) CliCommandReturnsOnCall(i int, result1 []string, result2 error) { 563 fake.cliCommandMutex.Lock() 564 defer fake.cliCommandMutex.Unlock() 565 fake.CliCommandStub = nil 566 if fake.cliCommandReturnsOnCall == nil { 567 fake.cliCommandReturnsOnCall = make(map[int]struct { 568 result1 []string 569 result2 error 570 }) 571 } 572 fake.cliCommandReturnsOnCall[i] = struct { 573 result1 []string 574 result2 error 575 }{result1, result2} 576 } 577 578 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutput(arg1 ...string) ([]string, error) { 579 fake.cliCommandWithoutTerminalOutputMutex.Lock() 580 ret, specificReturn := fake.cliCommandWithoutTerminalOutputReturnsOnCall[len(fake.cliCommandWithoutTerminalOutputArgsForCall)] 581 fake.cliCommandWithoutTerminalOutputArgsForCall = append(fake.cliCommandWithoutTerminalOutputArgsForCall, struct { 582 arg1 []string 583 }{arg1}) 584 fake.recordInvocation("CliCommandWithoutTerminalOutput", []interface{}{arg1}) 585 fake.cliCommandWithoutTerminalOutputMutex.Unlock() 586 if fake.CliCommandWithoutTerminalOutputStub != nil { 587 return fake.CliCommandWithoutTerminalOutputStub(arg1...) 588 } 589 if specificReturn { 590 return ret.result1, ret.result2 591 } 592 fakeReturns := fake.cliCommandWithoutTerminalOutputReturns 593 return fakeReturns.result1, fakeReturns.result2 594 } 595 596 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutputCallCount() int { 597 fake.cliCommandWithoutTerminalOutputMutex.RLock() 598 defer fake.cliCommandWithoutTerminalOutputMutex.RUnlock() 599 return len(fake.cliCommandWithoutTerminalOutputArgsForCall) 600 } 601 602 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutputCalls(stub func(...string) ([]string, error)) { 603 fake.cliCommandWithoutTerminalOutputMutex.Lock() 604 defer fake.cliCommandWithoutTerminalOutputMutex.Unlock() 605 fake.CliCommandWithoutTerminalOutputStub = stub 606 } 607 608 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutputArgsForCall(i int) []string { 609 fake.cliCommandWithoutTerminalOutputMutex.RLock() 610 defer fake.cliCommandWithoutTerminalOutputMutex.RUnlock() 611 argsForCall := fake.cliCommandWithoutTerminalOutputArgsForCall[i] 612 return argsForCall.arg1 613 } 614 615 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutputReturns(result1 []string, result2 error) { 616 fake.cliCommandWithoutTerminalOutputMutex.Lock() 617 defer fake.cliCommandWithoutTerminalOutputMutex.Unlock() 618 fake.CliCommandWithoutTerminalOutputStub = nil 619 fake.cliCommandWithoutTerminalOutputReturns = struct { 620 result1 []string 621 result2 error 622 }{result1, result2} 623 } 624 625 func (fake *FakeCliConnection) CliCommandWithoutTerminalOutputReturnsOnCall(i int, result1 []string, result2 error) { 626 fake.cliCommandWithoutTerminalOutputMutex.Lock() 627 defer fake.cliCommandWithoutTerminalOutputMutex.Unlock() 628 fake.CliCommandWithoutTerminalOutputStub = nil 629 if fake.cliCommandWithoutTerminalOutputReturnsOnCall == nil { 630 fake.cliCommandWithoutTerminalOutputReturnsOnCall = make(map[int]struct { 631 result1 []string 632 result2 error 633 }) 634 } 635 fake.cliCommandWithoutTerminalOutputReturnsOnCall[i] = struct { 636 result1 []string 637 result2 error 638 }{result1, result2} 639 } 640 641 func (fake *FakeCliConnection) DopplerEndpoint() (string, error) { 642 fake.dopplerEndpointMutex.Lock() 643 ret, specificReturn := fake.dopplerEndpointReturnsOnCall[len(fake.dopplerEndpointArgsForCall)] 644 fake.dopplerEndpointArgsForCall = append(fake.dopplerEndpointArgsForCall, struct { 645 }{}) 646 fake.recordInvocation("DopplerEndpoint", []interface{}{}) 647 fake.dopplerEndpointMutex.Unlock() 648 if fake.DopplerEndpointStub != nil { 649 return fake.DopplerEndpointStub() 650 } 651 if specificReturn { 652 return ret.result1, ret.result2 653 } 654 fakeReturns := fake.dopplerEndpointReturns 655 return fakeReturns.result1, fakeReturns.result2 656 } 657 658 func (fake *FakeCliConnection) DopplerEndpointCallCount() int { 659 fake.dopplerEndpointMutex.RLock() 660 defer fake.dopplerEndpointMutex.RUnlock() 661 return len(fake.dopplerEndpointArgsForCall) 662 } 663 664 func (fake *FakeCliConnection) DopplerEndpointCalls(stub func() (string, error)) { 665 fake.dopplerEndpointMutex.Lock() 666 defer fake.dopplerEndpointMutex.Unlock() 667 fake.DopplerEndpointStub = stub 668 } 669 670 func (fake *FakeCliConnection) DopplerEndpointReturns(result1 string, result2 error) { 671 fake.dopplerEndpointMutex.Lock() 672 defer fake.dopplerEndpointMutex.Unlock() 673 fake.DopplerEndpointStub = nil 674 fake.dopplerEndpointReturns = struct { 675 result1 string 676 result2 error 677 }{result1, result2} 678 } 679 680 func (fake *FakeCliConnection) DopplerEndpointReturnsOnCall(i int, result1 string, result2 error) { 681 fake.dopplerEndpointMutex.Lock() 682 defer fake.dopplerEndpointMutex.Unlock() 683 fake.DopplerEndpointStub = nil 684 if fake.dopplerEndpointReturnsOnCall == nil { 685 fake.dopplerEndpointReturnsOnCall = make(map[int]struct { 686 result1 string 687 result2 error 688 }) 689 } 690 fake.dopplerEndpointReturnsOnCall[i] = struct { 691 result1 string 692 result2 error 693 }{result1, result2} 694 } 695 696 func (fake *FakeCliConnection) GetApp(arg1 string) (plugin_models.GetAppModel, error) { 697 fake.getAppMutex.Lock() 698 ret, specificReturn := fake.getAppReturnsOnCall[len(fake.getAppArgsForCall)] 699 fake.getAppArgsForCall = append(fake.getAppArgsForCall, struct { 700 arg1 string 701 }{arg1}) 702 fake.recordInvocation("GetApp", []interface{}{arg1}) 703 fake.getAppMutex.Unlock() 704 if fake.GetAppStub != nil { 705 return fake.GetAppStub(arg1) 706 } 707 if specificReturn { 708 return ret.result1, ret.result2 709 } 710 fakeReturns := fake.getAppReturns 711 return fakeReturns.result1, fakeReturns.result2 712 } 713 714 func (fake *FakeCliConnection) GetAppCallCount() int { 715 fake.getAppMutex.RLock() 716 defer fake.getAppMutex.RUnlock() 717 return len(fake.getAppArgsForCall) 718 } 719 720 func (fake *FakeCliConnection) GetAppCalls(stub func(string) (plugin_models.GetAppModel, error)) { 721 fake.getAppMutex.Lock() 722 defer fake.getAppMutex.Unlock() 723 fake.GetAppStub = stub 724 } 725 726 func (fake *FakeCliConnection) GetAppArgsForCall(i int) string { 727 fake.getAppMutex.RLock() 728 defer fake.getAppMutex.RUnlock() 729 argsForCall := fake.getAppArgsForCall[i] 730 return argsForCall.arg1 731 } 732 733 func (fake *FakeCliConnection) GetAppReturns(result1 plugin_models.GetAppModel, result2 error) { 734 fake.getAppMutex.Lock() 735 defer fake.getAppMutex.Unlock() 736 fake.GetAppStub = nil 737 fake.getAppReturns = struct { 738 result1 plugin_models.GetAppModel 739 result2 error 740 }{result1, result2} 741 } 742 743 func (fake *FakeCliConnection) GetAppReturnsOnCall(i int, result1 plugin_models.GetAppModel, result2 error) { 744 fake.getAppMutex.Lock() 745 defer fake.getAppMutex.Unlock() 746 fake.GetAppStub = nil 747 if fake.getAppReturnsOnCall == nil { 748 fake.getAppReturnsOnCall = make(map[int]struct { 749 result1 plugin_models.GetAppModel 750 result2 error 751 }) 752 } 753 fake.getAppReturnsOnCall[i] = struct { 754 result1 plugin_models.GetAppModel 755 result2 error 756 }{result1, result2} 757 } 758 759 func (fake *FakeCliConnection) GetApps() ([]plugin_models.GetAppsModel, error) { 760 fake.getAppsMutex.Lock() 761 ret, specificReturn := fake.getAppsReturnsOnCall[len(fake.getAppsArgsForCall)] 762 fake.getAppsArgsForCall = append(fake.getAppsArgsForCall, struct { 763 }{}) 764 fake.recordInvocation("GetApps", []interface{}{}) 765 fake.getAppsMutex.Unlock() 766 if fake.GetAppsStub != nil { 767 return fake.GetAppsStub() 768 } 769 if specificReturn { 770 return ret.result1, ret.result2 771 } 772 fakeReturns := fake.getAppsReturns 773 return fakeReturns.result1, fakeReturns.result2 774 } 775 776 func (fake *FakeCliConnection) GetAppsCallCount() int { 777 fake.getAppsMutex.RLock() 778 defer fake.getAppsMutex.RUnlock() 779 return len(fake.getAppsArgsForCall) 780 } 781 782 func (fake *FakeCliConnection) GetAppsCalls(stub func() ([]plugin_models.GetAppsModel, error)) { 783 fake.getAppsMutex.Lock() 784 defer fake.getAppsMutex.Unlock() 785 fake.GetAppsStub = stub 786 } 787 788 func (fake *FakeCliConnection) GetAppsReturns(result1 []plugin_models.GetAppsModel, result2 error) { 789 fake.getAppsMutex.Lock() 790 defer fake.getAppsMutex.Unlock() 791 fake.GetAppsStub = nil 792 fake.getAppsReturns = struct { 793 result1 []plugin_models.GetAppsModel 794 result2 error 795 }{result1, result2} 796 } 797 798 func (fake *FakeCliConnection) GetAppsReturnsOnCall(i int, result1 []plugin_models.GetAppsModel, result2 error) { 799 fake.getAppsMutex.Lock() 800 defer fake.getAppsMutex.Unlock() 801 fake.GetAppsStub = nil 802 if fake.getAppsReturnsOnCall == nil { 803 fake.getAppsReturnsOnCall = make(map[int]struct { 804 result1 []plugin_models.GetAppsModel 805 result2 error 806 }) 807 } 808 fake.getAppsReturnsOnCall[i] = struct { 809 result1 []plugin_models.GetAppsModel 810 result2 error 811 }{result1, result2} 812 } 813 814 func (fake *FakeCliConnection) GetCurrentOrg() (plugin_models.Organization, error) { 815 fake.getCurrentOrgMutex.Lock() 816 ret, specificReturn := fake.getCurrentOrgReturnsOnCall[len(fake.getCurrentOrgArgsForCall)] 817 fake.getCurrentOrgArgsForCall = append(fake.getCurrentOrgArgsForCall, struct { 818 }{}) 819 fake.recordInvocation("GetCurrentOrg", []interface{}{}) 820 fake.getCurrentOrgMutex.Unlock() 821 if fake.GetCurrentOrgStub != nil { 822 return fake.GetCurrentOrgStub() 823 } 824 if specificReturn { 825 return ret.result1, ret.result2 826 } 827 fakeReturns := fake.getCurrentOrgReturns 828 return fakeReturns.result1, fakeReturns.result2 829 } 830 831 func (fake *FakeCliConnection) GetCurrentOrgCallCount() int { 832 fake.getCurrentOrgMutex.RLock() 833 defer fake.getCurrentOrgMutex.RUnlock() 834 return len(fake.getCurrentOrgArgsForCall) 835 } 836 837 func (fake *FakeCliConnection) GetCurrentOrgCalls(stub func() (plugin_models.Organization, error)) { 838 fake.getCurrentOrgMutex.Lock() 839 defer fake.getCurrentOrgMutex.Unlock() 840 fake.GetCurrentOrgStub = stub 841 } 842 843 func (fake *FakeCliConnection) GetCurrentOrgReturns(result1 plugin_models.Organization, result2 error) { 844 fake.getCurrentOrgMutex.Lock() 845 defer fake.getCurrentOrgMutex.Unlock() 846 fake.GetCurrentOrgStub = nil 847 fake.getCurrentOrgReturns = struct { 848 result1 plugin_models.Organization 849 result2 error 850 }{result1, result2} 851 } 852 853 func (fake *FakeCliConnection) GetCurrentOrgReturnsOnCall(i int, result1 plugin_models.Organization, result2 error) { 854 fake.getCurrentOrgMutex.Lock() 855 defer fake.getCurrentOrgMutex.Unlock() 856 fake.GetCurrentOrgStub = nil 857 if fake.getCurrentOrgReturnsOnCall == nil { 858 fake.getCurrentOrgReturnsOnCall = make(map[int]struct { 859 result1 plugin_models.Organization 860 result2 error 861 }) 862 } 863 fake.getCurrentOrgReturnsOnCall[i] = struct { 864 result1 plugin_models.Organization 865 result2 error 866 }{result1, result2} 867 } 868 869 func (fake *FakeCliConnection) GetCurrentSpace() (plugin_models.Space, error) { 870 fake.getCurrentSpaceMutex.Lock() 871 ret, specificReturn := fake.getCurrentSpaceReturnsOnCall[len(fake.getCurrentSpaceArgsForCall)] 872 fake.getCurrentSpaceArgsForCall = append(fake.getCurrentSpaceArgsForCall, struct { 873 }{}) 874 fake.recordInvocation("GetCurrentSpace", []interface{}{}) 875 fake.getCurrentSpaceMutex.Unlock() 876 if fake.GetCurrentSpaceStub != nil { 877 return fake.GetCurrentSpaceStub() 878 } 879 if specificReturn { 880 return ret.result1, ret.result2 881 } 882 fakeReturns := fake.getCurrentSpaceReturns 883 return fakeReturns.result1, fakeReturns.result2 884 } 885 886 func (fake *FakeCliConnection) GetCurrentSpaceCallCount() int { 887 fake.getCurrentSpaceMutex.RLock() 888 defer fake.getCurrentSpaceMutex.RUnlock() 889 return len(fake.getCurrentSpaceArgsForCall) 890 } 891 892 func (fake *FakeCliConnection) GetCurrentSpaceCalls(stub func() (plugin_models.Space, error)) { 893 fake.getCurrentSpaceMutex.Lock() 894 defer fake.getCurrentSpaceMutex.Unlock() 895 fake.GetCurrentSpaceStub = stub 896 } 897 898 func (fake *FakeCliConnection) GetCurrentSpaceReturns(result1 plugin_models.Space, result2 error) { 899 fake.getCurrentSpaceMutex.Lock() 900 defer fake.getCurrentSpaceMutex.Unlock() 901 fake.GetCurrentSpaceStub = nil 902 fake.getCurrentSpaceReturns = struct { 903 result1 plugin_models.Space 904 result2 error 905 }{result1, result2} 906 } 907 908 func (fake *FakeCliConnection) GetCurrentSpaceReturnsOnCall(i int, result1 plugin_models.Space, result2 error) { 909 fake.getCurrentSpaceMutex.Lock() 910 defer fake.getCurrentSpaceMutex.Unlock() 911 fake.GetCurrentSpaceStub = nil 912 if fake.getCurrentSpaceReturnsOnCall == nil { 913 fake.getCurrentSpaceReturnsOnCall = make(map[int]struct { 914 result1 plugin_models.Space 915 result2 error 916 }) 917 } 918 fake.getCurrentSpaceReturnsOnCall[i] = struct { 919 result1 plugin_models.Space 920 result2 error 921 }{result1, result2} 922 } 923 924 func (fake *FakeCliConnection) GetOrg(arg1 string) (plugin_models.GetOrg_Model, error) { 925 fake.getOrgMutex.Lock() 926 ret, specificReturn := fake.getOrgReturnsOnCall[len(fake.getOrgArgsForCall)] 927 fake.getOrgArgsForCall = append(fake.getOrgArgsForCall, struct { 928 arg1 string 929 }{arg1}) 930 fake.recordInvocation("GetOrg", []interface{}{arg1}) 931 fake.getOrgMutex.Unlock() 932 if fake.GetOrgStub != nil { 933 return fake.GetOrgStub(arg1) 934 } 935 if specificReturn { 936 return ret.result1, ret.result2 937 } 938 fakeReturns := fake.getOrgReturns 939 return fakeReturns.result1, fakeReturns.result2 940 } 941 942 func (fake *FakeCliConnection) GetOrgCallCount() int { 943 fake.getOrgMutex.RLock() 944 defer fake.getOrgMutex.RUnlock() 945 return len(fake.getOrgArgsForCall) 946 } 947 948 func (fake *FakeCliConnection) GetOrgCalls(stub func(string) (plugin_models.GetOrg_Model, error)) { 949 fake.getOrgMutex.Lock() 950 defer fake.getOrgMutex.Unlock() 951 fake.GetOrgStub = stub 952 } 953 954 func (fake *FakeCliConnection) GetOrgArgsForCall(i int) string { 955 fake.getOrgMutex.RLock() 956 defer fake.getOrgMutex.RUnlock() 957 argsForCall := fake.getOrgArgsForCall[i] 958 return argsForCall.arg1 959 } 960 961 func (fake *FakeCliConnection) GetOrgReturns(result1 plugin_models.GetOrg_Model, result2 error) { 962 fake.getOrgMutex.Lock() 963 defer fake.getOrgMutex.Unlock() 964 fake.GetOrgStub = nil 965 fake.getOrgReturns = struct { 966 result1 plugin_models.GetOrg_Model 967 result2 error 968 }{result1, result2} 969 } 970 971 func (fake *FakeCliConnection) GetOrgReturnsOnCall(i int, result1 plugin_models.GetOrg_Model, result2 error) { 972 fake.getOrgMutex.Lock() 973 defer fake.getOrgMutex.Unlock() 974 fake.GetOrgStub = nil 975 if fake.getOrgReturnsOnCall == nil { 976 fake.getOrgReturnsOnCall = make(map[int]struct { 977 result1 plugin_models.GetOrg_Model 978 result2 error 979 }) 980 } 981 fake.getOrgReturnsOnCall[i] = struct { 982 result1 plugin_models.GetOrg_Model 983 result2 error 984 }{result1, result2} 985 } 986 987 func (fake *FakeCliConnection) GetOrgUsers(arg1 string, arg2 ...string) ([]plugin_models.GetOrgUsers_Model, error) { 988 fake.getOrgUsersMutex.Lock() 989 ret, specificReturn := fake.getOrgUsersReturnsOnCall[len(fake.getOrgUsersArgsForCall)] 990 fake.getOrgUsersArgsForCall = append(fake.getOrgUsersArgsForCall, struct { 991 arg1 string 992 arg2 []string 993 }{arg1, arg2}) 994 fake.recordInvocation("GetOrgUsers", []interface{}{arg1, arg2}) 995 fake.getOrgUsersMutex.Unlock() 996 if fake.GetOrgUsersStub != nil { 997 return fake.GetOrgUsersStub(arg1, arg2...) 998 } 999 if specificReturn { 1000 return ret.result1, ret.result2 1001 } 1002 fakeReturns := fake.getOrgUsersReturns 1003 return fakeReturns.result1, fakeReturns.result2 1004 } 1005 1006 func (fake *FakeCliConnection) GetOrgUsersCallCount() int { 1007 fake.getOrgUsersMutex.RLock() 1008 defer fake.getOrgUsersMutex.RUnlock() 1009 return len(fake.getOrgUsersArgsForCall) 1010 } 1011 1012 func (fake *FakeCliConnection) GetOrgUsersCalls(stub func(string, ...string) ([]plugin_models.GetOrgUsers_Model, error)) { 1013 fake.getOrgUsersMutex.Lock() 1014 defer fake.getOrgUsersMutex.Unlock() 1015 fake.GetOrgUsersStub = stub 1016 } 1017 1018 func (fake *FakeCliConnection) GetOrgUsersArgsForCall(i int) (string, []string) { 1019 fake.getOrgUsersMutex.RLock() 1020 defer fake.getOrgUsersMutex.RUnlock() 1021 argsForCall := fake.getOrgUsersArgsForCall[i] 1022 return argsForCall.arg1, argsForCall.arg2 1023 } 1024 1025 func (fake *FakeCliConnection) GetOrgUsersReturns(result1 []plugin_models.GetOrgUsers_Model, result2 error) { 1026 fake.getOrgUsersMutex.Lock() 1027 defer fake.getOrgUsersMutex.Unlock() 1028 fake.GetOrgUsersStub = nil 1029 fake.getOrgUsersReturns = struct { 1030 result1 []plugin_models.GetOrgUsers_Model 1031 result2 error 1032 }{result1, result2} 1033 } 1034 1035 func (fake *FakeCliConnection) GetOrgUsersReturnsOnCall(i int, result1 []plugin_models.GetOrgUsers_Model, result2 error) { 1036 fake.getOrgUsersMutex.Lock() 1037 defer fake.getOrgUsersMutex.Unlock() 1038 fake.GetOrgUsersStub = nil 1039 if fake.getOrgUsersReturnsOnCall == nil { 1040 fake.getOrgUsersReturnsOnCall = make(map[int]struct { 1041 result1 []plugin_models.GetOrgUsers_Model 1042 result2 error 1043 }) 1044 } 1045 fake.getOrgUsersReturnsOnCall[i] = struct { 1046 result1 []plugin_models.GetOrgUsers_Model 1047 result2 error 1048 }{result1, result2} 1049 } 1050 1051 func (fake *FakeCliConnection) GetOrgs() ([]plugin_models.GetOrgs_Model, error) { 1052 fake.getOrgsMutex.Lock() 1053 ret, specificReturn := fake.getOrgsReturnsOnCall[len(fake.getOrgsArgsForCall)] 1054 fake.getOrgsArgsForCall = append(fake.getOrgsArgsForCall, struct { 1055 }{}) 1056 fake.recordInvocation("GetOrgs", []interface{}{}) 1057 fake.getOrgsMutex.Unlock() 1058 if fake.GetOrgsStub != nil { 1059 return fake.GetOrgsStub() 1060 } 1061 if specificReturn { 1062 return ret.result1, ret.result2 1063 } 1064 fakeReturns := fake.getOrgsReturns 1065 return fakeReturns.result1, fakeReturns.result2 1066 } 1067 1068 func (fake *FakeCliConnection) GetOrgsCallCount() int { 1069 fake.getOrgsMutex.RLock() 1070 defer fake.getOrgsMutex.RUnlock() 1071 return len(fake.getOrgsArgsForCall) 1072 } 1073 1074 func (fake *FakeCliConnection) GetOrgsCalls(stub func() ([]plugin_models.GetOrgs_Model, error)) { 1075 fake.getOrgsMutex.Lock() 1076 defer fake.getOrgsMutex.Unlock() 1077 fake.GetOrgsStub = stub 1078 } 1079 1080 func (fake *FakeCliConnection) GetOrgsReturns(result1 []plugin_models.GetOrgs_Model, result2 error) { 1081 fake.getOrgsMutex.Lock() 1082 defer fake.getOrgsMutex.Unlock() 1083 fake.GetOrgsStub = nil 1084 fake.getOrgsReturns = struct { 1085 result1 []plugin_models.GetOrgs_Model 1086 result2 error 1087 }{result1, result2} 1088 } 1089 1090 func (fake *FakeCliConnection) GetOrgsReturnsOnCall(i int, result1 []plugin_models.GetOrgs_Model, result2 error) { 1091 fake.getOrgsMutex.Lock() 1092 defer fake.getOrgsMutex.Unlock() 1093 fake.GetOrgsStub = nil 1094 if fake.getOrgsReturnsOnCall == nil { 1095 fake.getOrgsReturnsOnCall = make(map[int]struct { 1096 result1 []plugin_models.GetOrgs_Model 1097 result2 error 1098 }) 1099 } 1100 fake.getOrgsReturnsOnCall[i] = struct { 1101 result1 []plugin_models.GetOrgs_Model 1102 result2 error 1103 }{result1, result2} 1104 } 1105 1106 func (fake *FakeCliConnection) GetService(arg1 string) (plugin_models.GetService_Model, error) { 1107 fake.getServiceMutex.Lock() 1108 ret, specificReturn := fake.getServiceReturnsOnCall[len(fake.getServiceArgsForCall)] 1109 fake.getServiceArgsForCall = append(fake.getServiceArgsForCall, struct { 1110 arg1 string 1111 }{arg1}) 1112 fake.recordInvocation("GetService", []interface{}{arg1}) 1113 fake.getServiceMutex.Unlock() 1114 if fake.GetServiceStub != nil { 1115 return fake.GetServiceStub(arg1) 1116 } 1117 if specificReturn { 1118 return ret.result1, ret.result2 1119 } 1120 fakeReturns := fake.getServiceReturns 1121 return fakeReturns.result1, fakeReturns.result2 1122 } 1123 1124 func (fake *FakeCliConnection) GetServiceCallCount() int { 1125 fake.getServiceMutex.RLock() 1126 defer fake.getServiceMutex.RUnlock() 1127 return len(fake.getServiceArgsForCall) 1128 } 1129 1130 func (fake *FakeCliConnection) GetServiceCalls(stub func(string) (plugin_models.GetService_Model, error)) { 1131 fake.getServiceMutex.Lock() 1132 defer fake.getServiceMutex.Unlock() 1133 fake.GetServiceStub = stub 1134 } 1135 1136 func (fake *FakeCliConnection) GetServiceArgsForCall(i int) string { 1137 fake.getServiceMutex.RLock() 1138 defer fake.getServiceMutex.RUnlock() 1139 argsForCall := fake.getServiceArgsForCall[i] 1140 return argsForCall.arg1 1141 } 1142 1143 func (fake *FakeCliConnection) GetServiceReturns(result1 plugin_models.GetService_Model, result2 error) { 1144 fake.getServiceMutex.Lock() 1145 defer fake.getServiceMutex.Unlock() 1146 fake.GetServiceStub = nil 1147 fake.getServiceReturns = struct { 1148 result1 plugin_models.GetService_Model 1149 result2 error 1150 }{result1, result2} 1151 } 1152 1153 func (fake *FakeCliConnection) GetServiceReturnsOnCall(i int, result1 plugin_models.GetService_Model, result2 error) { 1154 fake.getServiceMutex.Lock() 1155 defer fake.getServiceMutex.Unlock() 1156 fake.GetServiceStub = nil 1157 if fake.getServiceReturnsOnCall == nil { 1158 fake.getServiceReturnsOnCall = make(map[int]struct { 1159 result1 plugin_models.GetService_Model 1160 result2 error 1161 }) 1162 } 1163 fake.getServiceReturnsOnCall[i] = struct { 1164 result1 plugin_models.GetService_Model 1165 result2 error 1166 }{result1, result2} 1167 } 1168 1169 func (fake *FakeCliConnection) GetServices() ([]plugin_models.GetServices_Model, error) { 1170 fake.getServicesMutex.Lock() 1171 ret, specificReturn := fake.getServicesReturnsOnCall[len(fake.getServicesArgsForCall)] 1172 fake.getServicesArgsForCall = append(fake.getServicesArgsForCall, struct { 1173 }{}) 1174 fake.recordInvocation("GetServices", []interface{}{}) 1175 fake.getServicesMutex.Unlock() 1176 if fake.GetServicesStub != nil { 1177 return fake.GetServicesStub() 1178 } 1179 if specificReturn { 1180 return ret.result1, ret.result2 1181 } 1182 fakeReturns := fake.getServicesReturns 1183 return fakeReturns.result1, fakeReturns.result2 1184 } 1185 1186 func (fake *FakeCliConnection) GetServicesCallCount() int { 1187 fake.getServicesMutex.RLock() 1188 defer fake.getServicesMutex.RUnlock() 1189 return len(fake.getServicesArgsForCall) 1190 } 1191 1192 func (fake *FakeCliConnection) GetServicesCalls(stub func() ([]plugin_models.GetServices_Model, error)) { 1193 fake.getServicesMutex.Lock() 1194 defer fake.getServicesMutex.Unlock() 1195 fake.GetServicesStub = stub 1196 } 1197 1198 func (fake *FakeCliConnection) GetServicesReturns(result1 []plugin_models.GetServices_Model, result2 error) { 1199 fake.getServicesMutex.Lock() 1200 defer fake.getServicesMutex.Unlock() 1201 fake.GetServicesStub = nil 1202 fake.getServicesReturns = struct { 1203 result1 []plugin_models.GetServices_Model 1204 result2 error 1205 }{result1, result2} 1206 } 1207 1208 func (fake *FakeCliConnection) GetServicesReturnsOnCall(i int, result1 []plugin_models.GetServices_Model, result2 error) { 1209 fake.getServicesMutex.Lock() 1210 defer fake.getServicesMutex.Unlock() 1211 fake.GetServicesStub = nil 1212 if fake.getServicesReturnsOnCall == nil { 1213 fake.getServicesReturnsOnCall = make(map[int]struct { 1214 result1 []plugin_models.GetServices_Model 1215 result2 error 1216 }) 1217 } 1218 fake.getServicesReturnsOnCall[i] = struct { 1219 result1 []plugin_models.GetServices_Model 1220 result2 error 1221 }{result1, result2} 1222 } 1223 1224 func (fake *FakeCliConnection) GetSpace(arg1 string) (plugin_models.GetSpace_Model, error) { 1225 fake.getSpaceMutex.Lock() 1226 ret, specificReturn := fake.getSpaceReturnsOnCall[len(fake.getSpaceArgsForCall)] 1227 fake.getSpaceArgsForCall = append(fake.getSpaceArgsForCall, struct { 1228 arg1 string 1229 }{arg1}) 1230 fake.recordInvocation("GetSpace", []interface{}{arg1}) 1231 fake.getSpaceMutex.Unlock() 1232 if fake.GetSpaceStub != nil { 1233 return fake.GetSpaceStub(arg1) 1234 } 1235 if specificReturn { 1236 return ret.result1, ret.result2 1237 } 1238 fakeReturns := fake.getSpaceReturns 1239 return fakeReturns.result1, fakeReturns.result2 1240 } 1241 1242 func (fake *FakeCliConnection) GetSpaceCallCount() int { 1243 fake.getSpaceMutex.RLock() 1244 defer fake.getSpaceMutex.RUnlock() 1245 return len(fake.getSpaceArgsForCall) 1246 } 1247 1248 func (fake *FakeCliConnection) GetSpaceCalls(stub func(string) (plugin_models.GetSpace_Model, error)) { 1249 fake.getSpaceMutex.Lock() 1250 defer fake.getSpaceMutex.Unlock() 1251 fake.GetSpaceStub = stub 1252 } 1253 1254 func (fake *FakeCliConnection) GetSpaceArgsForCall(i int) string { 1255 fake.getSpaceMutex.RLock() 1256 defer fake.getSpaceMutex.RUnlock() 1257 argsForCall := fake.getSpaceArgsForCall[i] 1258 return argsForCall.arg1 1259 } 1260 1261 func (fake *FakeCliConnection) GetSpaceReturns(result1 plugin_models.GetSpace_Model, result2 error) { 1262 fake.getSpaceMutex.Lock() 1263 defer fake.getSpaceMutex.Unlock() 1264 fake.GetSpaceStub = nil 1265 fake.getSpaceReturns = struct { 1266 result1 plugin_models.GetSpace_Model 1267 result2 error 1268 }{result1, result2} 1269 } 1270 1271 func (fake *FakeCliConnection) GetSpaceReturnsOnCall(i int, result1 plugin_models.GetSpace_Model, result2 error) { 1272 fake.getSpaceMutex.Lock() 1273 defer fake.getSpaceMutex.Unlock() 1274 fake.GetSpaceStub = nil 1275 if fake.getSpaceReturnsOnCall == nil { 1276 fake.getSpaceReturnsOnCall = make(map[int]struct { 1277 result1 plugin_models.GetSpace_Model 1278 result2 error 1279 }) 1280 } 1281 fake.getSpaceReturnsOnCall[i] = struct { 1282 result1 plugin_models.GetSpace_Model 1283 result2 error 1284 }{result1, result2} 1285 } 1286 1287 func (fake *FakeCliConnection) GetSpaceUsers(arg1 string, arg2 string) ([]plugin_models.GetSpaceUsers_Model, error) { 1288 fake.getSpaceUsersMutex.Lock() 1289 ret, specificReturn := fake.getSpaceUsersReturnsOnCall[len(fake.getSpaceUsersArgsForCall)] 1290 fake.getSpaceUsersArgsForCall = append(fake.getSpaceUsersArgsForCall, struct { 1291 arg1 string 1292 arg2 string 1293 }{arg1, arg2}) 1294 fake.recordInvocation("GetSpaceUsers", []interface{}{arg1, arg2}) 1295 fake.getSpaceUsersMutex.Unlock() 1296 if fake.GetSpaceUsersStub != nil { 1297 return fake.GetSpaceUsersStub(arg1, arg2) 1298 } 1299 if specificReturn { 1300 return ret.result1, ret.result2 1301 } 1302 fakeReturns := fake.getSpaceUsersReturns 1303 return fakeReturns.result1, fakeReturns.result2 1304 } 1305 1306 func (fake *FakeCliConnection) GetSpaceUsersCallCount() int { 1307 fake.getSpaceUsersMutex.RLock() 1308 defer fake.getSpaceUsersMutex.RUnlock() 1309 return len(fake.getSpaceUsersArgsForCall) 1310 } 1311 1312 func (fake *FakeCliConnection) GetSpaceUsersCalls(stub func(string, string) ([]plugin_models.GetSpaceUsers_Model, error)) { 1313 fake.getSpaceUsersMutex.Lock() 1314 defer fake.getSpaceUsersMutex.Unlock() 1315 fake.GetSpaceUsersStub = stub 1316 } 1317 1318 func (fake *FakeCliConnection) GetSpaceUsersArgsForCall(i int) (string, string) { 1319 fake.getSpaceUsersMutex.RLock() 1320 defer fake.getSpaceUsersMutex.RUnlock() 1321 argsForCall := fake.getSpaceUsersArgsForCall[i] 1322 return argsForCall.arg1, argsForCall.arg2 1323 } 1324 1325 func (fake *FakeCliConnection) GetSpaceUsersReturns(result1 []plugin_models.GetSpaceUsers_Model, result2 error) { 1326 fake.getSpaceUsersMutex.Lock() 1327 defer fake.getSpaceUsersMutex.Unlock() 1328 fake.GetSpaceUsersStub = nil 1329 fake.getSpaceUsersReturns = struct { 1330 result1 []plugin_models.GetSpaceUsers_Model 1331 result2 error 1332 }{result1, result2} 1333 } 1334 1335 func (fake *FakeCliConnection) GetSpaceUsersReturnsOnCall(i int, result1 []plugin_models.GetSpaceUsers_Model, result2 error) { 1336 fake.getSpaceUsersMutex.Lock() 1337 defer fake.getSpaceUsersMutex.Unlock() 1338 fake.GetSpaceUsersStub = nil 1339 if fake.getSpaceUsersReturnsOnCall == nil { 1340 fake.getSpaceUsersReturnsOnCall = make(map[int]struct { 1341 result1 []plugin_models.GetSpaceUsers_Model 1342 result2 error 1343 }) 1344 } 1345 fake.getSpaceUsersReturnsOnCall[i] = struct { 1346 result1 []plugin_models.GetSpaceUsers_Model 1347 result2 error 1348 }{result1, result2} 1349 } 1350 1351 func (fake *FakeCliConnection) GetSpaces() ([]plugin_models.GetSpaces_Model, error) { 1352 fake.getSpacesMutex.Lock() 1353 ret, specificReturn := fake.getSpacesReturnsOnCall[len(fake.getSpacesArgsForCall)] 1354 fake.getSpacesArgsForCall = append(fake.getSpacesArgsForCall, struct { 1355 }{}) 1356 fake.recordInvocation("GetSpaces", []interface{}{}) 1357 fake.getSpacesMutex.Unlock() 1358 if fake.GetSpacesStub != nil { 1359 return fake.GetSpacesStub() 1360 } 1361 if specificReturn { 1362 return ret.result1, ret.result2 1363 } 1364 fakeReturns := fake.getSpacesReturns 1365 return fakeReturns.result1, fakeReturns.result2 1366 } 1367 1368 func (fake *FakeCliConnection) GetSpacesCallCount() int { 1369 fake.getSpacesMutex.RLock() 1370 defer fake.getSpacesMutex.RUnlock() 1371 return len(fake.getSpacesArgsForCall) 1372 } 1373 1374 func (fake *FakeCliConnection) GetSpacesCalls(stub func() ([]plugin_models.GetSpaces_Model, error)) { 1375 fake.getSpacesMutex.Lock() 1376 defer fake.getSpacesMutex.Unlock() 1377 fake.GetSpacesStub = stub 1378 } 1379 1380 func (fake *FakeCliConnection) GetSpacesReturns(result1 []plugin_models.GetSpaces_Model, result2 error) { 1381 fake.getSpacesMutex.Lock() 1382 defer fake.getSpacesMutex.Unlock() 1383 fake.GetSpacesStub = nil 1384 fake.getSpacesReturns = struct { 1385 result1 []plugin_models.GetSpaces_Model 1386 result2 error 1387 }{result1, result2} 1388 } 1389 1390 func (fake *FakeCliConnection) GetSpacesReturnsOnCall(i int, result1 []plugin_models.GetSpaces_Model, result2 error) { 1391 fake.getSpacesMutex.Lock() 1392 defer fake.getSpacesMutex.Unlock() 1393 fake.GetSpacesStub = nil 1394 if fake.getSpacesReturnsOnCall == nil { 1395 fake.getSpacesReturnsOnCall = make(map[int]struct { 1396 result1 []plugin_models.GetSpaces_Model 1397 result2 error 1398 }) 1399 } 1400 fake.getSpacesReturnsOnCall[i] = struct { 1401 result1 []plugin_models.GetSpaces_Model 1402 result2 error 1403 }{result1, result2} 1404 } 1405 1406 func (fake *FakeCliConnection) HasAPIEndpoint() (bool, error) { 1407 fake.hasAPIEndpointMutex.Lock() 1408 ret, specificReturn := fake.hasAPIEndpointReturnsOnCall[len(fake.hasAPIEndpointArgsForCall)] 1409 fake.hasAPIEndpointArgsForCall = append(fake.hasAPIEndpointArgsForCall, struct { 1410 }{}) 1411 fake.recordInvocation("HasAPIEndpoint", []interface{}{}) 1412 fake.hasAPIEndpointMutex.Unlock() 1413 if fake.HasAPIEndpointStub != nil { 1414 return fake.HasAPIEndpointStub() 1415 } 1416 if specificReturn { 1417 return ret.result1, ret.result2 1418 } 1419 fakeReturns := fake.hasAPIEndpointReturns 1420 return fakeReturns.result1, fakeReturns.result2 1421 } 1422 1423 func (fake *FakeCliConnection) HasAPIEndpointCallCount() int { 1424 fake.hasAPIEndpointMutex.RLock() 1425 defer fake.hasAPIEndpointMutex.RUnlock() 1426 return len(fake.hasAPIEndpointArgsForCall) 1427 } 1428 1429 func (fake *FakeCliConnection) HasAPIEndpointCalls(stub func() (bool, error)) { 1430 fake.hasAPIEndpointMutex.Lock() 1431 defer fake.hasAPIEndpointMutex.Unlock() 1432 fake.HasAPIEndpointStub = stub 1433 } 1434 1435 func (fake *FakeCliConnection) HasAPIEndpointReturns(result1 bool, result2 error) { 1436 fake.hasAPIEndpointMutex.Lock() 1437 defer fake.hasAPIEndpointMutex.Unlock() 1438 fake.HasAPIEndpointStub = nil 1439 fake.hasAPIEndpointReturns = struct { 1440 result1 bool 1441 result2 error 1442 }{result1, result2} 1443 } 1444 1445 func (fake *FakeCliConnection) HasAPIEndpointReturnsOnCall(i int, result1 bool, result2 error) { 1446 fake.hasAPIEndpointMutex.Lock() 1447 defer fake.hasAPIEndpointMutex.Unlock() 1448 fake.HasAPIEndpointStub = nil 1449 if fake.hasAPIEndpointReturnsOnCall == nil { 1450 fake.hasAPIEndpointReturnsOnCall = make(map[int]struct { 1451 result1 bool 1452 result2 error 1453 }) 1454 } 1455 fake.hasAPIEndpointReturnsOnCall[i] = struct { 1456 result1 bool 1457 result2 error 1458 }{result1, result2} 1459 } 1460 1461 func (fake *FakeCliConnection) HasOrganization() (bool, error) { 1462 fake.hasOrganizationMutex.Lock() 1463 ret, specificReturn := fake.hasOrganizationReturnsOnCall[len(fake.hasOrganizationArgsForCall)] 1464 fake.hasOrganizationArgsForCall = append(fake.hasOrganizationArgsForCall, struct { 1465 }{}) 1466 fake.recordInvocation("HasOrganization", []interface{}{}) 1467 fake.hasOrganizationMutex.Unlock() 1468 if fake.HasOrganizationStub != nil { 1469 return fake.HasOrganizationStub() 1470 } 1471 if specificReturn { 1472 return ret.result1, ret.result2 1473 } 1474 fakeReturns := fake.hasOrganizationReturns 1475 return fakeReturns.result1, fakeReturns.result2 1476 } 1477 1478 func (fake *FakeCliConnection) HasOrganizationCallCount() int { 1479 fake.hasOrganizationMutex.RLock() 1480 defer fake.hasOrganizationMutex.RUnlock() 1481 return len(fake.hasOrganizationArgsForCall) 1482 } 1483 1484 func (fake *FakeCliConnection) HasOrganizationCalls(stub func() (bool, error)) { 1485 fake.hasOrganizationMutex.Lock() 1486 defer fake.hasOrganizationMutex.Unlock() 1487 fake.HasOrganizationStub = stub 1488 } 1489 1490 func (fake *FakeCliConnection) HasOrganizationReturns(result1 bool, result2 error) { 1491 fake.hasOrganizationMutex.Lock() 1492 defer fake.hasOrganizationMutex.Unlock() 1493 fake.HasOrganizationStub = nil 1494 fake.hasOrganizationReturns = struct { 1495 result1 bool 1496 result2 error 1497 }{result1, result2} 1498 } 1499 1500 func (fake *FakeCliConnection) HasOrganizationReturnsOnCall(i int, result1 bool, result2 error) { 1501 fake.hasOrganizationMutex.Lock() 1502 defer fake.hasOrganizationMutex.Unlock() 1503 fake.HasOrganizationStub = nil 1504 if fake.hasOrganizationReturnsOnCall == nil { 1505 fake.hasOrganizationReturnsOnCall = make(map[int]struct { 1506 result1 bool 1507 result2 error 1508 }) 1509 } 1510 fake.hasOrganizationReturnsOnCall[i] = struct { 1511 result1 bool 1512 result2 error 1513 }{result1, result2} 1514 } 1515 1516 func (fake *FakeCliConnection) HasSpace() (bool, error) { 1517 fake.hasSpaceMutex.Lock() 1518 ret, specificReturn := fake.hasSpaceReturnsOnCall[len(fake.hasSpaceArgsForCall)] 1519 fake.hasSpaceArgsForCall = append(fake.hasSpaceArgsForCall, struct { 1520 }{}) 1521 fake.recordInvocation("HasSpace", []interface{}{}) 1522 fake.hasSpaceMutex.Unlock() 1523 if fake.HasSpaceStub != nil { 1524 return fake.HasSpaceStub() 1525 } 1526 if specificReturn { 1527 return ret.result1, ret.result2 1528 } 1529 fakeReturns := fake.hasSpaceReturns 1530 return fakeReturns.result1, fakeReturns.result2 1531 } 1532 1533 func (fake *FakeCliConnection) HasSpaceCallCount() int { 1534 fake.hasSpaceMutex.RLock() 1535 defer fake.hasSpaceMutex.RUnlock() 1536 return len(fake.hasSpaceArgsForCall) 1537 } 1538 1539 func (fake *FakeCliConnection) HasSpaceCalls(stub func() (bool, error)) { 1540 fake.hasSpaceMutex.Lock() 1541 defer fake.hasSpaceMutex.Unlock() 1542 fake.HasSpaceStub = stub 1543 } 1544 1545 func (fake *FakeCliConnection) HasSpaceReturns(result1 bool, result2 error) { 1546 fake.hasSpaceMutex.Lock() 1547 defer fake.hasSpaceMutex.Unlock() 1548 fake.HasSpaceStub = nil 1549 fake.hasSpaceReturns = struct { 1550 result1 bool 1551 result2 error 1552 }{result1, result2} 1553 } 1554 1555 func (fake *FakeCliConnection) HasSpaceReturnsOnCall(i int, result1 bool, result2 error) { 1556 fake.hasSpaceMutex.Lock() 1557 defer fake.hasSpaceMutex.Unlock() 1558 fake.HasSpaceStub = nil 1559 if fake.hasSpaceReturnsOnCall == nil { 1560 fake.hasSpaceReturnsOnCall = make(map[int]struct { 1561 result1 bool 1562 result2 error 1563 }) 1564 } 1565 fake.hasSpaceReturnsOnCall[i] = struct { 1566 result1 bool 1567 result2 error 1568 }{result1, result2} 1569 } 1570 1571 func (fake *FakeCliConnection) IsLoggedIn() (bool, error) { 1572 fake.isLoggedInMutex.Lock() 1573 ret, specificReturn := fake.isLoggedInReturnsOnCall[len(fake.isLoggedInArgsForCall)] 1574 fake.isLoggedInArgsForCall = append(fake.isLoggedInArgsForCall, struct { 1575 }{}) 1576 fake.recordInvocation("IsLoggedIn", []interface{}{}) 1577 fake.isLoggedInMutex.Unlock() 1578 if fake.IsLoggedInStub != nil { 1579 return fake.IsLoggedInStub() 1580 } 1581 if specificReturn { 1582 return ret.result1, ret.result2 1583 } 1584 fakeReturns := fake.isLoggedInReturns 1585 return fakeReturns.result1, fakeReturns.result2 1586 } 1587 1588 func (fake *FakeCliConnection) IsLoggedInCallCount() int { 1589 fake.isLoggedInMutex.RLock() 1590 defer fake.isLoggedInMutex.RUnlock() 1591 return len(fake.isLoggedInArgsForCall) 1592 } 1593 1594 func (fake *FakeCliConnection) IsLoggedInCalls(stub func() (bool, error)) { 1595 fake.isLoggedInMutex.Lock() 1596 defer fake.isLoggedInMutex.Unlock() 1597 fake.IsLoggedInStub = stub 1598 } 1599 1600 func (fake *FakeCliConnection) IsLoggedInReturns(result1 bool, result2 error) { 1601 fake.isLoggedInMutex.Lock() 1602 defer fake.isLoggedInMutex.Unlock() 1603 fake.IsLoggedInStub = nil 1604 fake.isLoggedInReturns = struct { 1605 result1 bool 1606 result2 error 1607 }{result1, result2} 1608 } 1609 1610 func (fake *FakeCliConnection) IsLoggedInReturnsOnCall(i int, result1 bool, result2 error) { 1611 fake.isLoggedInMutex.Lock() 1612 defer fake.isLoggedInMutex.Unlock() 1613 fake.IsLoggedInStub = nil 1614 if fake.isLoggedInReturnsOnCall == nil { 1615 fake.isLoggedInReturnsOnCall = make(map[int]struct { 1616 result1 bool 1617 result2 error 1618 }) 1619 } 1620 fake.isLoggedInReturnsOnCall[i] = struct { 1621 result1 bool 1622 result2 error 1623 }{result1, result2} 1624 } 1625 1626 func (fake *FakeCliConnection) IsSSLDisabled() (bool, error) { 1627 fake.isSSLDisabledMutex.Lock() 1628 ret, specificReturn := fake.isSSLDisabledReturnsOnCall[len(fake.isSSLDisabledArgsForCall)] 1629 fake.isSSLDisabledArgsForCall = append(fake.isSSLDisabledArgsForCall, struct { 1630 }{}) 1631 fake.recordInvocation("IsSSLDisabled", []interface{}{}) 1632 fake.isSSLDisabledMutex.Unlock() 1633 if fake.IsSSLDisabledStub != nil { 1634 return fake.IsSSLDisabledStub() 1635 } 1636 if specificReturn { 1637 return ret.result1, ret.result2 1638 } 1639 fakeReturns := fake.isSSLDisabledReturns 1640 return fakeReturns.result1, fakeReturns.result2 1641 } 1642 1643 func (fake *FakeCliConnection) IsSSLDisabledCallCount() int { 1644 fake.isSSLDisabledMutex.RLock() 1645 defer fake.isSSLDisabledMutex.RUnlock() 1646 return len(fake.isSSLDisabledArgsForCall) 1647 } 1648 1649 func (fake *FakeCliConnection) IsSSLDisabledCalls(stub func() (bool, error)) { 1650 fake.isSSLDisabledMutex.Lock() 1651 defer fake.isSSLDisabledMutex.Unlock() 1652 fake.IsSSLDisabledStub = stub 1653 } 1654 1655 func (fake *FakeCliConnection) IsSSLDisabledReturns(result1 bool, result2 error) { 1656 fake.isSSLDisabledMutex.Lock() 1657 defer fake.isSSLDisabledMutex.Unlock() 1658 fake.IsSSLDisabledStub = nil 1659 fake.isSSLDisabledReturns = struct { 1660 result1 bool 1661 result2 error 1662 }{result1, result2} 1663 } 1664 1665 func (fake *FakeCliConnection) IsSSLDisabledReturnsOnCall(i int, result1 bool, result2 error) { 1666 fake.isSSLDisabledMutex.Lock() 1667 defer fake.isSSLDisabledMutex.Unlock() 1668 fake.IsSSLDisabledStub = nil 1669 if fake.isSSLDisabledReturnsOnCall == nil { 1670 fake.isSSLDisabledReturnsOnCall = make(map[int]struct { 1671 result1 bool 1672 result2 error 1673 }) 1674 } 1675 fake.isSSLDisabledReturnsOnCall[i] = struct { 1676 result1 bool 1677 result2 error 1678 }{result1, result2} 1679 } 1680 1681 func (fake *FakeCliConnection) LoggregatorEndpoint() (string, error) { 1682 fake.loggregatorEndpointMutex.Lock() 1683 ret, specificReturn := fake.loggregatorEndpointReturnsOnCall[len(fake.loggregatorEndpointArgsForCall)] 1684 fake.loggregatorEndpointArgsForCall = append(fake.loggregatorEndpointArgsForCall, struct { 1685 }{}) 1686 fake.recordInvocation("LoggregatorEndpoint", []interface{}{}) 1687 fake.loggregatorEndpointMutex.Unlock() 1688 if fake.LoggregatorEndpointStub != nil { 1689 return fake.LoggregatorEndpointStub() 1690 } 1691 if specificReturn { 1692 return ret.result1, ret.result2 1693 } 1694 fakeReturns := fake.loggregatorEndpointReturns 1695 return fakeReturns.result1, fakeReturns.result2 1696 } 1697 1698 func (fake *FakeCliConnection) LoggregatorEndpointCallCount() int { 1699 fake.loggregatorEndpointMutex.RLock() 1700 defer fake.loggregatorEndpointMutex.RUnlock() 1701 return len(fake.loggregatorEndpointArgsForCall) 1702 } 1703 1704 func (fake *FakeCliConnection) LoggregatorEndpointCalls(stub func() (string, error)) { 1705 fake.loggregatorEndpointMutex.Lock() 1706 defer fake.loggregatorEndpointMutex.Unlock() 1707 fake.LoggregatorEndpointStub = stub 1708 } 1709 1710 func (fake *FakeCliConnection) LoggregatorEndpointReturns(result1 string, result2 error) { 1711 fake.loggregatorEndpointMutex.Lock() 1712 defer fake.loggregatorEndpointMutex.Unlock() 1713 fake.LoggregatorEndpointStub = nil 1714 fake.loggregatorEndpointReturns = struct { 1715 result1 string 1716 result2 error 1717 }{result1, result2} 1718 } 1719 1720 func (fake *FakeCliConnection) LoggregatorEndpointReturnsOnCall(i int, result1 string, result2 error) { 1721 fake.loggregatorEndpointMutex.Lock() 1722 defer fake.loggregatorEndpointMutex.Unlock() 1723 fake.LoggregatorEndpointStub = nil 1724 if fake.loggregatorEndpointReturnsOnCall == nil { 1725 fake.loggregatorEndpointReturnsOnCall = make(map[int]struct { 1726 result1 string 1727 result2 error 1728 }) 1729 } 1730 fake.loggregatorEndpointReturnsOnCall[i] = struct { 1731 result1 string 1732 result2 error 1733 }{result1, result2} 1734 } 1735 1736 func (fake *FakeCliConnection) UserEmail() (string, error) { 1737 fake.userEmailMutex.Lock() 1738 ret, specificReturn := fake.userEmailReturnsOnCall[len(fake.userEmailArgsForCall)] 1739 fake.userEmailArgsForCall = append(fake.userEmailArgsForCall, struct { 1740 }{}) 1741 fake.recordInvocation("UserEmail", []interface{}{}) 1742 fake.userEmailMutex.Unlock() 1743 if fake.UserEmailStub != nil { 1744 return fake.UserEmailStub() 1745 } 1746 if specificReturn { 1747 return ret.result1, ret.result2 1748 } 1749 fakeReturns := fake.userEmailReturns 1750 return fakeReturns.result1, fakeReturns.result2 1751 } 1752 1753 func (fake *FakeCliConnection) UserEmailCallCount() int { 1754 fake.userEmailMutex.RLock() 1755 defer fake.userEmailMutex.RUnlock() 1756 return len(fake.userEmailArgsForCall) 1757 } 1758 1759 func (fake *FakeCliConnection) UserEmailCalls(stub func() (string, error)) { 1760 fake.userEmailMutex.Lock() 1761 defer fake.userEmailMutex.Unlock() 1762 fake.UserEmailStub = stub 1763 } 1764 1765 func (fake *FakeCliConnection) UserEmailReturns(result1 string, result2 error) { 1766 fake.userEmailMutex.Lock() 1767 defer fake.userEmailMutex.Unlock() 1768 fake.UserEmailStub = nil 1769 fake.userEmailReturns = struct { 1770 result1 string 1771 result2 error 1772 }{result1, result2} 1773 } 1774 1775 func (fake *FakeCliConnection) UserEmailReturnsOnCall(i int, result1 string, result2 error) { 1776 fake.userEmailMutex.Lock() 1777 defer fake.userEmailMutex.Unlock() 1778 fake.UserEmailStub = nil 1779 if fake.userEmailReturnsOnCall == nil { 1780 fake.userEmailReturnsOnCall = make(map[int]struct { 1781 result1 string 1782 result2 error 1783 }) 1784 } 1785 fake.userEmailReturnsOnCall[i] = struct { 1786 result1 string 1787 result2 error 1788 }{result1, result2} 1789 } 1790 1791 func (fake *FakeCliConnection) UserGuid() (string, error) { 1792 fake.userGuidMutex.Lock() 1793 ret, specificReturn := fake.userGuidReturnsOnCall[len(fake.userGuidArgsForCall)] 1794 fake.userGuidArgsForCall = append(fake.userGuidArgsForCall, struct { 1795 }{}) 1796 fake.recordInvocation("UserGuid", []interface{}{}) 1797 fake.userGuidMutex.Unlock() 1798 if fake.UserGuidStub != nil { 1799 return fake.UserGuidStub() 1800 } 1801 if specificReturn { 1802 return ret.result1, ret.result2 1803 } 1804 fakeReturns := fake.userGuidReturns 1805 return fakeReturns.result1, fakeReturns.result2 1806 } 1807 1808 func (fake *FakeCliConnection) UserGuidCallCount() int { 1809 fake.userGuidMutex.RLock() 1810 defer fake.userGuidMutex.RUnlock() 1811 return len(fake.userGuidArgsForCall) 1812 } 1813 1814 func (fake *FakeCliConnection) UserGuidCalls(stub func() (string, error)) { 1815 fake.userGuidMutex.Lock() 1816 defer fake.userGuidMutex.Unlock() 1817 fake.UserGuidStub = stub 1818 } 1819 1820 func (fake *FakeCliConnection) UserGuidReturns(result1 string, result2 error) { 1821 fake.userGuidMutex.Lock() 1822 defer fake.userGuidMutex.Unlock() 1823 fake.UserGuidStub = nil 1824 fake.userGuidReturns = struct { 1825 result1 string 1826 result2 error 1827 }{result1, result2} 1828 } 1829 1830 func (fake *FakeCliConnection) UserGuidReturnsOnCall(i int, result1 string, result2 error) { 1831 fake.userGuidMutex.Lock() 1832 defer fake.userGuidMutex.Unlock() 1833 fake.UserGuidStub = nil 1834 if fake.userGuidReturnsOnCall == nil { 1835 fake.userGuidReturnsOnCall = make(map[int]struct { 1836 result1 string 1837 result2 error 1838 }) 1839 } 1840 fake.userGuidReturnsOnCall[i] = struct { 1841 result1 string 1842 result2 error 1843 }{result1, result2} 1844 } 1845 1846 func (fake *FakeCliConnection) Username() (string, error) { 1847 fake.usernameMutex.Lock() 1848 ret, specificReturn := fake.usernameReturnsOnCall[len(fake.usernameArgsForCall)] 1849 fake.usernameArgsForCall = append(fake.usernameArgsForCall, struct { 1850 }{}) 1851 fake.recordInvocation("Username", []interface{}{}) 1852 fake.usernameMutex.Unlock() 1853 if fake.UsernameStub != nil { 1854 return fake.UsernameStub() 1855 } 1856 if specificReturn { 1857 return ret.result1, ret.result2 1858 } 1859 fakeReturns := fake.usernameReturns 1860 return fakeReturns.result1, fakeReturns.result2 1861 } 1862 1863 func (fake *FakeCliConnection) UsernameCallCount() int { 1864 fake.usernameMutex.RLock() 1865 defer fake.usernameMutex.RUnlock() 1866 return len(fake.usernameArgsForCall) 1867 } 1868 1869 func (fake *FakeCliConnection) UsernameCalls(stub func() (string, error)) { 1870 fake.usernameMutex.Lock() 1871 defer fake.usernameMutex.Unlock() 1872 fake.UsernameStub = stub 1873 } 1874 1875 func (fake *FakeCliConnection) UsernameReturns(result1 string, result2 error) { 1876 fake.usernameMutex.Lock() 1877 defer fake.usernameMutex.Unlock() 1878 fake.UsernameStub = nil 1879 fake.usernameReturns = struct { 1880 result1 string 1881 result2 error 1882 }{result1, result2} 1883 } 1884 1885 func (fake *FakeCliConnection) UsernameReturnsOnCall(i int, result1 string, result2 error) { 1886 fake.usernameMutex.Lock() 1887 defer fake.usernameMutex.Unlock() 1888 fake.UsernameStub = nil 1889 if fake.usernameReturnsOnCall == nil { 1890 fake.usernameReturnsOnCall = make(map[int]struct { 1891 result1 string 1892 result2 error 1893 }) 1894 } 1895 fake.usernameReturnsOnCall[i] = struct { 1896 result1 string 1897 result2 error 1898 }{result1, result2} 1899 } 1900 1901 func (fake *FakeCliConnection) Invocations() map[string][][]interface{} { 1902 fake.invocationsMutex.RLock() 1903 defer fake.invocationsMutex.RUnlock() 1904 fake.accessTokenMutex.RLock() 1905 defer fake.accessTokenMutex.RUnlock() 1906 fake.apiEndpointMutex.RLock() 1907 defer fake.apiEndpointMutex.RUnlock() 1908 fake.apiVersionMutex.RLock() 1909 defer fake.apiVersionMutex.RUnlock() 1910 fake.cliCommandMutex.RLock() 1911 defer fake.cliCommandMutex.RUnlock() 1912 fake.cliCommandWithoutTerminalOutputMutex.RLock() 1913 defer fake.cliCommandWithoutTerminalOutputMutex.RUnlock() 1914 fake.dopplerEndpointMutex.RLock() 1915 defer fake.dopplerEndpointMutex.RUnlock() 1916 fake.getAppMutex.RLock() 1917 defer fake.getAppMutex.RUnlock() 1918 fake.getAppsMutex.RLock() 1919 defer fake.getAppsMutex.RUnlock() 1920 fake.getCurrentOrgMutex.RLock() 1921 defer fake.getCurrentOrgMutex.RUnlock() 1922 fake.getCurrentSpaceMutex.RLock() 1923 defer fake.getCurrentSpaceMutex.RUnlock() 1924 fake.getOrgMutex.RLock() 1925 defer fake.getOrgMutex.RUnlock() 1926 fake.getOrgUsersMutex.RLock() 1927 defer fake.getOrgUsersMutex.RUnlock() 1928 fake.getOrgsMutex.RLock() 1929 defer fake.getOrgsMutex.RUnlock() 1930 fake.getServiceMutex.RLock() 1931 defer fake.getServiceMutex.RUnlock() 1932 fake.getServicesMutex.RLock() 1933 defer fake.getServicesMutex.RUnlock() 1934 fake.getSpaceMutex.RLock() 1935 defer fake.getSpaceMutex.RUnlock() 1936 fake.getSpaceUsersMutex.RLock() 1937 defer fake.getSpaceUsersMutex.RUnlock() 1938 fake.getSpacesMutex.RLock() 1939 defer fake.getSpacesMutex.RUnlock() 1940 fake.hasAPIEndpointMutex.RLock() 1941 defer fake.hasAPIEndpointMutex.RUnlock() 1942 fake.hasOrganizationMutex.RLock() 1943 defer fake.hasOrganizationMutex.RUnlock() 1944 fake.hasSpaceMutex.RLock() 1945 defer fake.hasSpaceMutex.RUnlock() 1946 fake.isLoggedInMutex.RLock() 1947 defer fake.isLoggedInMutex.RUnlock() 1948 fake.isSSLDisabledMutex.RLock() 1949 defer fake.isSSLDisabledMutex.RUnlock() 1950 fake.loggregatorEndpointMutex.RLock() 1951 defer fake.loggregatorEndpointMutex.RUnlock() 1952 fake.userEmailMutex.RLock() 1953 defer fake.userEmailMutex.RUnlock() 1954 fake.userGuidMutex.RLock() 1955 defer fake.userGuidMutex.RUnlock() 1956 fake.usernameMutex.RLock() 1957 defer fake.usernameMutex.RUnlock() 1958 copiedInvocations := map[string][][]interface{}{} 1959 for key, value := range fake.invocations { 1960 copiedInvocations[key] = value 1961 } 1962 return copiedInvocations 1963 } 1964 1965 func (fake *FakeCliConnection) recordInvocation(key string, args []interface{}) { 1966 fake.invocationsMutex.Lock() 1967 defer fake.invocationsMutex.Unlock() 1968 if fake.invocations == nil { 1969 fake.invocations = map[string][][]interface{}{} 1970 } 1971 if fake.invocations[key] == nil { 1972 fake.invocations[key] = [][]interface{}{} 1973 } 1974 fake.invocations[key] = append(fake.invocations[key], args) 1975 } 1976 1977 var _ plugin.CliConnection = new(FakeCliConnection)