github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7pushaction/v7pushactionfakes/fake_v7actor.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v7pushactionfakes 3 4 import ( 5 "io" 6 "sync" 7 8 "code.cloudfoundry.org/cli/actor/sharedaction" 9 "code.cloudfoundry.org/cli/actor/v7action" 10 "code.cloudfoundry.org/cli/actor/v7pushaction" 11 "code.cloudfoundry.org/cli/resources" 12 ) 13 14 type FakeV7Actor struct { 15 CreateApplicationDropletStub func(string) (resources.Droplet, v7action.Warnings, error) 16 createApplicationDropletMutex sync.RWMutex 17 createApplicationDropletArgsForCall []struct { 18 arg1 string 19 } 20 createApplicationDropletReturns struct { 21 result1 resources.Droplet 22 result2 v7action.Warnings 23 result3 error 24 } 25 createApplicationDropletReturnsOnCall map[int]struct { 26 result1 resources.Droplet 27 result2 v7action.Warnings 28 result3 error 29 } 30 CreateApplicationInSpaceStub func(resources.Application, string) (resources.Application, v7action.Warnings, error) 31 createApplicationInSpaceMutex sync.RWMutex 32 createApplicationInSpaceArgsForCall []struct { 33 arg1 resources.Application 34 arg2 string 35 } 36 createApplicationInSpaceReturns struct { 37 result1 resources.Application 38 result2 v7action.Warnings 39 result3 error 40 } 41 createApplicationInSpaceReturnsOnCall map[int]struct { 42 result1 resources.Application 43 result2 v7action.Warnings 44 result3 error 45 } 46 CreateBitsPackageByApplicationStub func(string) (resources.Package, v7action.Warnings, error) 47 createBitsPackageByApplicationMutex sync.RWMutex 48 createBitsPackageByApplicationArgsForCall []struct { 49 arg1 string 50 } 51 createBitsPackageByApplicationReturns struct { 52 result1 resources.Package 53 result2 v7action.Warnings 54 result3 error 55 } 56 createBitsPackageByApplicationReturnsOnCall map[int]struct { 57 result1 resources.Package 58 result2 v7action.Warnings 59 result3 error 60 } 61 CreateDeploymentByApplicationAndDropletStub func(string, string) (string, v7action.Warnings, error) 62 createDeploymentByApplicationAndDropletMutex sync.RWMutex 63 createDeploymentByApplicationAndDropletArgsForCall []struct { 64 arg1 string 65 arg2 string 66 } 67 createDeploymentByApplicationAndDropletReturns struct { 68 result1 string 69 result2 v7action.Warnings 70 result3 error 71 } 72 createDeploymentByApplicationAndDropletReturnsOnCall map[int]struct { 73 result1 string 74 result2 v7action.Warnings 75 result3 error 76 } 77 CreateDockerPackageByApplicationStub func(string, v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error) 78 createDockerPackageByApplicationMutex sync.RWMutex 79 createDockerPackageByApplicationArgsForCall []struct { 80 arg1 string 81 arg2 v7action.DockerImageCredentials 82 } 83 createDockerPackageByApplicationReturns struct { 84 result1 resources.Package 85 result2 v7action.Warnings 86 result3 error 87 } 88 createDockerPackageByApplicationReturnsOnCall map[int]struct { 89 result1 resources.Package 90 result2 v7action.Warnings 91 result3 error 92 } 93 CreateRouteStub func(string, string, string, string, int) (resources.Route, v7action.Warnings, error) 94 createRouteMutex sync.RWMutex 95 createRouteArgsForCall []struct { 96 arg1 string 97 arg2 string 98 arg3 string 99 arg4 string 100 arg5 int 101 } 102 createRouteReturns struct { 103 result1 resources.Route 104 result2 v7action.Warnings 105 result3 error 106 } 107 createRouteReturnsOnCall map[int]struct { 108 result1 resources.Route 109 result2 v7action.Warnings 110 result3 error 111 } 112 GetApplicationByNameAndSpaceStub func(string, string) (resources.Application, v7action.Warnings, error) 113 getApplicationByNameAndSpaceMutex sync.RWMutex 114 getApplicationByNameAndSpaceArgsForCall []struct { 115 arg1 string 116 arg2 string 117 } 118 getApplicationByNameAndSpaceReturns struct { 119 result1 resources.Application 120 result2 v7action.Warnings 121 result3 error 122 } 123 getApplicationByNameAndSpaceReturnsOnCall map[int]struct { 124 result1 resources.Application 125 result2 v7action.Warnings 126 result3 error 127 } 128 GetApplicationDropletsStub func(string, string) ([]resources.Droplet, v7action.Warnings, error) 129 getApplicationDropletsMutex sync.RWMutex 130 getApplicationDropletsArgsForCall []struct { 131 arg1 string 132 arg2 string 133 } 134 getApplicationDropletsReturns struct { 135 result1 []resources.Droplet 136 result2 v7action.Warnings 137 result3 error 138 } 139 getApplicationDropletsReturnsOnCall map[int]struct { 140 result1 []resources.Droplet 141 result2 v7action.Warnings 142 result3 error 143 } 144 GetApplicationRoutesStub func(string) ([]resources.Route, v7action.Warnings, error) 145 getApplicationRoutesMutex sync.RWMutex 146 getApplicationRoutesArgsForCall []struct { 147 arg1 string 148 } 149 getApplicationRoutesReturns struct { 150 result1 []resources.Route 151 result2 v7action.Warnings 152 result3 error 153 } 154 getApplicationRoutesReturnsOnCall map[int]struct { 155 result1 []resources.Route 156 result2 v7action.Warnings 157 result3 error 158 } 159 GetApplicationsByNamesAndSpaceStub func([]string, string) ([]resources.Application, v7action.Warnings, error) 160 getApplicationsByNamesAndSpaceMutex sync.RWMutex 161 getApplicationsByNamesAndSpaceArgsForCall []struct { 162 arg1 []string 163 arg2 string 164 } 165 getApplicationsByNamesAndSpaceReturns struct { 166 result1 []resources.Application 167 result2 v7action.Warnings 168 result3 error 169 } 170 getApplicationsByNamesAndSpaceReturnsOnCall map[int]struct { 171 result1 []resources.Application 172 result2 v7action.Warnings 173 result3 error 174 } 175 GetDefaultDomainStub func(string) (resources.Domain, v7action.Warnings, error) 176 getDefaultDomainMutex sync.RWMutex 177 getDefaultDomainArgsForCall []struct { 178 arg1 string 179 } 180 getDefaultDomainReturns struct { 181 result1 resources.Domain 182 result2 v7action.Warnings 183 result3 error 184 } 185 getDefaultDomainReturnsOnCall map[int]struct { 186 result1 resources.Domain 187 result2 v7action.Warnings 188 result3 error 189 } 190 GetDomainStub func(string) (resources.Domain, v7action.Warnings, error) 191 getDomainMutex sync.RWMutex 192 getDomainArgsForCall []struct { 193 arg1 string 194 } 195 getDomainReturns struct { 196 result1 resources.Domain 197 result2 v7action.Warnings 198 result3 error 199 } 200 getDomainReturnsOnCall map[int]struct { 201 result1 resources.Domain 202 result2 v7action.Warnings 203 result3 error 204 } 205 GetRouteByAttributesStub func(resources.Domain, string, string, int) (resources.Route, v7action.Warnings, error) 206 getRouteByAttributesMutex sync.RWMutex 207 getRouteByAttributesArgsForCall []struct { 208 arg1 resources.Domain 209 arg2 string 210 arg3 string 211 arg4 int 212 } 213 getRouteByAttributesReturns struct { 214 result1 resources.Route 215 result2 v7action.Warnings 216 result3 error 217 } 218 getRouteByAttributesReturnsOnCall map[int]struct { 219 result1 resources.Route 220 result2 v7action.Warnings 221 result3 error 222 } 223 GetRouteDestinationByAppGUIDStub func(resources.Route, string) (resources.RouteDestination, error) 224 getRouteDestinationByAppGUIDMutex sync.RWMutex 225 getRouteDestinationByAppGUIDArgsForCall []struct { 226 arg1 resources.Route 227 arg2 string 228 } 229 getRouteDestinationByAppGUIDReturns struct { 230 result1 resources.RouteDestination 231 result2 error 232 } 233 getRouteDestinationByAppGUIDReturnsOnCall map[int]struct { 234 result1 resources.RouteDestination 235 result2 error 236 } 237 MapRouteStub func(string, string, string) (v7action.Warnings, error) 238 mapRouteMutex sync.RWMutex 239 mapRouteArgsForCall []struct { 240 arg1 string 241 arg2 string 242 arg3 string 243 } 244 mapRouteReturns struct { 245 result1 v7action.Warnings 246 result2 error 247 } 248 mapRouteReturnsOnCall map[int]struct { 249 result1 v7action.Warnings 250 result2 error 251 } 252 PollBuildStub func(string, string) (resources.Droplet, v7action.Warnings, error) 253 pollBuildMutex sync.RWMutex 254 pollBuildArgsForCall []struct { 255 arg1 string 256 arg2 string 257 } 258 pollBuildReturns struct { 259 result1 resources.Droplet 260 result2 v7action.Warnings 261 result3 error 262 } 263 pollBuildReturnsOnCall map[int]struct { 264 result1 resources.Droplet 265 result2 v7action.Warnings 266 result3 error 267 } 268 PollPackageStub func(resources.Package) (resources.Package, v7action.Warnings, error) 269 pollPackageMutex sync.RWMutex 270 pollPackageArgsForCall []struct { 271 arg1 resources.Package 272 } 273 pollPackageReturns struct { 274 result1 resources.Package 275 result2 v7action.Warnings 276 result3 error 277 } 278 pollPackageReturnsOnCall map[int]struct { 279 result1 resources.Package 280 result2 v7action.Warnings 281 result3 error 282 } 283 PollStartStub func(resources.Application, bool, func(string)) (v7action.Warnings, error) 284 pollStartMutex sync.RWMutex 285 pollStartArgsForCall []struct { 286 arg1 resources.Application 287 arg2 bool 288 arg3 func(string) 289 } 290 pollStartReturns struct { 291 result1 v7action.Warnings 292 result2 error 293 } 294 pollStartReturnsOnCall map[int]struct { 295 result1 v7action.Warnings 296 result2 error 297 } 298 PollStartForRollingStub func(resources.Application, string, bool, func(string)) (v7action.Warnings, error) 299 pollStartForRollingMutex sync.RWMutex 300 pollStartForRollingArgsForCall []struct { 301 arg1 resources.Application 302 arg2 string 303 arg3 bool 304 arg4 func(string) 305 } 306 pollStartForRollingReturns struct { 307 result1 v7action.Warnings 308 result2 error 309 } 310 pollStartForRollingReturnsOnCall map[int]struct { 311 result1 v7action.Warnings 312 result2 error 313 } 314 ResourceMatchStub func([]sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error) 315 resourceMatchMutex sync.RWMutex 316 resourceMatchArgsForCall []struct { 317 arg1 []sharedaction.V3Resource 318 } 319 resourceMatchReturns struct { 320 result1 []sharedaction.V3Resource 321 result2 v7action.Warnings 322 result3 error 323 } 324 resourceMatchReturnsOnCall map[int]struct { 325 result1 []sharedaction.V3Resource 326 result2 v7action.Warnings 327 result3 error 328 } 329 RestartApplicationStub func(string, bool) (v7action.Warnings, error) 330 restartApplicationMutex sync.RWMutex 331 restartApplicationArgsForCall []struct { 332 arg1 string 333 arg2 bool 334 } 335 restartApplicationReturns struct { 336 result1 v7action.Warnings 337 result2 error 338 } 339 restartApplicationReturnsOnCall map[int]struct { 340 result1 v7action.Warnings 341 result2 error 342 } 343 ScaleProcessByApplicationStub func(string, resources.Process) (v7action.Warnings, error) 344 scaleProcessByApplicationMutex sync.RWMutex 345 scaleProcessByApplicationArgsForCall []struct { 346 arg1 string 347 arg2 resources.Process 348 } 349 scaleProcessByApplicationReturns struct { 350 result1 v7action.Warnings 351 result2 error 352 } 353 scaleProcessByApplicationReturnsOnCall map[int]struct { 354 result1 v7action.Warnings 355 result2 error 356 } 357 SetApplicationDropletStub func(string, string) (v7action.Warnings, error) 358 setApplicationDropletMutex sync.RWMutex 359 setApplicationDropletArgsForCall []struct { 360 arg1 string 361 arg2 string 362 } 363 setApplicationDropletReturns struct { 364 result1 v7action.Warnings 365 result2 error 366 } 367 setApplicationDropletReturnsOnCall map[int]struct { 368 result1 v7action.Warnings 369 result2 error 370 } 371 SetApplicationManifestStub func(string, []byte) (v7action.Warnings, error) 372 setApplicationManifestMutex sync.RWMutex 373 setApplicationManifestArgsForCall []struct { 374 arg1 string 375 arg2 []byte 376 } 377 setApplicationManifestReturns struct { 378 result1 v7action.Warnings 379 result2 error 380 } 381 setApplicationManifestReturnsOnCall map[int]struct { 382 result1 v7action.Warnings 383 result2 error 384 } 385 SetSpaceManifestStub func(string, []byte) (v7action.Warnings, error) 386 setSpaceManifestMutex sync.RWMutex 387 setSpaceManifestArgsForCall []struct { 388 arg1 string 389 arg2 []byte 390 } 391 setSpaceManifestReturns struct { 392 result1 v7action.Warnings 393 result2 error 394 } 395 setSpaceManifestReturnsOnCall map[int]struct { 396 result1 v7action.Warnings 397 result2 error 398 } 399 StageApplicationPackageStub func(string) (resources.Build, v7action.Warnings, error) 400 stageApplicationPackageMutex sync.RWMutex 401 stageApplicationPackageArgsForCall []struct { 402 arg1 string 403 } 404 stageApplicationPackageReturns struct { 405 result1 resources.Build 406 result2 v7action.Warnings 407 result3 error 408 } 409 stageApplicationPackageReturnsOnCall map[int]struct { 410 result1 resources.Build 411 result2 v7action.Warnings 412 result3 error 413 } 414 StopApplicationStub func(string) (v7action.Warnings, error) 415 stopApplicationMutex sync.RWMutex 416 stopApplicationArgsForCall []struct { 417 arg1 string 418 } 419 stopApplicationReturns struct { 420 result1 v7action.Warnings 421 result2 error 422 } 423 stopApplicationReturnsOnCall map[int]struct { 424 result1 v7action.Warnings 425 result2 error 426 } 427 UnmapRouteStub func(string, string) (v7action.Warnings, error) 428 unmapRouteMutex sync.RWMutex 429 unmapRouteArgsForCall []struct { 430 arg1 string 431 arg2 string 432 } 433 unmapRouteReturns struct { 434 result1 v7action.Warnings 435 result2 error 436 } 437 unmapRouteReturnsOnCall map[int]struct { 438 result1 v7action.Warnings 439 result2 error 440 } 441 UpdateApplicationStub func(resources.Application) (resources.Application, v7action.Warnings, error) 442 updateApplicationMutex sync.RWMutex 443 updateApplicationArgsForCall []struct { 444 arg1 resources.Application 445 } 446 updateApplicationReturns struct { 447 result1 resources.Application 448 result2 v7action.Warnings 449 result3 error 450 } 451 updateApplicationReturnsOnCall map[int]struct { 452 result1 resources.Application 453 result2 v7action.Warnings 454 result3 error 455 } 456 UpdateProcessByTypeAndApplicationStub func(string, string, resources.Process) (v7action.Warnings, error) 457 updateProcessByTypeAndApplicationMutex sync.RWMutex 458 updateProcessByTypeAndApplicationArgsForCall []struct { 459 arg1 string 460 arg2 string 461 arg3 resources.Process 462 } 463 updateProcessByTypeAndApplicationReturns struct { 464 result1 v7action.Warnings 465 result2 error 466 } 467 updateProcessByTypeAndApplicationReturnsOnCall map[int]struct { 468 result1 v7action.Warnings 469 result2 error 470 } 471 UploadBitsPackageStub func(resources.Package, []sharedaction.V3Resource, io.Reader, int64) (resources.Package, v7action.Warnings, error) 472 uploadBitsPackageMutex sync.RWMutex 473 uploadBitsPackageArgsForCall []struct { 474 arg1 resources.Package 475 arg2 []sharedaction.V3Resource 476 arg3 io.Reader 477 arg4 int64 478 } 479 uploadBitsPackageReturns struct { 480 result1 resources.Package 481 result2 v7action.Warnings 482 result3 error 483 } 484 uploadBitsPackageReturnsOnCall map[int]struct { 485 result1 resources.Package 486 result2 v7action.Warnings 487 result3 error 488 } 489 UploadDropletStub func(string, string, io.Reader, int64) (v7action.Warnings, error) 490 uploadDropletMutex sync.RWMutex 491 uploadDropletArgsForCall []struct { 492 arg1 string 493 arg2 string 494 arg3 io.Reader 495 arg4 int64 496 } 497 uploadDropletReturns struct { 498 result1 v7action.Warnings 499 result2 error 500 } 501 uploadDropletReturnsOnCall map[int]struct { 502 result1 v7action.Warnings 503 result2 error 504 } 505 invocations map[string][][]interface{} 506 invocationsMutex sync.RWMutex 507 } 508 509 func (fake *FakeV7Actor) CreateApplicationDroplet(arg1 string) (resources.Droplet, v7action.Warnings, error) { 510 fake.createApplicationDropletMutex.Lock() 511 ret, specificReturn := fake.createApplicationDropletReturnsOnCall[len(fake.createApplicationDropletArgsForCall)] 512 fake.createApplicationDropletArgsForCall = append(fake.createApplicationDropletArgsForCall, struct { 513 arg1 string 514 }{arg1}) 515 fake.recordInvocation("CreateApplicationDroplet", []interface{}{arg1}) 516 fake.createApplicationDropletMutex.Unlock() 517 if fake.CreateApplicationDropletStub != nil { 518 return fake.CreateApplicationDropletStub(arg1) 519 } 520 if specificReturn { 521 return ret.result1, ret.result2, ret.result3 522 } 523 fakeReturns := fake.createApplicationDropletReturns 524 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 525 } 526 527 func (fake *FakeV7Actor) CreateApplicationDropletCallCount() int { 528 fake.createApplicationDropletMutex.RLock() 529 defer fake.createApplicationDropletMutex.RUnlock() 530 return len(fake.createApplicationDropletArgsForCall) 531 } 532 533 func (fake *FakeV7Actor) CreateApplicationDropletCalls(stub func(string) (resources.Droplet, v7action.Warnings, error)) { 534 fake.createApplicationDropletMutex.Lock() 535 defer fake.createApplicationDropletMutex.Unlock() 536 fake.CreateApplicationDropletStub = stub 537 } 538 539 func (fake *FakeV7Actor) CreateApplicationDropletArgsForCall(i int) string { 540 fake.createApplicationDropletMutex.RLock() 541 defer fake.createApplicationDropletMutex.RUnlock() 542 argsForCall := fake.createApplicationDropletArgsForCall[i] 543 return argsForCall.arg1 544 } 545 546 func (fake *FakeV7Actor) CreateApplicationDropletReturns(result1 resources.Droplet, result2 v7action.Warnings, result3 error) { 547 fake.createApplicationDropletMutex.Lock() 548 defer fake.createApplicationDropletMutex.Unlock() 549 fake.CreateApplicationDropletStub = nil 550 fake.createApplicationDropletReturns = struct { 551 result1 resources.Droplet 552 result2 v7action.Warnings 553 result3 error 554 }{result1, result2, result3} 555 } 556 557 func (fake *FakeV7Actor) CreateApplicationDropletReturnsOnCall(i int, result1 resources.Droplet, result2 v7action.Warnings, result3 error) { 558 fake.createApplicationDropletMutex.Lock() 559 defer fake.createApplicationDropletMutex.Unlock() 560 fake.CreateApplicationDropletStub = nil 561 if fake.createApplicationDropletReturnsOnCall == nil { 562 fake.createApplicationDropletReturnsOnCall = make(map[int]struct { 563 result1 resources.Droplet 564 result2 v7action.Warnings 565 result3 error 566 }) 567 } 568 fake.createApplicationDropletReturnsOnCall[i] = struct { 569 result1 resources.Droplet 570 result2 v7action.Warnings 571 result3 error 572 }{result1, result2, result3} 573 } 574 575 func (fake *FakeV7Actor) CreateApplicationInSpace(arg1 resources.Application, arg2 string) (resources.Application, v7action.Warnings, error) { 576 fake.createApplicationInSpaceMutex.Lock() 577 ret, specificReturn := fake.createApplicationInSpaceReturnsOnCall[len(fake.createApplicationInSpaceArgsForCall)] 578 fake.createApplicationInSpaceArgsForCall = append(fake.createApplicationInSpaceArgsForCall, struct { 579 arg1 resources.Application 580 arg2 string 581 }{arg1, arg2}) 582 fake.recordInvocation("CreateApplicationInSpace", []interface{}{arg1, arg2}) 583 fake.createApplicationInSpaceMutex.Unlock() 584 if fake.CreateApplicationInSpaceStub != nil { 585 return fake.CreateApplicationInSpaceStub(arg1, arg2) 586 } 587 if specificReturn { 588 return ret.result1, ret.result2, ret.result3 589 } 590 fakeReturns := fake.createApplicationInSpaceReturns 591 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 592 } 593 594 func (fake *FakeV7Actor) CreateApplicationInSpaceCallCount() int { 595 fake.createApplicationInSpaceMutex.RLock() 596 defer fake.createApplicationInSpaceMutex.RUnlock() 597 return len(fake.createApplicationInSpaceArgsForCall) 598 } 599 600 func (fake *FakeV7Actor) CreateApplicationInSpaceCalls(stub func(resources.Application, string) (resources.Application, v7action.Warnings, error)) { 601 fake.createApplicationInSpaceMutex.Lock() 602 defer fake.createApplicationInSpaceMutex.Unlock() 603 fake.CreateApplicationInSpaceStub = stub 604 } 605 606 func (fake *FakeV7Actor) CreateApplicationInSpaceArgsForCall(i int) (resources.Application, string) { 607 fake.createApplicationInSpaceMutex.RLock() 608 defer fake.createApplicationInSpaceMutex.RUnlock() 609 argsForCall := fake.createApplicationInSpaceArgsForCall[i] 610 return argsForCall.arg1, argsForCall.arg2 611 } 612 613 func (fake *FakeV7Actor) CreateApplicationInSpaceReturns(result1 resources.Application, result2 v7action.Warnings, result3 error) { 614 fake.createApplicationInSpaceMutex.Lock() 615 defer fake.createApplicationInSpaceMutex.Unlock() 616 fake.CreateApplicationInSpaceStub = nil 617 fake.createApplicationInSpaceReturns = struct { 618 result1 resources.Application 619 result2 v7action.Warnings 620 result3 error 621 }{result1, result2, result3} 622 } 623 624 func (fake *FakeV7Actor) CreateApplicationInSpaceReturnsOnCall(i int, result1 resources.Application, result2 v7action.Warnings, result3 error) { 625 fake.createApplicationInSpaceMutex.Lock() 626 defer fake.createApplicationInSpaceMutex.Unlock() 627 fake.CreateApplicationInSpaceStub = nil 628 if fake.createApplicationInSpaceReturnsOnCall == nil { 629 fake.createApplicationInSpaceReturnsOnCall = make(map[int]struct { 630 result1 resources.Application 631 result2 v7action.Warnings 632 result3 error 633 }) 634 } 635 fake.createApplicationInSpaceReturnsOnCall[i] = struct { 636 result1 resources.Application 637 result2 v7action.Warnings 638 result3 error 639 }{result1, result2, result3} 640 } 641 642 func (fake *FakeV7Actor) CreateBitsPackageByApplication(arg1 string) (resources.Package, v7action.Warnings, error) { 643 fake.createBitsPackageByApplicationMutex.Lock() 644 ret, specificReturn := fake.createBitsPackageByApplicationReturnsOnCall[len(fake.createBitsPackageByApplicationArgsForCall)] 645 fake.createBitsPackageByApplicationArgsForCall = append(fake.createBitsPackageByApplicationArgsForCall, struct { 646 arg1 string 647 }{arg1}) 648 fake.recordInvocation("CreateBitsPackageByApplication", []interface{}{arg1}) 649 fake.createBitsPackageByApplicationMutex.Unlock() 650 if fake.CreateBitsPackageByApplicationStub != nil { 651 return fake.CreateBitsPackageByApplicationStub(arg1) 652 } 653 if specificReturn { 654 return ret.result1, ret.result2, ret.result3 655 } 656 fakeReturns := fake.createBitsPackageByApplicationReturns 657 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 658 } 659 660 func (fake *FakeV7Actor) CreateBitsPackageByApplicationCallCount() int { 661 fake.createBitsPackageByApplicationMutex.RLock() 662 defer fake.createBitsPackageByApplicationMutex.RUnlock() 663 return len(fake.createBitsPackageByApplicationArgsForCall) 664 } 665 666 func (fake *FakeV7Actor) CreateBitsPackageByApplicationCalls(stub func(string) (resources.Package, v7action.Warnings, error)) { 667 fake.createBitsPackageByApplicationMutex.Lock() 668 defer fake.createBitsPackageByApplicationMutex.Unlock() 669 fake.CreateBitsPackageByApplicationStub = stub 670 } 671 672 func (fake *FakeV7Actor) CreateBitsPackageByApplicationArgsForCall(i int) string { 673 fake.createBitsPackageByApplicationMutex.RLock() 674 defer fake.createBitsPackageByApplicationMutex.RUnlock() 675 argsForCall := fake.createBitsPackageByApplicationArgsForCall[i] 676 return argsForCall.arg1 677 } 678 679 func (fake *FakeV7Actor) CreateBitsPackageByApplicationReturns(result1 resources.Package, result2 v7action.Warnings, result3 error) { 680 fake.createBitsPackageByApplicationMutex.Lock() 681 defer fake.createBitsPackageByApplicationMutex.Unlock() 682 fake.CreateBitsPackageByApplicationStub = nil 683 fake.createBitsPackageByApplicationReturns = struct { 684 result1 resources.Package 685 result2 v7action.Warnings 686 result3 error 687 }{result1, result2, result3} 688 } 689 690 func (fake *FakeV7Actor) CreateBitsPackageByApplicationReturnsOnCall(i int, result1 resources.Package, result2 v7action.Warnings, result3 error) { 691 fake.createBitsPackageByApplicationMutex.Lock() 692 defer fake.createBitsPackageByApplicationMutex.Unlock() 693 fake.CreateBitsPackageByApplicationStub = nil 694 if fake.createBitsPackageByApplicationReturnsOnCall == nil { 695 fake.createBitsPackageByApplicationReturnsOnCall = make(map[int]struct { 696 result1 resources.Package 697 result2 v7action.Warnings 698 result3 error 699 }) 700 } 701 fake.createBitsPackageByApplicationReturnsOnCall[i] = struct { 702 result1 resources.Package 703 result2 v7action.Warnings 704 result3 error 705 }{result1, result2, result3} 706 } 707 708 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDroplet(arg1 string, arg2 string) (string, v7action.Warnings, error) { 709 fake.createDeploymentByApplicationAndDropletMutex.Lock() 710 ret, specificReturn := fake.createDeploymentByApplicationAndDropletReturnsOnCall[len(fake.createDeploymentByApplicationAndDropletArgsForCall)] 711 fake.createDeploymentByApplicationAndDropletArgsForCall = append(fake.createDeploymentByApplicationAndDropletArgsForCall, struct { 712 arg1 string 713 arg2 string 714 }{arg1, arg2}) 715 fake.recordInvocation("CreateDeploymentByApplicationAndDroplet", []interface{}{arg1, arg2}) 716 fake.createDeploymentByApplicationAndDropletMutex.Unlock() 717 if fake.CreateDeploymentByApplicationAndDropletStub != nil { 718 return fake.CreateDeploymentByApplicationAndDropletStub(arg1, arg2) 719 } 720 if specificReturn { 721 return ret.result1, ret.result2, ret.result3 722 } 723 fakeReturns := fake.createDeploymentByApplicationAndDropletReturns 724 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 725 } 726 727 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDropletCallCount() int { 728 fake.createDeploymentByApplicationAndDropletMutex.RLock() 729 defer fake.createDeploymentByApplicationAndDropletMutex.RUnlock() 730 return len(fake.createDeploymentByApplicationAndDropletArgsForCall) 731 } 732 733 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDropletCalls(stub func(string, string) (string, v7action.Warnings, error)) { 734 fake.createDeploymentByApplicationAndDropletMutex.Lock() 735 defer fake.createDeploymentByApplicationAndDropletMutex.Unlock() 736 fake.CreateDeploymentByApplicationAndDropletStub = stub 737 } 738 739 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDropletArgsForCall(i int) (string, string) { 740 fake.createDeploymentByApplicationAndDropletMutex.RLock() 741 defer fake.createDeploymentByApplicationAndDropletMutex.RUnlock() 742 argsForCall := fake.createDeploymentByApplicationAndDropletArgsForCall[i] 743 return argsForCall.arg1, argsForCall.arg2 744 } 745 746 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDropletReturns(result1 string, result2 v7action.Warnings, result3 error) { 747 fake.createDeploymentByApplicationAndDropletMutex.Lock() 748 defer fake.createDeploymentByApplicationAndDropletMutex.Unlock() 749 fake.CreateDeploymentByApplicationAndDropletStub = nil 750 fake.createDeploymentByApplicationAndDropletReturns = struct { 751 result1 string 752 result2 v7action.Warnings 753 result3 error 754 }{result1, result2, result3} 755 } 756 757 func (fake *FakeV7Actor) CreateDeploymentByApplicationAndDropletReturnsOnCall(i int, result1 string, result2 v7action.Warnings, result3 error) { 758 fake.createDeploymentByApplicationAndDropletMutex.Lock() 759 defer fake.createDeploymentByApplicationAndDropletMutex.Unlock() 760 fake.CreateDeploymentByApplicationAndDropletStub = nil 761 if fake.createDeploymentByApplicationAndDropletReturnsOnCall == nil { 762 fake.createDeploymentByApplicationAndDropletReturnsOnCall = make(map[int]struct { 763 result1 string 764 result2 v7action.Warnings 765 result3 error 766 }) 767 } 768 fake.createDeploymentByApplicationAndDropletReturnsOnCall[i] = struct { 769 result1 string 770 result2 v7action.Warnings 771 result3 error 772 }{result1, result2, result3} 773 } 774 775 func (fake *FakeV7Actor) CreateDockerPackageByApplication(arg1 string, arg2 v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error) { 776 fake.createDockerPackageByApplicationMutex.Lock() 777 ret, specificReturn := fake.createDockerPackageByApplicationReturnsOnCall[len(fake.createDockerPackageByApplicationArgsForCall)] 778 fake.createDockerPackageByApplicationArgsForCall = append(fake.createDockerPackageByApplicationArgsForCall, struct { 779 arg1 string 780 arg2 v7action.DockerImageCredentials 781 }{arg1, arg2}) 782 fake.recordInvocation("CreateDockerPackageByApplication", []interface{}{arg1, arg2}) 783 fake.createDockerPackageByApplicationMutex.Unlock() 784 if fake.CreateDockerPackageByApplicationStub != nil { 785 return fake.CreateDockerPackageByApplicationStub(arg1, arg2) 786 } 787 if specificReturn { 788 return ret.result1, ret.result2, ret.result3 789 } 790 fakeReturns := fake.createDockerPackageByApplicationReturns 791 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 792 } 793 794 func (fake *FakeV7Actor) CreateDockerPackageByApplicationCallCount() int { 795 fake.createDockerPackageByApplicationMutex.RLock() 796 defer fake.createDockerPackageByApplicationMutex.RUnlock() 797 return len(fake.createDockerPackageByApplicationArgsForCall) 798 } 799 800 func (fake *FakeV7Actor) CreateDockerPackageByApplicationCalls(stub func(string, v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error)) { 801 fake.createDockerPackageByApplicationMutex.Lock() 802 defer fake.createDockerPackageByApplicationMutex.Unlock() 803 fake.CreateDockerPackageByApplicationStub = stub 804 } 805 806 func (fake *FakeV7Actor) CreateDockerPackageByApplicationArgsForCall(i int) (string, v7action.DockerImageCredentials) { 807 fake.createDockerPackageByApplicationMutex.RLock() 808 defer fake.createDockerPackageByApplicationMutex.RUnlock() 809 argsForCall := fake.createDockerPackageByApplicationArgsForCall[i] 810 return argsForCall.arg1, argsForCall.arg2 811 } 812 813 func (fake *FakeV7Actor) CreateDockerPackageByApplicationReturns(result1 resources.Package, result2 v7action.Warnings, result3 error) { 814 fake.createDockerPackageByApplicationMutex.Lock() 815 defer fake.createDockerPackageByApplicationMutex.Unlock() 816 fake.CreateDockerPackageByApplicationStub = nil 817 fake.createDockerPackageByApplicationReturns = struct { 818 result1 resources.Package 819 result2 v7action.Warnings 820 result3 error 821 }{result1, result2, result3} 822 } 823 824 func (fake *FakeV7Actor) CreateDockerPackageByApplicationReturnsOnCall(i int, result1 resources.Package, result2 v7action.Warnings, result3 error) { 825 fake.createDockerPackageByApplicationMutex.Lock() 826 defer fake.createDockerPackageByApplicationMutex.Unlock() 827 fake.CreateDockerPackageByApplicationStub = nil 828 if fake.createDockerPackageByApplicationReturnsOnCall == nil { 829 fake.createDockerPackageByApplicationReturnsOnCall = make(map[int]struct { 830 result1 resources.Package 831 result2 v7action.Warnings 832 result3 error 833 }) 834 } 835 fake.createDockerPackageByApplicationReturnsOnCall[i] = struct { 836 result1 resources.Package 837 result2 v7action.Warnings 838 result3 error 839 }{result1, result2, result3} 840 } 841 842 func (fake *FakeV7Actor) CreateRoute(arg1 string, arg2 string, arg3 string, arg4 string, arg5 int) (resources.Route, v7action.Warnings, error) { 843 fake.createRouteMutex.Lock() 844 ret, specificReturn := fake.createRouteReturnsOnCall[len(fake.createRouteArgsForCall)] 845 fake.createRouteArgsForCall = append(fake.createRouteArgsForCall, struct { 846 arg1 string 847 arg2 string 848 arg3 string 849 arg4 string 850 arg5 int 851 }{arg1, arg2, arg3, arg4, arg5}) 852 fake.recordInvocation("CreateRoute", []interface{}{arg1, arg2, arg3, arg4, arg5}) 853 fake.createRouteMutex.Unlock() 854 if fake.CreateRouteStub != nil { 855 return fake.CreateRouteStub(arg1, arg2, arg3, arg4, arg5) 856 } 857 if specificReturn { 858 return ret.result1, ret.result2, ret.result3 859 } 860 fakeReturns := fake.createRouteReturns 861 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 862 } 863 864 func (fake *FakeV7Actor) CreateRouteCallCount() int { 865 fake.createRouteMutex.RLock() 866 defer fake.createRouteMutex.RUnlock() 867 return len(fake.createRouteArgsForCall) 868 } 869 870 func (fake *FakeV7Actor) CreateRouteCalls(stub func(string, string, string, string, int) (resources.Route, v7action.Warnings, error)) { 871 fake.createRouteMutex.Lock() 872 defer fake.createRouteMutex.Unlock() 873 fake.CreateRouteStub = stub 874 } 875 876 func (fake *FakeV7Actor) CreateRouteArgsForCall(i int) (string, string, string, string, int) { 877 fake.createRouteMutex.RLock() 878 defer fake.createRouteMutex.RUnlock() 879 argsForCall := fake.createRouteArgsForCall[i] 880 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5 881 } 882 883 func (fake *FakeV7Actor) CreateRouteReturns(result1 resources.Route, result2 v7action.Warnings, result3 error) { 884 fake.createRouteMutex.Lock() 885 defer fake.createRouteMutex.Unlock() 886 fake.CreateRouteStub = nil 887 fake.createRouteReturns = struct { 888 result1 resources.Route 889 result2 v7action.Warnings 890 result3 error 891 }{result1, result2, result3} 892 } 893 894 func (fake *FakeV7Actor) CreateRouteReturnsOnCall(i int, result1 resources.Route, result2 v7action.Warnings, result3 error) { 895 fake.createRouteMutex.Lock() 896 defer fake.createRouteMutex.Unlock() 897 fake.CreateRouteStub = nil 898 if fake.createRouteReturnsOnCall == nil { 899 fake.createRouteReturnsOnCall = make(map[int]struct { 900 result1 resources.Route 901 result2 v7action.Warnings 902 result3 error 903 }) 904 } 905 fake.createRouteReturnsOnCall[i] = struct { 906 result1 resources.Route 907 result2 v7action.Warnings 908 result3 error 909 }{result1, result2, result3} 910 } 911 912 func (fake *FakeV7Actor) GetApplicationByNameAndSpace(arg1 string, arg2 string) (resources.Application, v7action.Warnings, error) { 913 fake.getApplicationByNameAndSpaceMutex.Lock() 914 ret, specificReturn := fake.getApplicationByNameAndSpaceReturnsOnCall[len(fake.getApplicationByNameAndSpaceArgsForCall)] 915 fake.getApplicationByNameAndSpaceArgsForCall = append(fake.getApplicationByNameAndSpaceArgsForCall, struct { 916 arg1 string 917 arg2 string 918 }{arg1, arg2}) 919 fake.recordInvocation("GetApplicationByNameAndSpace", []interface{}{arg1, arg2}) 920 fake.getApplicationByNameAndSpaceMutex.Unlock() 921 if fake.GetApplicationByNameAndSpaceStub != nil { 922 return fake.GetApplicationByNameAndSpaceStub(arg1, arg2) 923 } 924 if specificReturn { 925 return ret.result1, ret.result2, ret.result3 926 } 927 fakeReturns := fake.getApplicationByNameAndSpaceReturns 928 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 929 } 930 931 func (fake *FakeV7Actor) GetApplicationByNameAndSpaceCallCount() int { 932 fake.getApplicationByNameAndSpaceMutex.RLock() 933 defer fake.getApplicationByNameAndSpaceMutex.RUnlock() 934 return len(fake.getApplicationByNameAndSpaceArgsForCall) 935 } 936 937 func (fake *FakeV7Actor) GetApplicationByNameAndSpaceCalls(stub func(string, string) (resources.Application, v7action.Warnings, error)) { 938 fake.getApplicationByNameAndSpaceMutex.Lock() 939 defer fake.getApplicationByNameAndSpaceMutex.Unlock() 940 fake.GetApplicationByNameAndSpaceStub = stub 941 } 942 943 func (fake *FakeV7Actor) GetApplicationByNameAndSpaceArgsForCall(i int) (string, string) { 944 fake.getApplicationByNameAndSpaceMutex.RLock() 945 defer fake.getApplicationByNameAndSpaceMutex.RUnlock() 946 argsForCall := fake.getApplicationByNameAndSpaceArgsForCall[i] 947 return argsForCall.arg1, argsForCall.arg2 948 } 949 950 func (fake *FakeV7Actor) GetApplicationByNameAndSpaceReturns(result1 resources.Application, result2 v7action.Warnings, result3 error) { 951 fake.getApplicationByNameAndSpaceMutex.Lock() 952 defer fake.getApplicationByNameAndSpaceMutex.Unlock() 953 fake.GetApplicationByNameAndSpaceStub = nil 954 fake.getApplicationByNameAndSpaceReturns = struct { 955 result1 resources.Application 956 result2 v7action.Warnings 957 result3 error 958 }{result1, result2, result3} 959 } 960 961 func (fake *FakeV7Actor) GetApplicationByNameAndSpaceReturnsOnCall(i int, result1 resources.Application, result2 v7action.Warnings, result3 error) { 962 fake.getApplicationByNameAndSpaceMutex.Lock() 963 defer fake.getApplicationByNameAndSpaceMutex.Unlock() 964 fake.GetApplicationByNameAndSpaceStub = nil 965 if fake.getApplicationByNameAndSpaceReturnsOnCall == nil { 966 fake.getApplicationByNameAndSpaceReturnsOnCall = make(map[int]struct { 967 result1 resources.Application 968 result2 v7action.Warnings 969 result3 error 970 }) 971 } 972 fake.getApplicationByNameAndSpaceReturnsOnCall[i] = struct { 973 result1 resources.Application 974 result2 v7action.Warnings 975 result3 error 976 }{result1, result2, result3} 977 } 978 979 func (fake *FakeV7Actor) GetApplicationDroplets(arg1 string, arg2 string) ([]resources.Droplet, v7action.Warnings, error) { 980 fake.getApplicationDropletsMutex.Lock() 981 ret, specificReturn := fake.getApplicationDropletsReturnsOnCall[len(fake.getApplicationDropletsArgsForCall)] 982 fake.getApplicationDropletsArgsForCall = append(fake.getApplicationDropletsArgsForCall, struct { 983 arg1 string 984 arg2 string 985 }{arg1, arg2}) 986 fake.recordInvocation("GetApplicationDroplets", []interface{}{arg1, arg2}) 987 fake.getApplicationDropletsMutex.Unlock() 988 if fake.GetApplicationDropletsStub != nil { 989 return fake.GetApplicationDropletsStub(arg1, arg2) 990 } 991 if specificReturn { 992 return ret.result1, ret.result2, ret.result3 993 } 994 fakeReturns := fake.getApplicationDropletsReturns 995 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 996 } 997 998 func (fake *FakeV7Actor) GetApplicationDropletsCallCount() int { 999 fake.getApplicationDropletsMutex.RLock() 1000 defer fake.getApplicationDropletsMutex.RUnlock() 1001 return len(fake.getApplicationDropletsArgsForCall) 1002 } 1003 1004 func (fake *FakeV7Actor) GetApplicationDropletsCalls(stub func(string, string) ([]resources.Droplet, v7action.Warnings, error)) { 1005 fake.getApplicationDropletsMutex.Lock() 1006 defer fake.getApplicationDropletsMutex.Unlock() 1007 fake.GetApplicationDropletsStub = stub 1008 } 1009 1010 func (fake *FakeV7Actor) GetApplicationDropletsArgsForCall(i int) (string, string) { 1011 fake.getApplicationDropletsMutex.RLock() 1012 defer fake.getApplicationDropletsMutex.RUnlock() 1013 argsForCall := fake.getApplicationDropletsArgsForCall[i] 1014 return argsForCall.arg1, argsForCall.arg2 1015 } 1016 1017 func (fake *FakeV7Actor) GetApplicationDropletsReturns(result1 []resources.Droplet, result2 v7action.Warnings, result3 error) { 1018 fake.getApplicationDropletsMutex.Lock() 1019 defer fake.getApplicationDropletsMutex.Unlock() 1020 fake.GetApplicationDropletsStub = nil 1021 fake.getApplicationDropletsReturns = struct { 1022 result1 []resources.Droplet 1023 result2 v7action.Warnings 1024 result3 error 1025 }{result1, result2, result3} 1026 } 1027 1028 func (fake *FakeV7Actor) GetApplicationDropletsReturnsOnCall(i int, result1 []resources.Droplet, result2 v7action.Warnings, result3 error) { 1029 fake.getApplicationDropletsMutex.Lock() 1030 defer fake.getApplicationDropletsMutex.Unlock() 1031 fake.GetApplicationDropletsStub = nil 1032 if fake.getApplicationDropletsReturnsOnCall == nil { 1033 fake.getApplicationDropletsReturnsOnCall = make(map[int]struct { 1034 result1 []resources.Droplet 1035 result2 v7action.Warnings 1036 result3 error 1037 }) 1038 } 1039 fake.getApplicationDropletsReturnsOnCall[i] = struct { 1040 result1 []resources.Droplet 1041 result2 v7action.Warnings 1042 result3 error 1043 }{result1, result2, result3} 1044 } 1045 1046 func (fake *FakeV7Actor) GetApplicationRoutes(arg1 string) ([]resources.Route, v7action.Warnings, error) { 1047 fake.getApplicationRoutesMutex.Lock() 1048 ret, specificReturn := fake.getApplicationRoutesReturnsOnCall[len(fake.getApplicationRoutesArgsForCall)] 1049 fake.getApplicationRoutesArgsForCall = append(fake.getApplicationRoutesArgsForCall, struct { 1050 arg1 string 1051 }{arg1}) 1052 fake.recordInvocation("GetApplicationRoutes", []interface{}{arg1}) 1053 fake.getApplicationRoutesMutex.Unlock() 1054 if fake.GetApplicationRoutesStub != nil { 1055 return fake.GetApplicationRoutesStub(arg1) 1056 } 1057 if specificReturn { 1058 return ret.result1, ret.result2, ret.result3 1059 } 1060 fakeReturns := fake.getApplicationRoutesReturns 1061 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1062 } 1063 1064 func (fake *FakeV7Actor) GetApplicationRoutesCallCount() int { 1065 fake.getApplicationRoutesMutex.RLock() 1066 defer fake.getApplicationRoutesMutex.RUnlock() 1067 return len(fake.getApplicationRoutesArgsForCall) 1068 } 1069 1070 func (fake *FakeV7Actor) GetApplicationRoutesCalls(stub func(string) ([]resources.Route, v7action.Warnings, error)) { 1071 fake.getApplicationRoutesMutex.Lock() 1072 defer fake.getApplicationRoutesMutex.Unlock() 1073 fake.GetApplicationRoutesStub = stub 1074 } 1075 1076 func (fake *FakeV7Actor) GetApplicationRoutesArgsForCall(i int) string { 1077 fake.getApplicationRoutesMutex.RLock() 1078 defer fake.getApplicationRoutesMutex.RUnlock() 1079 argsForCall := fake.getApplicationRoutesArgsForCall[i] 1080 return argsForCall.arg1 1081 } 1082 1083 func (fake *FakeV7Actor) GetApplicationRoutesReturns(result1 []resources.Route, result2 v7action.Warnings, result3 error) { 1084 fake.getApplicationRoutesMutex.Lock() 1085 defer fake.getApplicationRoutesMutex.Unlock() 1086 fake.GetApplicationRoutesStub = nil 1087 fake.getApplicationRoutesReturns = struct { 1088 result1 []resources.Route 1089 result2 v7action.Warnings 1090 result3 error 1091 }{result1, result2, result3} 1092 } 1093 1094 func (fake *FakeV7Actor) GetApplicationRoutesReturnsOnCall(i int, result1 []resources.Route, result2 v7action.Warnings, result3 error) { 1095 fake.getApplicationRoutesMutex.Lock() 1096 defer fake.getApplicationRoutesMutex.Unlock() 1097 fake.GetApplicationRoutesStub = nil 1098 if fake.getApplicationRoutesReturnsOnCall == nil { 1099 fake.getApplicationRoutesReturnsOnCall = make(map[int]struct { 1100 result1 []resources.Route 1101 result2 v7action.Warnings 1102 result3 error 1103 }) 1104 } 1105 fake.getApplicationRoutesReturnsOnCall[i] = struct { 1106 result1 []resources.Route 1107 result2 v7action.Warnings 1108 result3 error 1109 }{result1, result2, result3} 1110 } 1111 1112 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpace(arg1 []string, arg2 string) ([]resources.Application, v7action.Warnings, error) { 1113 var arg1Copy []string 1114 if arg1 != nil { 1115 arg1Copy = make([]string, len(arg1)) 1116 copy(arg1Copy, arg1) 1117 } 1118 fake.getApplicationsByNamesAndSpaceMutex.Lock() 1119 ret, specificReturn := fake.getApplicationsByNamesAndSpaceReturnsOnCall[len(fake.getApplicationsByNamesAndSpaceArgsForCall)] 1120 fake.getApplicationsByNamesAndSpaceArgsForCall = append(fake.getApplicationsByNamesAndSpaceArgsForCall, struct { 1121 arg1 []string 1122 arg2 string 1123 }{arg1Copy, arg2}) 1124 fake.recordInvocation("GetApplicationsByNamesAndSpace", []interface{}{arg1Copy, arg2}) 1125 fake.getApplicationsByNamesAndSpaceMutex.Unlock() 1126 if fake.GetApplicationsByNamesAndSpaceStub != nil { 1127 return fake.GetApplicationsByNamesAndSpaceStub(arg1, arg2) 1128 } 1129 if specificReturn { 1130 return ret.result1, ret.result2, ret.result3 1131 } 1132 fakeReturns := fake.getApplicationsByNamesAndSpaceReturns 1133 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1134 } 1135 1136 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpaceCallCount() int { 1137 fake.getApplicationsByNamesAndSpaceMutex.RLock() 1138 defer fake.getApplicationsByNamesAndSpaceMutex.RUnlock() 1139 return len(fake.getApplicationsByNamesAndSpaceArgsForCall) 1140 } 1141 1142 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpaceCalls(stub func([]string, string) ([]resources.Application, v7action.Warnings, error)) { 1143 fake.getApplicationsByNamesAndSpaceMutex.Lock() 1144 defer fake.getApplicationsByNamesAndSpaceMutex.Unlock() 1145 fake.GetApplicationsByNamesAndSpaceStub = stub 1146 } 1147 1148 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpaceArgsForCall(i int) ([]string, string) { 1149 fake.getApplicationsByNamesAndSpaceMutex.RLock() 1150 defer fake.getApplicationsByNamesAndSpaceMutex.RUnlock() 1151 argsForCall := fake.getApplicationsByNamesAndSpaceArgsForCall[i] 1152 return argsForCall.arg1, argsForCall.arg2 1153 } 1154 1155 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpaceReturns(result1 []resources.Application, result2 v7action.Warnings, result3 error) { 1156 fake.getApplicationsByNamesAndSpaceMutex.Lock() 1157 defer fake.getApplicationsByNamesAndSpaceMutex.Unlock() 1158 fake.GetApplicationsByNamesAndSpaceStub = nil 1159 fake.getApplicationsByNamesAndSpaceReturns = struct { 1160 result1 []resources.Application 1161 result2 v7action.Warnings 1162 result3 error 1163 }{result1, result2, result3} 1164 } 1165 1166 func (fake *FakeV7Actor) GetApplicationsByNamesAndSpaceReturnsOnCall(i int, result1 []resources.Application, result2 v7action.Warnings, result3 error) { 1167 fake.getApplicationsByNamesAndSpaceMutex.Lock() 1168 defer fake.getApplicationsByNamesAndSpaceMutex.Unlock() 1169 fake.GetApplicationsByNamesAndSpaceStub = nil 1170 if fake.getApplicationsByNamesAndSpaceReturnsOnCall == nil { 1171 fake.getApplicationsByNamesAndSpaceReturnsOnCall = make(map[int]struct { 1172 result1 []resources.Application 1173 result2 v7action.Warnings 1174 result3 error 1175 }) 1176 } 1177 fake.getApplicationsByNamesAndSpaceReturnsOnCall[i] = struct { 1178 result1 []resources.Application 1179 result2 v7action.Warnings 1180 result3 error 1181 }{result1, result2, result3} 1182 } 1183 1184 func (fake *FakeV7Actor) GetDefaultDomain(arg1 string) (resources.Domain, v7action.Warnings, error) { 1185 fake.getDefaultDomainMutex.Lock() 1186 ret, specificReturn := fake.getDefaultDomainReturnsOnCall[len(fake.getDefaultDomainArgsForCall)] 1187 fake.getDefaultDomainArgsForCall = append(fake.getDefaultDomainArgsForCall, struct { 1188 arg1 string 1189 }{arg1}) 1190 fake.recordInvocation("GetDefaultDomain", []interface{}{arg1}) 1191 fake.getDefaultDomainMutex.Unlock() 1192 if fake.GetDefaultDomainStub != nil { 1193 return fake.GetDefaultDomainStub(arg1) 1194 } 1195 if specificReturn { 1196 return ret.result1, ret.result2, ret.result3 1197 } 1198 fakeReturns := fake.getDefaultDomainReturns 1199 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1200 } 1201 1202 func (fake *FakeV7Actor) GetDefaultDomainCallCount() int { 1203 fake.getDefaultDomainMutex.RLock() 1204 defer fake.getDefaultDomainMutex.RUnlock() 1205 return len(fake.getDefaultDomainArgsForCall) 1206 } 1207 1208 func (fake *FakeV7Actor) GetDefaultDomainCalls(stub func(string) (resources.Domain, v7action.Warnings, error)) { 1209 fake.getDefaultDomainMutex.Lock() 1210 defer fake.getDefaultDomainMutex.Unlock() 1211 fake.GetDefaultDomainStub = stub 1212 } 1213 1214 func (fake *FakeV7Actor) GetDefaultDomainArgsForCall(i int) string { 1215 fake.getDefaultDomainMutex.RLock() 1216 defer fake.getDefaultDomainMutex.RUnlock() 1217 argsForCall := fake.getDefaultDomainArgsForCall[i] 1218 return argsForCall.arg1 1219 } 1220 1221 func (fake *FakeV7Actor) GetDefaultDomainReturns(result1 resources.Domain, result2 v7action.Warnings, result3 error) { 1222 fake.getDefaultDomainMutex.Lock() 1223 defer fake.getDefaultDomainMutex.Unlock() 1224 fake.GetDefaultDomainStub = nil 1225 fake.getDefaultDomainReturns = struct { 1226 result1 resources.Domain 1227 result2 v7action.Warnings 1228 result3 error 1229 }{result1, result2, result3} 1230 } 1231 1232 func (fake *FakeV7Actor) GetDefaultDomainReturnsOnCall(i int, result1 resources.Domain, result2 v7action.Warnings, result3 error) { 1233 fake.getDefaultDomainMutex.Lock() 1234 defer fake.getDefaultDomainMutex.Unlock() 1235 fake.GetDefaultDomainStub = nil 1236 if fake.getDefaultDomainReturnsOnCall == nil { 1237 fake.getDefaultDomainReturnsOnCall = make(map[int]struct { 1238 result1 resources.Domain 1239 result2 v7action.Warnings 1240 result3 error 1241 }) 1242 } 1243 fake.getDefaultDomainReturnsOnCall[i] = struct { 1244 result1 resources.Domain 1245 result2 v7action.Warnings 1246 result3 error 1247 }{result1, result2, result3} 1248 } 1249 1250 func (fake *FakeV7Actor) GetDomain(arg1 string) (resources.Domain, v7action.Warnings, error) { 1251 fake.getDomainMutex.Lock() 1252 ret, specificReturn := fake.getDomainReturnsOnCall[len(fake.getDomainArgsForCall)] 1253 fake.getDomainArgsForCall = append(fake.getDomainArgsForCall, struct { 1254 arg1 string 1255 }{arg1}) 1256 fake.recordInvocation("GetDomain", []interface{}{arg1}) 1257 fake.getDomainMutex.Unlock() 1258 if fake.GetDomainStub != nil { 1259 return fake.GetDomainStub(arg1) 1260 } 1261 if specificReturn { 1262 return ret.result1, ret.result2, ret.result3 1263 } 1264 fakeReturns := fake.getDomainReturns 1265 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1266 } 1267 1268 func (fake *FakeV7Actor) GetDomainCallCount() int { 1269 fake.getDomainMutex.RLock() 1270 defer fake.getDomainMutex.RUnlock() 1271 return len(fake.getDomainArgsForCall) 1272 } 1273 1274 func (fake *FakeV7Actor) GetDomainCalls(stub func(string) (resources.Domain, v7action.Warnings, error)) { 1275 fake.getDomainMutex.Lock() 1276 defer fake.getDomainMutex.Unlock() 1277 fake.GetDomainStub = stub 1278 } 1279 1280 func (fake *FakeV7Actor) GetDomainArgsForCall(i int) string { 1281 fake.getDomainMutex.RLock() 1282 defer fake.getDomainMutex.RUnlock() 1283 argsForCall := fake.getDomainArgsForCall[i] 1284 return argsForCall.arg1 1285 } 1286 1287 func (fake *FakeV7Actor) GetDomainReturns(result1 resources.Domain, result2 v7action.Warnings, result3 error) { 1288 fake.getDomainMutex.Lock() 1289 defer fake.getDomainMutex.Unlock() 1290 fake.GetDomainStub = nil 1291 fake.getDomainReturns = struct { 1292 result1 resources.Domain 1293 result2 v7action.Warnings 1294 result3 error 1295 }{result1, result2, result3} 1296 } 1297 1298 func (fake *FakeV7Actor) GetDomainReturnsOnCall(i int, result1 resources.Domain, result2 v7action.Warnings, result3 error) { 1299 fake.getDomainMutex.Lock() 1300 defer fake.getDomainMutex.Unlock() 1301 fake.GetDomainStub = nil 1302 if fake.getDomainReturnsOnCall == nil { 1303 fake.getDomainReturnsOnCall = make(map[int]struct { 1304 result1 resources.Domain 1305 result2 v7action.Warnings 1306 result3 error 1307 }) 1308 } 1309 fake.getDomainReturnsOnCall[i] = struct { 1310 result1 resources.Domain 1311 result2 v7action.Warnings 1312 result3 error 1313 }{result1, result2, result3} 1314 } 1315 1316 func (fake *FakeV7Actor) GetRouteByAttributes(arg1 resources.Domain, arg2 string, arg3 string, arg4 int) (resources.Route, v7action.Warnings, error) { 1317 fake.getRouteByAttributesMutex.Lock() 1318 ret, specificReturn := fake.getRouteByAttributesReturnsOnCall[len(fake.getRouteByAttributesArgsForCall)] 1319 fake.getRouteByAttributesArgsForCall = append(fake.getRouteByAttributesArgsForCall, struct { 1320 arg1 resources.Domain 1321 arg2 string 1322 arg3 string 1323 arg4 int 1324 }{arg1, arg2, arg3, arg4}) 1325 fake.recordInvocation("GetRouteByAttributes", []interface{}{arg1, arg2, arg3, arg4}) 1326 fake.getRouteByAttributesMutex.Unlock() 1327 if fake.GetRouteByAttributesStub != nil { 1328 return fake.GetRouteByAttributesStub(arg1, arg2, arg3, arg4) 1329 } 1330 if specificReturn { 1331 return ret.result1, ret.result2, ret.result3 1332 } 1333 fakeReturns := fake.getRouteByAttributesReturns 1334 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1335 } 1336 1337 func (fake *FakeV7Actor) GetRouteByAttributesCallCount() int { 1338 fake.getRouteByAttributesMutex.RLock() 1339 defer fake.getRouteByAttributesMutex.RUnlock() 1340 return len(fake.getRouteByAttributesArgsForCall) 1341 } 1342 1343 func (fake *FakeV7Actor) GetRouteByAttributesCalls(stub func(resources.Domain, string, string, int) (resources.Route, v7action.Warnings, error)) { 1344 fake.getRouteByAttributesMutex.Lock() 1345 defer fake.getRouteByAttributesMutex.Unlock() 1346 fake.GetRouteByAttributesStub = stub 1347 } 1348 1349 func (fake *FakeV7Actor) GetRouteByAttributesArgsForCall(i int) (resources.Domain, string, string, int) { 1350 fake.getRouteByAttributesMutex.RLock() 1351 defer fake.getRouteByAttributesMutex.RUnlock() 1352 argsForCall := fake.getRouteByAttributesArgsForCall[i] 1353 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 1354 } 1355 1356 func (fake *FakeV7Actor) GetRouteByAttributesReturns(result1 resources.Route, result2 v7action.Warnings, result3 error) { 1357 fake.getRouteByAttributesMutex.Lock() 1358 defer fake.getRouteByAttributesMutex.Unlock() 1359 fake.GetRouteByAttributesStub = nil 1360 fake.getRouteByAttributesReturns = struct { 1361 result1 resources.Route 1362 result2 v7action.Warnings 1363 result3 error 1364 }{result1, result2, result3} 1365 } 1366 1367 func (fake *FakeV7Actor) GetRouteByAttributesReturnsOnCall(i int, result1 resources.Route, result2 v7action.Warnings, result3 error) { 1368 fake.getRouteByAttributesMutex.Lock() 1369 defer fake.getRouteByAttributesMutex.Unlock() 1370 fake.GetRouteByAttributesStub = nil 1371 if fake.getRouteByAttributesReturnsOnCall == nil { 1372 fake.getRouteByAttributesReturnsOnCall = make(map[int]struct { 1373 result1 resources.Route 1374 result2 v7action.Warnings 1375 result3 error 1376 }) 1377 } 1378 fake.getRouteByAttributesReturnsOnCall[i] = struct { 1379 result1 resources.Route 1380 result2 v7action.Warnings 1381 result3 error 1382 }{result1, result2, result3} 1383 } 1384 1385 func (fake *FakeV7Actor) GetRouteDestinationByAppGUID(arg1 resources.Route, arg2 string) (resources.RouteDestination, error) { 1386 fake.getRouteDestinationByAppGUIDMutex.Lock() 1387 ret, specificReturn := fake.getRouteDestinationByAppGUIDReturnsOnCall[len(fake.getRouteDestinationByAppGUIDArgsForCall)] 1388 fake.getRouteDestinationByAppGUIDArgsForCall = append(fake.getRouteDestinationByAppGUIDArgsForCall, struct { 1389 arg1 resources.Route 1390 arg2 string 1391 }{arg1, arg2}) 1392 fake.recordInvocation("GetRouteDestinationByAppGUID", []interface{}{arg1, arg2}) 1393 fake.getRouteDestinationByAppGUIDMutex.Unlock() 1394 if fake.GetRouteDestinationByAppGUIDStub != nil { 1395 return fake.GetRouteDestinationByAppGUIDStub(arg1, arg2) 1396 } 1397 if specificReturn { 1398 return ret.result1, ret.result2 1399 } 1400 fakeReturns := fake.getRouteDestinationByAppGUIDReturns 1401 return fakeReturns.result1, fakeReturns.result2 1402 } 1403 1404 func (fake *FakeV7Actor) GetRouteDestinationByAppGUIDCallCount() int { 1405 fake.getRouteDestinationByAppGUIDMutex.RLock() 1406 defer fake.getRouteDestinationByAppGUIDMutex.RUnlock() 1407 return len(fake.getRouteDestinationByAppGUIDArgsForCall) 1408 } 1409 1410 func (fake *FakeV7Actor) GetRouteDestinationByAppGUIDCalls(stub func(resources.Route, string) (resources.RouteDestination, error)) { 1411 fake.getRouteDestinationByAppGUIDMutex.Lock() 1412 defer fake.getRouteDestinationByAppGUIDMutex.Unlock() 1413 fake.GetRouteDestinationByAppGUIDStub = stub 1414 } 1415 1416 func (fake *FakeV7Actor) GetRouteDestinationByAppGUIDArgsForCall(i int) (resources.Route, string) { 1417 fake.getRouteDestinationByAppGUIDMutex.RLock() 1418 defer fake.getRouteDestinationByAppGUIDMutex.RUnlock() 1419 argsForCall := fake.getRouteDestinationByAppGUIDArgsForCall[i] 1420 return argsForCall.arg1, argsForCall.arg2 1421 } 1422 1423 func (fake *FakeV7Actor) GetRouteDestinationByAppGUIDReturns(result1 resources.RouteDestination, result2 error) { 1424 fake.getRouteDestinationByAppGUIDMutex.Lock() 1425 defer fake.getRouteDestinationByAppGUIDMutex.Unlock() 1426 fake.GetRouteDestinationByAppGUIDStub = nil 1427 fake.getRouteDestinationByAppGUIDReturns = struct { 1428 result1 resources.RouteDestination 1429 result2 error 1430 }{result1, result2} 1431 } 1432 1433 func (fake *FakeV7Actor) GetRouteDestinationByAppGUIDReturnsOnCall(i int, result1 resources.RouteDestination, result2 error) { 1434 fake.getRouteDestinationByAppGUIDMutex.Lock() 1435 defer fake.getRouteDestinationByAppGUIDMutex.Unlock() 1436 fake.GetRouteDestinationByAppGUIDStub = nil 1437 if fake.getRouteDestinationByAppGUIDReturnsOnCall == nil { 1438 fake.getRouteDestinationByAppGUIDReturnsOnCall = make(map[int]struct { 1439 result1 resources.RouteDestination 1440 result2 error 1441 }) 1442 } 1443 fake.getRouteDestinationByAppGUIDReturnsOnCall[i] = struct { 1444 result1 resources.RouteDestination 1445 result2 error 1446 }{result1, result2} 1447 } 1448 1449 func (fake *FakeV7Actor) MapRoute(arg1 string, arg2 string, arg3 string) (v7action.Warnings, error) { 1450 fake.mapRouteMutex.Lock() 1451 ret, specificReturn := fake.mapRouteReturnsOnCall[len(fake.mapRouteArgsForCall)] 1452 fake.mapRouteArgsForCall = append(fake.mapRouteArgsForCall, struct { 1453 arg1 string 1454 arg2 string 1455 arg3 string 1456 }{arg1, arg2, arg3}) 1457 fake.recordInvocation("MapRoute", []interface{}{arg1, arg2, arg3}) 1458 fake.mapRouteMutex.Unlock() 1459 if fake.MapRouteStub != nil { 1460 return fake.MapRouteStub(arg1, arg2, arg3) 1461 } 1462 if specificReturn { 1463 return ret.result1, ret.result2 1464 } 1465 fakeReturns := fake.mapRouteReturns 1466 return fakeReturns.result1, fakeReturns.result2 1467 } 1468 1469 func (fake *FakeV7Actor) MapRouteCallCount() int { 1470 fake.mapRouteMutex.RLock() 1471 defer fake.mapRouteMutex.RUnlock() 1472 return len(fake.mapRouteArgsForCall) 1473 } 1474 1475 func (fake *FakeV7Actor) MapRouteCalls(stub func(string, string, string) (v7action.Warnings, error)) { 1476 fake.mapRouteMutex.Lock() 1477 defer fake.mapRouteMutex.Unlock() 1478 fake.MapRouteStub = stub 1479 } 1480 1481 func (fake *FakeV7Actor) MapRouteArgsForCall(i int) (string, string, string) { 1482 fake.mapRouteMutex.RLock() 1483 defer fake.mapRouteMutex.RUnlock() 1484 argsForCall := fake.mapRouteArgsForCall[i] 1485 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1486 } 1487 1488 func (fake *FakeV7Actor) MapRouteReturns(result1 v7action.Warnings, result2 error) { 1489 fake.mapRouteMutex.Lock() 1490 defer fake.mapRouteMutex.Unlock() 1491 fake.MapRouteStub = nil 1492 fake.mapRouteReturns = struct { 1493 result1 v7action.Warnings 1494 result2 error 1495 }{result1, result2} 1496 } 1497 1498 func (fake *FakeV7Actor) MapRouteReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 1499 fake.mapRouteMutex.Lock() 1500 defer fake.mapRouteMutex.Unlock() 1501 fake.MapRouteStub = nil 1502 if fake.mapRouteReturnsOnCall == nil { 1503 fake.mapRouteReturnsOnCall = make(map[int]struct { 1504 result1 v7action.Warnings 1505 result2 error 1506 }) 1507 } 1508 fake.mapRouteReturnsOnCall[i] = struct { 1509 result1 v7action.Warnings 1510 result2 error 1511 }{result1, result2} 1512 } 1513 1514 func (fake *FakeV7Actor) PollBuild(arg1 string, arg2 string) (resources.Droplet, v7action.Warnings, error) { 1515 fake.pollBuildMutex.Lock() 1516 ret, specificReturn := fake.pollBuildReturnsOnCall[len(fake.pollBuildArgsForCall)] 1517 fake.pollBuildArgsForCall = append(fake.pollBuildArgsForCall, struct { 1518 arg1 string 1519 arg2 string 1520 }{arg1, arg2}) 1521 fake.recordInvocation("PollBuild", []interface{}{arg1, arg2}) 1522 fake.pollBuildMutex.Unlock() 1523 if fake.PollBuildStub != nil { 1524 return fake.PollBuildStub(arg1, arg2) 1525 } 1526 if specificReturn { 1527 return ret.result1, ret.result2, ret.result3 1528 } 1529 fakeReturns := fake.pollBuildReturns 1530 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1531 } 1532 1533 func (fake *FakeV7Actor) PollBuildCallCount() int { 1534 fake.pollBuildMutex.RLock() 1535 defer fake.pollBuildMutex.RUnlock() 1536 return len(fake.pollBuildArgsForCall) 1537 } 1538 1539 func (fake *FakeV7Actor) PollBuildCalls(stub func(string, string) (resources.Droplet, v7action.Warnings, error)) { 1540 fake.pollBuildMutex.Lock() 1541 defer fake.pollBuildMutex.Unlock() 1542 fake.PollBuildStub = stub 1543 } 1544 1545 func (fake *FakeV7Actor) PollBuildArgsForCall(i int) (string, string) { 1546 fake.pollBuildMutex.RLock() 1547 defer fake.pollBuildMutex.RUnlock() 1548 argsForCall := fake.pollBuildArgsForCall[i] 1549 return argsForCall.arg1, argsForCall.arg2 1550 } 1551 1552 func (fake *FakeV7Actor) PollBuildReturns(result1 resources.Droplet, result2 v7action.Warnings, result3 error) { 1553 fake.pollBuildMutex.Lock() 1554 defer fake.pollBuildMutex.Unlock() 1555 fake.PollBuildStub = nil 1556 fake.pollBuildReturns = struct { 1557 result1 resources.Droplet 1558 result2 v7action.Warnings 1559 result3 error 1560 }{result1, result2, result3} 1561 } 1562 1563 func (fake *FakeV7Actor) PollBuildReturnsOnCall(i int, result1 resources.Droplet, result2 v7action.Warnings, result3 error) { 1564 fake.pollBuildMutex.Lock() 1565 defer fake.pollBuildMutex.Unlock() 1566 fake.PollBuildStub = nil 1567 if fake.pollBuildReturnsOnCall == nil { 1568 fake.pollBuildReturnsOnCall = make(map[int]struct { 1569 result1 resources.Droplet 1570 result2 v7action.Warnings 1571 result3 error 1572 }) 1573 } 1574 fake.pollBuildReturnsOnCall[i] = struct { 1575 result1 resources.Droplet 1576 result2 v7action.Warnings 1577 result3 error 1578 }{result1, result2, result3} 1579 } 1580 1581 func (fake *FakeV7Actor) PollPackage(arg1 resources.Package) (resources.Package, v7action.Warnings, error) { 1582 fake.pollPackageMutex.Lock() 1583 ret, specificReturn := fake.pollPackageReturnsOnCall[len(fake.pollPackageArgsForCall)] 1584 fake.pollPackageArgsForCall = append(fake.pollPackageArgsForCall, struct { 1585 arg1 resources.Package 1586 }{arg1}) 1587 fake.recordInvocation("PollPackage", []interface{}{arg1}) 1588 fake.pollPackageMutex.Unlock() 1589 if fake.PollPackageStub != nil { 1590 return fake.PollPackageStub(arg1) 1591 } 1592 if specificReturn { 1593 return ret.result1, ret.result2, ret.result3 1594 } 1595 fakeReturns := fake.pollPackageReturns 1596 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1597 } 1598 1599 func (fake *FakeV7Actor) PollPackageCallCount() int { 1600 fake.pollPackageMutex.RLock() 1601 defer fake.pollPackageMutex.RUnlock() 1602 return len(fake.pollPackageArgsForCall) 1603 } 1604 1605 func (fake *FakeV7Actor) PollPackageCalls(stub func(resources.Package) (resources.Package, v7action.Warnings, error)) { 1606 fake.pollPackageMutex.Lock() 1607 defer fake.pollPackageMutex.Unlock() 1608 fake.PollPackageStub = stub 1609 } 1610 1611 func (fake *FakeV7Actor) PollPackageArgsForCall(i int) resources.Package { 1612 fake.pollPackageMutex.RLock() 1613 defer fake.pollPackageMutex.RUnlock() 1614 argsForCall := fake.pollPackageArgsForCall[i] 1615 return argsForCall.arg1 1616 } 1617 1618 func (fake *FakeV7Actor) PollPackageReturns(result1 resources.Package, result2 v7action.Warnings, result3 error) { 1619 fake.pollPackageMutex.Lock() 1620 defer fake.pollPackageMutex.Unlock() 1621 fake.PollPackageStub = nil 1622 fake.pollPackageReturns = struct { 1623 result1 resources.Package 1624 result2 v7action.Warnings 1625 result3 error 1626 }{result1, result2, result3} 1627 } 1628 1629 func (fake *FakeV7Actor) PollPackageReturnsOnCall(i int, result1 resources.Package, result2 v7action.Warnings, result3 error) { 1630 fake.pollPackageMutex.Lock() 1631 defer fake.pollPackageMutex.Unlock() 1632 fake.PollPackageStub = nil 1633 if fake.pollPackageReturnsOnCall == nil { 1634 fake.pollPackageReturnsOnCall = make(map[int]struct { 1635 result1 resources.Package 1636 result2 v7action.Warnings 1637 result3 error 1638 }) 1639 } 1640 fake.pollPackageReturnsOnCall[i] = struct { 1641 result1 resources.Package 1642 result2 v7action.Warnings 1643 result3 error 1644 }{result1, result2, result3} 1645 } 1646 1647 func (fake *FakeV7Actor) PollStart(arg1 resources.Application, arg2 bool, arg3 func(string)) (v7action.Warnings, error) { 1648 fake.pollStartMutex.Lock() 1649 ret, specificReturn := fake.pollStartReturnsOnCall[len(fake.pollStartArgsForCall)] 1650 fake.pollStartArgsForCall = append(fake.pollStartArgsForCall, struct { 1651 arg1 resources.Application 1652 arg2 bool 1653 arg3 func(string) 1654 }{arg1, arg2, arg3}) 1655 fake.recordInvocation("PollStart", []interface{}{arg1, arg2, arg3}) 1656 fake.pollStartMutex.Unlock() 1657 if fake.PollStartStub != nil { 1658 return fake.PollStartStub(arg1, arg2, arg3) 1659 } 1660 if specificReturn { 1661 return ret.result1, ret.result2 1662 } 1663 fakeReturns := fake.pollStartReturns 1664 return fakeReturns.result1, fakeReturns.result2 1665 } 1666 1667 func (fake *FakeV7Actor) PollStartCallCount() int { 1668 fake.pollStartMutex.RLock() 1669 defer fake.pollStartMutex.RUnlock() 1670 return len(fake.pollStartArgsForCall) 1671 } 1672 1673 func (fake *FakeV7Actor) PollStartCalls(stub func(resources.Application, bool, func(string)) (v7action.Warnings, error)) { 1674 fake.pollStartMutex.Lock() 1675 defer fake.pollStartMutex.Unlock() 1676 fake.PollStartStub = stub 1677 } 1678 1679 func (fake *FakeV7Actor) PollStartArgsForCall(i int) (resources.Application, bool, func(string)) { 1680 fake.pollStartMutex.RLock() 1681 defer fake.pollStartMutex.RUnlock() 1682 argsForCall := fake.pollStartArgsForCall[i] 1683 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1684 } 1685 1686 func (fake *FakeV7Actor) PollStartReturns(result1 v7action.Warnings, result2 error) { 1687 fake.pollStartMutex.Lock() 1688 defer fake.pollStartMutex.Unlock() 1689 fake.PollStartStub = nil 1690 fake.pollStartReturns = struct { 1691 result1 v7action.Warnings 1692 result2 error 1693 }{result1, result2} 1694 } 1695 1696 func (fake *FakeV7Actor) PollStartReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 1697 fake.pollStartMutex.Lock() 1698 defer fake.pollStartMutex.Unlock() 1699 fake.PollStartStub = nil 1700 if fake.pollStartReturnsOnCall == nil { 1701 fake.pollStartReturnsOnCall = make(map[int]struct { 1702 result1 v7action.Warnings 1703 result2 error 1704 }) 1705 } 1706 fake.pollStartReturnsOnCall[i] = struct { 1707 result1 v7action.Warnings 1708 result2 error 1709 }{result1, result2} 1710 } 1711 1712 func (fake *FakeV7Actor) PollStartForRolling(arg1 resources.Application, arg2 string, arg3 bool, arg4 func(string)) (v7action.Warnings, error) { 1713 fake.pollStartForRollingMutex.Lock() 1714 ret, specificReturn := fake.pollStartForRollingReturnsOnCall[len(fake.pollStartForRollingArgsForCall)] 1715 fake.pollStartForRollingArgsForCall = append(fake.pollStartForRollingArgsForCall, struct { 1716 arg1 resources.Application 1717 arg2 string 1718 arg3 bool 1719 arg4 func(string) 1720 }{arg1, arg2, arg3, arg4}) 1721 fake.recordInvocation("PollStartForRolling", []interface{}{arg1, arg2, arg3, arg4}) 1722 fake.pollStartForRollingMutex.Unlock() 1723 if fake.PollStartForRollingStub != nil { 1724 return fake.PollStartForRollingStub(arg1, arg2, arg3, arg4) 1725 } 1726 if specificReturn { 1727 return ret.result1, ret.result2 1728 } 1729 fakeReturns := fake.pollStartForRollingReturns 1730 return fakeReturns.result1, fakeReturns.result2 1731 } 1732 1733 func (fake *FakeV7Actor) PollStartForRollingCallCount() int { 1734 fake.pollStartForRollingMutex.RLock() 1735 defer fake.pollStartForRollingMutex.RUnlock() 1736 return len(fake.pollStartForRollingArgsForCall) 1737 } 1738 1739 func (fake *FakeV7Actor) PollStartForRollingCalls(stub func(resources.Application, string, bool, func(string)) (v7action.Warnings, error)) { 1740 fake.pollStartForRollingMutex.Lock() 1741 defer fake.pollStartForRollingMutex.Unlock() 1742 fake.PollStartForRollingStub = stub 1743 } 1744 1745 func (fake *FakeV7Actor) PollStartForRollingArgsForCall(i int) (resources.Application, string, bool, func(string)) { 1746 fake.pollStartForRollingMutex.RLock() 1747 defer fake.pollStartForRollingMutex.RUnlock() 1748 argsForCall := fake.pollStartForRollingArgsForCall[i] 1749 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 1750 } 1751 1752 func (fake *FakeV7Actor) PollStartForRollingReturns(result1 v7action.Warnings, result2 error) { 1753 fake.pollStartForRollingMutex.Lock() 1754 defer fake.pollStartForRollingMutex.Unlock() 1755 fake.PollStartForRollingStub = nil 1756 fake.pollStartForRollingReturns = struct { 1757 result1 v7action.Warnings 1758 result2 error 1759 }{result1, result2} 1760 } 1761 1762 func (fake *FakeV7Actor) PollStartForRollingReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 1763 fake.pollStartForRollingMutex.Lock() 1764 defer fake.pollStartForRollingMutex.Unlock() 1765 fake.PollStartForRollingStub = nil 1766 if fake.pollStartForRollingReturnsOnCall == nil { 1767 fake.pollStartForRollingReturnsOnCall = make(map[int]struct { 1768 result1 v7action.Warnings 1769 result2 error 1770 }) 1771 } 1772 fake.pollStartForRollingReturnsOnCall[i] = struct { 1773 result1 v7action.Warnings 1774 result2 error 1775 }{result1, result2} 1776 } 1777 1778 func (fake *FakeV7Actor) ResourceMatch(arg1 []sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error) { 1779 var arg1Copy []sharedaction.V3Resource 1780 if arg1 != nil { 1781 arg1Copy = make([]sharedaction.V3Resource, len(arg1)) 1782 copy(arg1Copy, arg1) 1783 } 1784 fake.resourceMatchMutex.Lock() 1785 ret, specificReturn := fake.resourceMatchReturnsOnCall[len(fake.resourceMatchArgsForCall)] 1786 fake.resourceMatchArgsForCall = append(fake.resourceMatchArgsForCall, struct { 1787 arg1 []sharedaction.V3Resource 1788 }{arg1Copy}) 1789 fake.recordInvocation("ResourceMatch", []interface{}{arg1Copy}) 1790 fake.resourceMatchMutex.Unlock() 1791 if fake.ResourceMatchStub != nil { 1792 return fake.ResourceMatchStub(arg1) 1793 } 1794 if specificReturn { 1795 return ret.result1, ret.result2, ret.result3 1796 } 1797 fakeReturns := fake.resourceMatchReturns 1798 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1799 } 1800 1801 func (fake *FakeV7Actor) ResourceMatchCallCount() int { 1802 fake.resourceMatchMutex.RLock() 1803 defer fake.resourceMatchMutex.RUnlock() 1804 return len(fake.resourceMatchArgsForCall) 1805 } 1806 1807 func (fake *FakeV7Actor) ResourceMatchCalls(stub func([]sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error)) { 1808 fake.resourceMatchMutex.Lock() 1809 defer fake.resourceMatchMutex.Unlock() 1810 fake.ResourceMatchStub = stub 1811 } 1812 1813 func (fake *FakeV7Actor) ResourceMatchArgsForCall(i int) []sharedaction.V3Resource { 1814 fake.resourceMatchMutex.RLock() 1815 defer fake.resourceMatchMutex.RUnlock() 1816 argsForCall := fake.resourceMatchArgsForCall[i] 1817 return argsForCall.arg1 1818 } 1819 1820 func (fake *FakeV7Actor) ResourceMatchReturns(result1 []sharedaction.V3Resource, result2 v7action.Warnings, result3 error) { 1821 fake.resourceMatchMutex.Lock() 1822 defer fake.resourceMatchMutex.Unlock() 1823 fake.ResourceMatchStub = nil 1824 fake.resourceMatchReturns = struct { 1825 result1 []sharedaction.V3Resource 1826 result2 v7action.Warnings 1827 result3 error 1828 }{result1, result2, result3} 1829 } 1830 1831 func (fake *FakeV7Actor) ResourceMatchReturnsOnCall(i int, result1 []sharedaction.V3Resource, result2 v7action.Warnings, result3 error) { 1832 fake.resourceMatchMutex.Lock() 1833 defer fake.resourceMatchMutex.Unlock() 1834 fake.ResourceMatchStub = nil 1835 if fake.resourceMatchReturnsOnCall == nil { 1836 fake.resourceMatchReturnsOnCall = make(map[int]struct { 1837 result1 []sharedaction.V3Resource 1838 result2 v7action.Warnings 1839 result3 error 1840 }) 1841 } 1842 fake.resourceMatchReturnsOnCall[i] = struct { 1843 result1 []sharedaction.V3Resource 1844 result2 v7action.Warnings 1845 result3 error 1846 }{result1, result2, result3} 1847 } 1848 1849 func (fake *FakeV7Actor) RestartApplication(arg1 string, arg2 bool) (v7action.Warnings, error) { 1850 fake.restartApplicationMutex.Lock() 1851 ret, specificReturn := fake.restartApplicationReturnsOnCall[len(fake.restartApplicationArgsForCall)] 1852 fake.restartApplicationArgsForCall = append(fake.restartApplicationArgsForCall, struct { 1853 arg1 string 1854 arg2 bool 1855 }{arg1, arg2}) 1856 fake.recordInvocation("RestartApplication", []interface{}{arg1, arg2}) 1857 fake.restartApplicationMutex.Unlock() 1858 if fake.RestartApplicationStub != nil { 1859 return fake.RestartApplicationStub(arg1, arg2) 1860 } 1861 if specificReturn { 1862 return ret.result1, ret.result2 1863 } 1864 fakeReturns := fake.restartApplicationReturns 1865 return fakeReturns.result1, fakeReturns.result2 1866 } 1867 1868 func (fake *FakeV7Actor) RestartApplicationCallCount() int { 1869 fake.restartApplicationMutex.RLock() 1870 defer fake.restartApplicationMutex.RUnlock() 1871 return len(fake.restartApplicationArgsForCall) 1872 } 1873 1874 func (fake *FakeV7Actor) RestartApplicationCalls(stub func(string, bool) (v7action.Warnings, error)) { 1875 fake.restartApplicationMutex.Lock() 1876 defer fake.restartApplicationMutex.Unlock() 1877 fake.RestartApplicationStub = stub 1878 } 1879 1880 func (fake *FakeV7Actor) RestartApplicationArgsForCall(i int) (string, bool) { 1881 fake.restartApplicationMutex.RLock() 1882 defer fake.restartApplicationMutex.RUnlock() 1883 argsForCall := fake.restartApplicationArgsForCall[i] 1884 return argsForCall.arg1, argsForCall.arg2 1885 } 1886 1887 func (fake *FakeV7Actor) RestartApplicationReturns(result1 v7action.Warnings, result2 error) { 1888 fake.restartApplicationMutex.Lock() 1889 defer fake.restartApplicationMutex.Unlock() 1890 fake.RestartApplicationStub = nil 1891 fake.restartApplicationReturns = struct { 1892 result1 v7action.Warnings 1893 result2 error 1894 }{result1, result2} 1895 } 1896 1897 func (fake *FakeV7Actor) RestartApplicationReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 1898 fake.restartApplicationMutex.Lock() 1899 defer fake.restartApplicationMutex.Unlock() 1900 fake.RestartApplicationStub = nil 1901 if fake.restartApplicationReturnsOnCall == nil { 1902 fake.restartApplicationReturnsOnCall = make(map[int]struct { 1903 result1 v7action.Warnings 1904 result2 error 1905 }) 1906 } 1907 fake.restartApplicationReturnsOnCall[i] = struct { 1908 result1 v7action.Warnings 1909 result2 error 1910 }{result1, result2} 1911 } 1912 1913 func (fake *FakeV7Actor) ScaleProcessByApplication(arg1 string, arg2 resources.Process) (v7action.Warnings, error) { 1914 fake.scaleProcessByApplicationMutex.Lock() 1915 ret, specificReturn := fake.scaleProcessByApplicationReturnsOnCall[len(fake.scaleProcessByApplicationArgsForCall)] 1916 fake.scaleProcessByApplicationArgsForCall = append(fake.scaleProcessByApplicationArgsForCall, struct { 1917 arg1 string 1918 arg2 resources.Process 1919 }{arg1, arg2}) 1920 fake.recordInvocation("ScaleProcessByApplication", []interface{}{arg1, arg2}) 1921 fake.scaleProcessByApplicationMutex.Unlock() 1922 if fake.ScaleProcessByApplicationStub != nil { 1923 return fake.ScaleProcessByApplicationStub(arg1, arg2) 1924 } 1925 if specificReturn { 1926 return ret.result1, ret.result2 1927 } 1928 fakeReturns := fake.scaleProcessByApplicationReturns 1929 return fakeReturns.result1, fakeReturns.result2 1930 } 1931 1932 func (fake *FakeV7Actor) ScaleProcessByApplicationCallCount() int { 1933 fake.scaleProcessByApplicationMutex.RLock() 1934 defer fake.scaleProcessByApplicationMutex.RUnlock() 1935 return len(fake.scaleProcessByApplicationArgsForCall) 1936 } 1937 1938 func (fake *FakeV7Actor) ScaleProcessByApplicationCalls(stub func(string, resources.Process) (v7action.Warnings, error)) { 1939 fake.scaleProcessByApplicationMutex.Lock() 1940 defer fake.scaleProcessByApplicationMutex.Unlock() 1941 fake.ScaleProcessByApplicationStub = stub 1942 } 1943 1944 func (fake *FakeV7Actor) ScaleProcessByApplicationArgsForCall(i int) (string, resources.Process) { 1945 fake.scaleProcessByApplicationMutex.RLock() 1946 defer fake.scaleProcessByApplicationMutex.RUnlock() 1947 argsForCall := fake.scaleProcessByApplicationArgsForCall[i] 1948 return argsForCall.arg1, argsForCall.arg2 1949 } 1950 1951 func (fake *FakeV7Actor) ScaleProcessByApplicationReturns(result1 v7action.Warnings, result2 error) { 1952 fake.scaleProcessByApplicationMutex.Lock() 1953 defer fake.scaleProcessByApplicationMutex.Unlock() 1954 fake.ScaleProcessByApplicationStub = nil 1955 fake.scaleProcessByApplicationReturns = struct { 1956 result1 v7action.Warnings 1957 result2 error 1958 }{result1, result2} 1959 } 1960 1961 func (fake *FakeV7Actor) ScaleProcessByApplicationReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 1962 fake.scaleProcessByApplicationMutex.Lock() 1963 defer fake.scaleProcessByApplicationMutex.Unlock() 1964 fake.ScaleProcessByApplicationStub = nil 1965 if fake.scaleProcessByApplicationReturnsOnCall == nil { 1966 fake.scaleProcessByApplicationReturnsOnCall = make(map[int]struct { 1967 result1 v7action.Warnings 1968 result2 error 1969 }) 1970 } 1971 fake.scaleProcessByApplicationReturnsOnCall[i] = struct { 1972 result1 v7action.Warnings 1973 result2 error 1974 }{result1, result2} 1975 } 1976 1977 func (fake *FakeV7Actor) SetApplicationDroplet(arg1 string, arg2 string) (v7action.Warnings, error) { 1978 fake.setApplicationDropletMutex.Lock() 1979 ret, specificReturn := fake.setApplicationDropletReturnsOnCall[len(fake.setApplicationDropletArgsForCall)] 1980 fake.setApplicationDropletArgsForCall = append(fake.setApplicationDropletArgsForCall, struct { 1981 arg1 string 1982 arg2 string 1983 }{arg1, arg2}) 1984 fake.recordInvocation("SetApplicationDroplet", []interface{}{arg1, arg2}) 1985 fake.setApplicationDropletMutex.Unlock() 1986 if fake.SetApplicationDropletStub != nil { 1987 return fake.SetApplicationDropletStub(arg1, arg2) 1988 } 1989 if specificReturn { 1990 return ret.result1, ret.result2 1991 } 1992 fakeReturns := fake.setApplicationDropletReturns 1993 return fakeReturns.result1, fakeReturns.result2 1994 } 1995 1996 func (fake *FakeV7Actor) SetApplicationDropletCallCount() int { 1997 fake.setApplicationDropletMutex.RLock() 1998 defer fake.setApplicationDropletMutex.RUnlock() 1999 return len(fake.setApplicationDropletArgsForCall) 2000 } 2001 2002 func (fake *FakeV7Actor) SetApplicationDropletCalls(stub func(string, string) (v7action.Warnings, error)) { 2003 fake.setApplicationDropletMutex.Lock() 2004 defer fake.setApplicationDropletMutex.Unlock() 2005 fake.SetApplicationDropletStub = stub 2006 } 2007 2008 func (fake *FakeV7Actor) SetApplicationDropletArgsForCall(i int) (string, string) { 2009 fake.setApplicationDropletMutex.RLock() 2010 defer fake.setApplicationDropletMutex.RUnlock() 2011 argsForCall := fake.setApplicationDropletArgsForCall[i] 2012 return argsForCall.arg1, argsForCall.arg2 2013 } 2014 2015 func (fake *FakeV7Actor) SetApplicationDropletReturns(result1 v7action.Warnings, result2 error) { 2016 fake.setApplicationDropletMutex.Lock() 2017 defer fake.setApplicationDropletMutex.Unlock() 2018 fake.SetApplicationDropletStub = nil 2019 fake.setApplicationDropletReturns = struct { 2020 result1 v7action.Warnings 2021 result2 error 2022 }{result1, result2} 2023 } 2024 2025 func (fake *FakeV7Actor) SetApplicationDropletReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2026 fake.setApplicationDropletMutex.Lock() 2027 defer fake.setApplicationDropletMutex.Unlock() 2028 fake.SetApplicationDropletStub = nil 2029 if fake.setApplicationDropletReturnsOnCall == nil { 2030 fake.setApplicationDropletReturnsOnCall = make(map[int]struct { 2031 result1 v7action.Warnings 2032 result2 error 2033 }) 2034 } 2035 fake.setApplicationDropletReturnsOnCall[i] = struct { 2036 result1 v7action.Warnings 2037 result2 error 2038 }{result1, result2} 2039 } 2040 2041 func (fake *FakeV7Actor) SetApplicationManifest(arg1 string, arg2 []byte) (v7action.Warnings, error) { 2042 var arg2Copy []byte 2043 if arg2 != nil { 2044 arg2Copy = make([]byte, len(arg2)) 2045 copy(arg2Copy, arg2) 2046 } 2047 fake.setApplicationManifestMutex.Lock() 2048 ret, specificReturn := fake.setApplicationManifestReturnsOnCall[len(fake.setApplicationManifestArgsForCall)] 2049 fake.setApplicationManifestArgsForCall = append(fake.setApplicationManifestArgsForCall, struct { 2050 arg1 string 2051 arg2 []byte 2052 }{arg1, arg2Copy}) 2053 fake.recordInvocation("SetApplicationManifest", []interface{}{arg1, arg2Copy}) 2054 fake.setApplicationManifestMutex.Unlock() 2055 if fake.SetApplicationManifestStub != nil { 2056 return fake.SetApplicationManifestStub(arg1, arg2) 2057 } 2058 if specificReturn { 2059 return ret.result1, ret.result2 2060 } 2061 fakeReturns := fake.setApplicationManifestReturns 2062 return fakeReturns.result1, fakeReturns.result2 2063 } 2064 2065 func (fake *FakeV7Actor) SetApplicationManifestCallCount() int { 2066 fake.setApplicationManifestMutex.RLock() 2067 defer fake.setApplicationManifestMutex.RUnlock() 2068 return len(fake.setApplicationManifestArgsForCall) 2069 } 2070 2071 func (fake *FakeV7Actor) SetApplicationManifestCalls(stub func(string, []byte) (v7action.Warnings, error)) { 2072 fake.setApplicationManifestMutex.Lock() 2073 defer fake.setApplicationManifestMutex.Unlock() 2074 fake.SetApplicationManifestStub = stub 2075 } 2076 2077 func (fake *FakeV7Actor) SetApplicationManifestArgsForCall(i int) (string, []byte) { 2078 fake.setApplicationManifestMutex.RLock() 2079 defer fake.setApplicationManifestMutex.RUnlock() 2080 argsForCall := fake.setApplicationManifestArgsForCall[i] 2081 return argsForCall.arg1, argsForCall.arg2 2082 } 2083 2084 func (fake *FakeV7Actor) SetApplicationManifestReturns(result1 v7action.Warnings, result2 error) { 2085 fake.setApplicationManifestMutex.Lock() 2086 defer fake.setApplicationManifestMutex.Unlock() 2087 fake.SetApplicationManifestStub = nil 2088 fake.setApplicationManifestReturns = struct { 2089 result1 v7action.Warnings 2090 result2 error 2091 }{result1, result2} 2092 } 2093 2094 func (fake *FakeV7Actor) SetApplicationManifestReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2095 fake.setApplicationManifestMutex.Lock() 2096 defer fake.setApplicationManifestMutex.Unlock() 2097 fake.SetApplicationManifestStub = nil 2098 if fake.setApplicationManifestReturnsOnCall == nil { 2099 fake.setApplicationManifestReturnsOnCall = make(map[int]struct { 2100 result1 v7action.Warnings 2101 result2 error 2102 }) 2103 } 2104 fake.setApplicationManifestReturnsOnCall[i] = struct { 2105 result1 v7action.Warnings 2106 result2 error 2107 }{result1, result2} 2108 } 2109 2110 func (fake *FakeV7Actor) SetSpaceManifest(arg1 string, arg2 []byte) (v7action.Warnings, error) { 2111 var arg2Copy []byte 2112 if arg2 != nil { 2113 arg2Copy = make([]byte, len(arg2)) 2114 copy(arg2Copy, arg2) 2115 } 2116 fake.setSpaceManifestMutex.Lock() 2117 ret, specificReturn := fake.setSpaceManifestReturnsOnCall[len(fake.setSpaceManifestArgsForCall)] 2118 fake.setSpaceManifestArgsForCall = append(fake.setSpaceManifestArgsForCall, struct { 2119 arg1 string 2120 arg2 []byte 2121 }{arg1, arg2Copy}) 2122 fake.recordInvocation("SetSpaceManifest", []interface{}{arg1, arg2Copy}) 2123 fake.setSpaceManifestMutex.Unlock() 2124 if fake.SetSpaceManifestStub != nil { 2125 return fake.SetSpaceManifestStub(arg1, arg2) 2126 } 2127 if specificReturn { 2128 return ret.result1, ret.result2 2129 } 2130 fakeReturns := fake.setSpaceManifestReturns 2131 return fakeReturns.result1, fakeReturns.result2 2132 } 2133 2134 func (fake *FakeV7Actor) SetSpaceManifestCallCount() int { 2135 fake.setSpaceManifestMutex.RLock() 2136 defer fake.setSpaceManifestMutex.RUnlock() 2137 return len(fake.setSpaceManifestArgsForCall) 2138 } 2139 2140 func (fake *FakeV7Actor) SetSpaceManifestCalls(stub func(string, []byte) (v7action.Warnings, error)) { 2141 fake.setSpaceManifestMutex.Lock() 2142 defer fake.setSpaceManifestMutex.Unlock() 2143 fake.SetSpaceManifestStub = stub 2144 } 2145 2146 func (fake *FakeV7Actor) SetSpaceManifestArgsForCall(i int) (string, []byte) { 2147 fake.setSpaceManifestMutex.RLock() 2148 defer fake.setSpaceManifestMutex.RUnlock() 2149 argsForCall := fake.setSpaceManifestArgsForCall[i] 2150 return argsForCall.arg1, argsForCall.arg2 2151 } 2152 2153 func (fake *FakeV7Actor) SetSpaceManifestReturns(result1 v7action.Warnings, result2 error) { 2154 fake.setSpaceManifestMutex.Lock() 2155 defer fake.setSpaceManifestMutex.Unlock() 2156 fake.SetSpaceManifestStub = nil 2157 fake.setSpaceManifestReturns = struct { 2158 result1 v7action.Warnings 2159 result2 error 2160 }{result1, result2} 2161 } 2162 2163 func (fake *FakeV7Actor) SetSpaceManifestReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2164 fake.setSpaceManifestMutex.Lock() 2165 defer fake.setSpaceManifestMutex.Unlock() 2166 fake.SetSpaceManifestStub = nil 2167 if fake.setSpaceManifestReturnsOnCall == nil { 2168 fake.setSpaceManifestReturnsOnCall = make(map[int]struct { 2169 result1 v7action.Warnings 2170 result2 error 2171 }) 2172 } 2173 fake.setSpaceManifestReturnsOnCall[i] = struct { 2174 result1 v7action.Warnings 2175 result2 error 2176 }{result1, result2} 2177 } 2178 2179 func (fake *FakeV7Actor) StageApplicationPackage(arg1 string) (resources.Build, v7action.Warnings, error) { 2180 fake.stageApplicationPackageMutex.Lock() 2181 ret, specificReturn := fake.stageApplicationPackageReturnsOnCall[len(fake.stageApplicationPackageArgsForCall)] 2182 fake.stageApplicationPackageArgsForCall = append(fake.stageApplicationPackageArgsForCall, struct { 2183 arg1 string 2184 }{arg1}) 2185 fake.recordInvocation("StageApplicationPackage", []interface{}{arg1}) 2186 fake.stageApplicationPackageMutex.Unlock() 2187 if fake.StageApplicationPackageStub != nil { 2188 return fake.StageApplicationPackageStub(arg1) 2189 } 2190 if specificReturn { 2191 return ret.result1, ret.result2, ret.result3 2192 } 2193 fakeReturns := fake.stageApplicationPackageReturns 2194 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 2195 } 2196 2197 func (fake *FakeV7Actor) StageApplicationPackageCallCount() int { 2198 fake.stageApplicationPackageMutex.RLock() 2199 defer fake.stageApplicationPackageMutex.RUnlock() 2200 return len(fake.stageApplicationPackageArgsForCall) 2201 } 2202 2203 func (fake *FakeV7Actor) StageApplicationPackageCalls(stub func(string) (resources.Build, v7action.Warnings, error)) { 2204 fake.stageApplicationPackageMutex.Lock() 2205 defer fake.stageApplicationPackageMutex.Unlock() 2206 fake.StageApplicationPackageStub = stub 2207 } 2208 2209 func (fake *FakeV7Actor) StageApplicationPackageArgsForCall(i int) string { 2210 fake.stageApplicationPackageMutex.RLock() 2211 defer fake.stageApplicationPackageMutex.RUnlock() 2212 argsForCall := fake.stageApplicationPackageArgsForCall[i] 2213 return argsForCall.arg1 2214 } 2215 2216 func (fake *FakeV7Actor) StageApplicationPackageReturns(result1 resources.Build, result2 v7action.Warnings, result3 error) { 2217 fake.stageApplicationPackageMutex.Lock() 2218 defer fake.stageApplicationPackageMutex.Unlock() 2219 fake.StageApplicationPackageStub = nil 2220 fake.stageApplicationPackageReturns = struct { 2221 result1 resources.Build 2222 result2 v7action.Warnings 2223 result3 error 2224 }{result1, result2, result3} 2225 } 2226 2227 func (fake *FakeV7Actor) StageApplicationPackageReturnsOnCall(i int, result1 resources.Build, result2 v7action.Warnings, result3 error) { 2228 fake.stageApplicationPackageMutex.Lock() 2229 defer fake.stageApplicationPackageMutex.Unlock() 2230 fake.StageApplicationPackageStub = nil 2231 if fake.stageApplicationPackageReturnsOnCall == nil { 2232 fake.stageApplicationPackageReturnsOnCall = make(map[int]struct { 2233 result1 resources.Build 2234 result2 v7action.Warnings 2235 result3 error 2236 }) 2237 } 2238 fake.stageApplicationPackageReturnsOnCall[i] = struct { 2239 result1 resources.Build 2240 result2 v7action.Warnings 2241 result3 error 2242 }{result1, result2, result3} 2243 } 2244 2245 func (fake *FakeV7Actor) StopApplication(arg1 string) (v7action.Warnings, error) { 2246 fake.stopApplicationMutex.Lock() 2247 ret, specificReturn := fake.stopApplicationReturnsOnCall[len(fake.stopApplicationArgsForCall)] 2248 fake.stopApplicationArgsForCall = append(fake.stopApplicationArgsForCall, struct { 2249 arg1 string 2250 }{arg1}) 2251 fake.recordInvocation("StopApplication", []interface{}{arg1}) 2252 fake.stopApplicationMutex.Unlock() 2253 if fake.StopApplicationStub != nil { 2254 return fake.StopApplicationStub(arg1) 2255 } 2256 if specificReturn { 2257 return ret.result1, ret.result2 2258 } 2259 fakeReturns := fake.stopApplicationReturns 2260 return fakeReturns.result1, fakeReturns.result2 2261 } 2262 2263 func (fake *FakeV7Actor) StopApplicationCallCount() int { 2264 fake.stopApplicationMutex.RLock() 2265 defer fake.stopApplicationMutex.RUnlock() 2266 return len(fake.stopApplicationArgsForCall) 2267 } 2268 2269 func (fake *FakeV7Actor) StopApplicationCalls(stub func(string) (v7action.Warnings, error)) { 2270 fake.stopApplicationMutex.Lock() 2271 defer fake.stopApplicationMutex.Unlock() 2272 fake.StopApplicationStub = stub 2273 } 2274 2275 func (fake *FakeV7Actor) StopApplicationArgsForCall(i int) string { 2276 fake.stopApplicationMutex.RLock() 2277 defer fake.stopApplicationMutex.RUnlock() 2278 argsForCall := fake.stopApplicationArgsForCall[i] 2279 return argsForCall.arg1 2280 } 2281 2282 func (fake *FakeV7Actor) StopApplicationReturns(result1 v7action.Warnings, result2 error) { 2283 fake.stopApplicationMutex.Lock() 2284 defer fake.stopApplicationMutex.Unlock() 2285 fake.StopApplicationStub = nil 2286 fake.stopApplicationReturns = struct { 2287 result1 v7action.Warnings 2288 result2 error 2289 }{result1, result2} 2290 } 2291 2292 func (fake *FakeV7Actor) StopApplicationReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2293 fake.stopApplicationMutex.Lock() 2294 defer fake.stopApplicationMutex.Unlock() 2295 fake.StopApplicationStub = nil 2296 if fake.stopApplicationReturnsOnCall == nil { 2297 fake.stopApplicationReturnsOnCall = make(map[int]struct { 2298 result1 v7action.Warnings 2299 result2 error 2300 }) 2301 } 2302 fake.stopApplicationReturnsOnCall[i] = struct { 2303 result1 v7action.Warnings 2304 result2 error 2305 }{result1, result2} 2306 } 2307 2308 func (fake *FakeV7Actor) UnmapRoute(arg1 string, arg2 string) (v7action.Warnings, error) { 2309 fake.unmapRouteMutex.Lock() 2310 ret, specificReturn := fake.unmapRouteReturnsOnCall[len(fake.unmapRouteArgsForCall)] 2311 fake.unmapRouteArgsForCall = append(fake.unmapRouteArgsForCall, struct { 2312 arg1 string 2313 arg2 string 2314 }{arg1, arg2}) 2315 fake.recordInvocation("UnmapRoute", []interface{}{arg1, arg2}) 2316 fake.unmapRouteMutex.Unlock() 2317 if fake.UnmapRouteStub != nil { 2318 return fake.UnmapRouteStub(arg1, arg2) 2319 } 2320 if specificReturn { 2321 return ret.result1, ret.result2 2322 } 2323 fakeReturns := fake.unmapRouteReturns 2324 return fakeReturns.result1, fakeReturns.result2 2325 } 2326 2327 func (fake *FakeV7Actor) UnmapRouteCallCount() int { 2328 fake.unmapRouteMutex.RLock() 2329 defer fake.unmapRouteMutex.RUnlock() 2330 return len(fake.unmapRouteArgsForCall) 2331 } 2332 2333 func (fake *FakeV7Actor) UnmapRouteCalls(stub func(string, string) (v7action.Warnings, error)) { 2334 fake.unmapRouteMutex.Lock() 2335 defer fake.unmapRouteMutex.Unlock() 2336 fake.UnmapRouteStub = stub 2337 } 2338 2339 func (fake *FakeV7Actor) UnmapRouteArgsForCall(i int) (string, string) { 2340 fake.unmapRouteMutex.RLock() 2341 defer fake.unmapRouteMutex.RUnlock() 2342 argsForCall := fake.unmapRouteArgsForCall[i] 2343 return argsForCall.arg1, argsForCall.arg2 2344 } 2345 2346 func (fake *FakeV7Actor) UnmapRouteReturns(result1 v7action.Warnings, result2 error) { 2347 fake.unmapRouteMutex.Lock() 2348 defer fake.unmapRouteMutex.Unlock() 2349 fake.UnmapRouteStub = nil 2350 fake.unmapRouteReturns = struct { 2351 result1 v7action.Warnings 2352 result2 error 2353 }{result1, result2} 2354 } 2355 2356 func (fake *FakeV7Actor) UnmapRouteReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2357 fake.unmapRouteMutex.Lock() 2358 defer fake.unmapRouteMutex.Unlock() 2359 fake.UnmapRouteStub = nil 2360 if fake.unmapRouteReturnsOnCall == nil { 2361 fake.unmapRouteReturnsOnCall = make(map[int]struct { 2362 result1 v7action.Warnings 2363 result2 error 2364 }) 2365 } 2366 fake.unmapRouteReturnsOnCall[i] = struct { 2367 result1 v7action.Warnings 2368 result2 error 2369 }{result1, result2} 2370 } 2371 2372 func (fake *FakeV7Actor) UpdateApplication(arg1 resources.Application) (resources.Application, v7action.Warnings, error) { 2373 fake.updateApplicationMutex.Lock() 2374 ret, specificReturn := fake.updateApplicationReturnsOnCall[len(fake.updateApplicationArgsForCall)] 2375 fake.updateApplicationArgsForCall = append(fake.updateApplicationArgsForCall, struct { 2376 arg1 resources.Application 2377 }{arg1}) 2378 fake.recordInvocation("UpdateApplication", []interface{}{arg1}) 2379 fake.updateApplicationMutex.Unlock() 2380 if fake.UpdateApplicationStub != nil { 2381 return fake.UpdateApplicationStub(arg1) 2382 } 2383 if specificReturn { 2384 return ret.result1, ret.result2, ret.result3 2385 } 2386 fakeReturns := fake.updateApplicationReturns 2387 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 2388 } 2389 2390 func (fake *FakeV7Actor) UpdateApplicationCallCount() int { 2391 fake.updateApplicationMutex.RLock() 2392 defer fake.updateApplicationMutex.RUnlock() 2393 return len(fake.updateApplicationArgsForCall) 2394 } 2395 2396 func (fake *FakeV7Actor) UpdateApplicationCalls(stub func(resources.Application) (resources.Application, v7action.Warnings, error)) { 2397 fake.updateApplicationMutex.Lock() 2398 defer fake.updateApplicationMutex.Unlock() 2399 fake.UpdateApplicationStub = stub 2400 } 2401 2402 func (fake *FakeV7Actor) UpdateApplicationArgsForCall(i int) resources.Application { 2403 fake.updateApplicationMutex.RLock() 2404 defer fake.updateApplicationMutex.RUnlock() 2405 argsForCall := fake.updateApplicationArgsForCall[i] 2406 return argsForCall.arg1 2407 } 2408 2409 func (fake *FakeV7Actor) UpdateApplicationReturns(result1 resources.Application, result2 v7action.Warnings, result3 error) { 2410 fake.updateApplicationMutex.Lock() 2411 defer fake.updateApplicationMutex.Unlock() 2412 fake.UpdateApplicationStub = nil 2413 fake.updateApplicationReturns = struct { 2414 result1 resources.Application 2415 result2 v7action.Warnings 2416 result3 error 2417 }{result1, result2, result3} 2418 } 2419 2420 func (fake *FakeV7Actor) UpdateApplicationReturnsOnCall(i int, result1 resources.Application, result2 v7action.Warnings, result3 error) { 2421 fake.updateApplicationMutex.Lock() 2422 defer fake.updateApplicationMutex.Unlock() 2423 fake.UpdateApplicationStub = nil 2424 if fake.updateApplicationReturnsOnCall == nil { 2425 fake.updateApplicationReturnsOnCall = make(map[int]struct { 2426 result1 resources.Application 2427 result2 v7action.Warnings 2428 result3 error 2429 }) 2430 } 2431 fake.updateApplicationReturnsOnCall[i] = struct { 2432 result1 resources.Application 2433 result2 v7action.Warnings 2434 result3 error 2435 }{result1, result2, result3} 2436 } 2437 2438 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplication(arg1 string, arg2 string, arg3 resources.Process) (v7action.Warnings, error) { 2439 fake.updateProcessByTypeAndApplicationMutex.Lock() 2440 ret, specificReturn := fake.updateProcessByTypeAndApplicationReturnsOnCall[len(fake.updateProcessByTypeAndApplicationArgsForCall)] 2441 fake.updateProcessByTypeAndApplicationArgsForCall = append(fake.updateProcessByTypeAndApplicationArgsForCall, struct { 2442 arg1 string 2443 arg2 string 2444 arg3 resources.Process 2445 }{arg1, arg2, arg3}) 2446 fake.recordInvocation("UpdateProcessByTypeAndApplication", []interface{}{arg1, arg2, arg3}) 2447 fake.updateProcessByTypeAndApplicationMutex.Unlock() 2448 if fake.UpdateProcessByTypeAndApplicationStub != nil { 2449 return fake.UpdateProcessByTypeAndApplicationStub(arg1, arg2, arg3) 2450 } 2451 if specificReturn { 2452 return ret.result1, ret.result2 2453 } 2454 fakeReturns := fake.updateProcessByTypeAndApplicationReturns 2455 return fakeReturns.result1, fakeReturns.result2 2456 } 2457 2458 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplicationCallCount() int { 2459 fake.updateProcessByTypeAndApplicationMutex.RLock() 2460 defer fake.updateProcessByTypeAndApplicationMutex.RUnlock() 2461 return len(fake.updateProcessByTypeAndApplicationArgsForCall) 2462 } 2463 2464 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplicationCalls(stub func(string, string, resources.Process) (v7action.Warnings, error)) { 2465 fake.updateProcessByTypeAndApplicationMutex.Lock() 2466 defer fake.updateProcessByTypeAndApplicationMutex.Unlock() 2467 fake.UpdateProcessByTypeAndApplicationStub = stub 2468 } 2469 2470 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplicationArgsForCall(i int) (string, string, resources.Process) { 2471 fake.updateProcessByTypeAndApplicationMutex.RLock() 2472 defer fake.updateProcessByTypeAndApplicationMutex.RUnlock() 2473 argsForCall := fake.updateProcessByTypeAndApplicationArgsForCall[i] 2474 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2475 } 2476 2477 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplicationReturns(result1 v7action.Warnings, result2 error) { 2478 fake.updateProcessByTypeAndApplicationMutex.Lock() 2479 defer fake.updateProcessByTypeAndApplicationMutex.Unlock() 2480 fake.UpdateProcessByTypeAndApplicationStub = nil 2481 fake.updateProcessByTypeAndApplicationReturns = struct { 2482 result1 v7action.Warnings 2483 result2 error 2484 }{result1, result2} 2485 } 2486 2487 func (fake *FakeV7Actor) UpdateProcessByTypeAndApplicationReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2488 fake.updateProcessByTypeAndApplicationMutex.Lock() 2489 defer fake.updateProcessByTypeAndApplicationMutex.Unlock() 2490 fake.UpdateProcessByTypeAndApplicationStub = nil 2491 if fake.updateProcessByTypeAndApplicationReturnsOnCall == nil { 2492 fake.updateProcessByTypeAndApplicationReturnsOnCall = make(map[int]struct { 2493 result1 v7action.Warnings 2494 result2 error 2495 }) 2496 } 2497 fake.updateProcessByTypeAndApplicationReturnsOnCall[i] = struct { 2498 result1 v7action.Warnings 2499 result2 error 2500 }{result1, result2} 2501 } 2502 2503 func (fake *FakeV7Actor) UploadBitsPackage(arg1 resources.Package, arg2 []sharedaction.V3Resource, arg3 io.Reader, arg4 int64) (resources.Package, v7action.Warnings, error) { 2504 var arg2Copy []sharedaction.V3Resource 2505 if arg2 != nil { 2506 arg2Copy = make([]sharedaction.V3Resource, len(arg2)) 2507 copy(arg2Copy, arg2) 2508 } 2509 fake.uploadBitsPackageMutex.Lock() 2510 ret, specificReturn := fake.uploadBitsPackageReturnsOnCall[len(fake.uploadBitsPackageArgsForCall)] 2511 fake.uploadBitsPackageArgsForCall = append(fake.uploadBitsPackageArgsForCall, struct { 2512 arg1 resources.Package 2513 arg2 []sharedaction.V3Resource 2514 arg3 io.Reader 2515 arg4 int64 2516 }{arg1, arg2Copy, arg3, arg4}) 2517 fake.recordInvocation("UploadBitsPackage", []interface{}{arg1, arg2Copy, arg3, arg4}) 2518 fake.uploadBitsPackageMutex.Unlock() 2519 if fake.UploadBitsPackageStub != nil { 2520 return fake.UploadBitsPackageStub(arg1, arg2, arg3, arg4) 2521 } 2522 if specificReturn { 2523 return ret.result1, ret.result2, ret.result3 2524 } 2525 fakeReturns := fake.uploadBitsPackageReturns 2526 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 2527 } 2528 2529 func (fake *FakeV7Actor) UploadBitsPackageCallCount() int { 2530 fake.uploadBitsPackageMutex.RLock() 2531 defer fake.uploadBitsPackageMutex.RUnlock() 2532 return len(fake.uploadBitsPackageArgsForCall) 2533 } 2534 2535 func (fake *FakeV7Actor) UploadBitsPackageCalls(stub func(resources.Package, []sharedaction.V3Resource, io.Reader, int64) (resources.Package, v7action.Warnings, error)) { 2536 fake.uploadBitsPackageMutex.Lock() 2537 defer fake.uploadBitsPackageMutex.Unlock() 2538 fake.UploadBitsPackageStub = stub 2539 } 2540 2541 func (fake *FakeV7Actor) UploadBitsPackageArgsForCall(i int) (resources.Package, []sharedaction.V3Resource, io.Reader, int64) { 2542 fake.uploadBitsPackageMutex.RLock() 2543 defer fake.uploadBitsPackageMutex.RUnlock() 2544 argsForCall := fake.uploadBitsPackageArgsForCall[i] 2545 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 2546 } 2547 2548 func (fake *FakeV7Actor) UploadBitsPackageReturns(result1 resources.Package, result2 v7action.Warnings, result3 error) { 2549 fake.uploadBitsPackageMutex.Lock() 2550 defer fake.uploadBitsPackageMutex.Unlock() 2551 fake.UploadBitsPackageStub = nil 2552 fake.uploadBitsPackageReturns = struct { 2553 result1 resources.Package 2554 result2 v7action.Warnings 2555 result3 error 2556 }{result1, result2, result3} 2557 } 2558 2559 func (fake *FakeV7Actor) UploadBitsPackageReturnsOnCall(i int, result1 resources.Package, result2 v7action.Warnings, result3 error) { 2560 fake.uploadBitsPackageMutex.Lock() 2561 defer fake.uploadBitsPackageMutex.Unlock() 2562 fake.UploadBitsPackageStub = nil 2563 if fake.uploadBitsPackageReturnsOnCall == nil { 2564 fake.uploadBitsPackageReturnsOnCall = make(map[int]struct { 2565 result1 resources.Package 2566 result2 v7action.Warnings 2567 result3 error 2568 }) 2569 } 2570 fake.uploadBitsPackageReturnsOnCall[i] = struct { 2571 result1 resources.Package 2572 result2 v7action.Warnings 2573 result3 error 2574 }{result1, result2, result3} 2575 } 2576 2577 func (fake *FakeV7Actor) UploadDroplet(arg1 string, arg2 string, arg3 io.Reader, arg4 int64) (v7action.Warnings, error) { 2578 fake.uploadDropletMutex.Lock() 2579 ret, specificReturn := fake.uploadDropletReturnsOnCall[len(fake.uploadDropletArgsForCall)] 2580 fake.uploadDropletArgsForCall = append(fake.uploadDropletArgsForCall, struct { 2581 arg1 string 2582 arg2 string 2583 arg3 io.Reader 2584 arg4 int64 2585 }{arg1, arg2, arg3, arg4}) 2586 fake.recordInvocation("UploadDroplet", []interface{}{arg1, arg2, arg3, arg4}) 2587 fake.uploadDropletMutex.Unlock() 2588 if fake.UploadDropletStub != nil { 2589 return fake.UploadDropletStub(arg1, arg2, arg3, arg4) 2590 } 2591 if specificReturn { 2592 return ret.result1, ret.result2 2593 } 2594 fakeReturns := fake.uploadDropletReturns 2595 return fakeReturns.result1, fakeReturns.result2 2596 } 2597 2598 func (fake *FakeV7Actor) UploadDropletCallCount() int { 2599 fake.uploadDropletMutex.RLock() 2600 defer fake.uploadDropletMutex.RUnlock() 2601 return len(fake.uploadDropletArgsForCall) 2602 } 2603 2604 func (fake *FakeV7Actor) UploadDropletCalls(stub func(string, string, io.Reader, int64) (v7action.Warnings, error)) { 2605 fake.uploadDropletMutex.Lock() 2606 defer fake.uploadDropletMutex.Unlock() 2607 fake.UploadDropletStub = stub 2608 } 2609 2610 func (fake *FakeV7Actor) UploadDropletArgsForCall(i int) (string, string, io.Reader, int64) { 2611 fake.uploadDropletMutex.RLock() 2612 defer fake.uploadDropletMutex.RUnlock() 2613 argsForCall := fake.uploadDropletArgsForCall[i] 2614 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 2615 } 2616 2617 func (fake *FakeV7Actor) UploadDropletReturns(result1 v7action.Warnings, result2 error) { 2618 fake.uploadDropletMutex.Lock() 2619 defer fake.uploadDropletMutex.Unlock() 2620 fake.UploadDropletStub = nil 2621 fake.uploadDropletReturns = struct { 2622 result1 v7action.Warnings 2623 result2 error 2624 }{result1, result2} 2625 } 2626 2627 func (fake *FakeV7Actor) UploadDropletReturnsOnCall(i int, result1 v7action.Warnings, result2 error) { 2628 fake.uploadDropletMutex.Lock() 2629 defer fake.uploadDropletMutex.Unlock() 2630 fake.UploadDropletStub = nil 2631 if fake.uploadDropletReturnsOnCall == nil { 2632 fake.uploadDropletReturnsOnCall = make(map[int]struct { 2633 result1 v7action.Warnings 2634 result2 error 2635 }) 2636 } 2637 fake.uploadDropletReturnsOnCall[i] = struct { 2638 result1 v7action.Warnings 2639 result2 error 2640 }{result1, result2} 2641 } 2642 2643 func (fake *FakeV7Actor) Invocations() map[string][][]interface{} { 2644 fake.invocationsMutex.RLock() 2645 defer fake.invocationsMutex.RUnlock() 2646 fake.createApplicationDropletMutex.RLock() 2647 defer fake.createApplicationDropletMutex.RUnlock() 2648 fake.createApplicationInSpaceMutex.RLock() 2649 defer fake.createApplicationInSpaceMutex.RUnlock() 2650 fake.createBitsPackageByApplicationMutex.RLock() 2651 defer fake.createBitsPackageByApplicationMutex.RUnlock() 2652 fake.createDeploymentByApplicationAndDropletMutex.RLock() 2653 defer fake.createDeploymentByApplicationAndDropletMutex.RUnlock() 2654 fake.createDockerPackageByApplicationMutex.RLock() 2655 defer fake.createDockerPackageByApplicationMutex.RUnlock() 2656 fake.createRouteMutex.RLock() 2657 defer fake.createRouteMutex.RUnlock() 2658 fake.getApplicationByNameAndSpaceMutex.RLock() 2659 defer fake.getApplicationByNameAndSpaceMutex.RUnlock() 2660 fake.getApplicationDropletsMutex.RLock() 2661 defer fake.getApplicationDropletsMutex.RUnlock() 2662 fake.getApplicationRoutesMutex.RLock() 2663 defer fake.getApplicationRoutesMutex.RUnlock() 2664 fake.getApplicationsByNamesAndSpaceMutex.RLock() 2665 defer fake.getApplicationsByNamesAndSpaceMutex.RUnlock() 2666 fake.getDefaultDomainMutex.RLock() 2667 defer fake.getDefaultDomainMutex.RUnlock() 2668 fake.getDomainMutex.RLock() 2669 defer fake.getDomainMutex.RUnlock() 2670 fake.getRouteByAttributesMutex.RLock() 2671 defer fake.getRouteByAttributesMutex.RUnlock() 2672 fake.getRouteDestinationByAppGUIDMutex.RLock() 2673 defer fake.getRouteDestinationByAppGUIDMutex.RUnlock() 2674 fake.mapRouteMutex.RLock() 2675 defer fake.mapRouteMutex.RUnlock() 2676 fake.pollBuildMutex.RLock() 2677 defer fake.pollBuildMutex.RUnlock() 2678 fake.pollPackageMutex.RLock() 2679 defer fake.pollPackageMutex.RUnlock() 2680 fake.pollStartMutex.RLock() 2681 defer fake.pollStartMutex.RUnlock() 2682 fake.pollStartForRollingMutex.RLock() 2683 defer fake.pollStartForRollingMutex.RUnlock() 2684 fake.resourceMatchMutex.RLock() 2685 defer fake.resourceMatchMutex.RUnlock() 2686 fake.restartApplicationMutex.RLock() 2687 defer fake.restartApplicationMutex.RUnlock() 2688 fake.scaleProcessByApplicationMutex.RLock() 2689 defer fake.scaleProcessByApplicationMutex.RUnlock() 2690 fake.setApplicationDropletMutex.RLock() 2691 defer fake.setApplicationDropletMutex.RUnlock() 2692 fake.setApplicationManifestMutex.RLock() 2693 defer fake.setApplicationManifestMutex.RUnlock() 2694 fake.setSpaceManifestMutex.RLock() 2695 defer fake.setSpaceManifestMutex.RUnlock() 2696 fake.stageApplicationPackageMutex.RLock() 2697 defer fake.stageApplicationPackageMutex.RUnlock() 2698 fake.stopApplicationMutex.RLock() 2699 defer fake.stopApplicationMutex.RUnlock() 2700 fake.unmapRouteMutex.RLock() 2701 defer fake.unmapRouteMutex.RUnlock() 2702 fake.updateApplicationMutex.RLock() 2703 defer fake.updateApplicationMutex.RUnlock() 2704 fake.updateProcessByTypeAndApplicationMutex.RLock() 2705 defer fake.updateProcessByTypeAndApplicationMutex.RUnlock() 2706 fake.uploadBitsPackageMutex.RLock() 2707 defer fake.uploadBitsPackageMutex.RUnlock() 2708 fake.uploadDropletMutex.RLock() 2709 defer fake.uploadDropletMutex.RUnlock() 2710 copiedInvocations := map[string][][]interface{}{} 2711 for key, value := range fake.invocations { 2712 copiedInvocations[key] = value 2713 } 2714 return copiedInvocations 2715 } 2716 2717 func (fake *FakeV7Actor) recordInvocation(key string, args []interface{}) { 2718 fake.invocationsMutex.Lock() 2719 defer fake.invocationsMutex.Unlock() 2720 if fake.invocations == nil { 2721 fake.invocations = map[string][][]interface{}{} 2722 } 2723 if fake.invocations[key] == nil { 2724 fake.invocations[key] = [][]interface{}{} 2725 } 2726 fake.invocations[key] = append(fake.invocations[key], args) 2727 } 2728 2729 var _ v7pushaction.V7Actor = new(FakeV7Actor)