github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/actor/v7action/v7actionfakes/fake_config.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v7actionfakes 3 4 import ( 5 "sync" 6 "time" 7 8 "code.cloudfoundry.org/cli/actor/v7action" 9 "code.cloudfoundry.org/cli/util/configv3" 10 ) 11 12 type FakeConfig struct { 13 AccessTokenStub func() string 14 accessTokenMutex sync.RWMutex 15 accessTokenArgsForCall []struct { 16 } 17 accessTokenReturns struct { 18 result1 string 19 } 20 accessTokenReturnsOnCall map[int]struct { 21 result1 string 22 } 23 DialTimeoutStub func() time.Duration 24 dialTimeoutMutex sync.RWMutex 25 dialTimeoutArgsForCall []struct { 26 } 27 dialTimeoutReturns struct { 28 result1 time.Duration 29 } 30 dialTimeoutReturnsOnCall map[int]struct { 31 result1 time.Duration 32 } 33 PollingIntervalStub func() time.Duration 34 pollingIntervalMutex sync.RWMutex 35 pollingIntervalArgsForCall []struct { 36 } 37 pollingIntervalReturns struct { 38 result1 time.Duration 39 } 40 pollingIntervalReturnsOnCall map[int]struct { 41 result1 time.Duration 42 } 43 RefreshTokenStub func() string 44 refreshTokenMutex sync.RWMutex 45 refreshTokenArgsForCall []struct { 46 } 47 refreshTokenReturns struct { 48 result1 string 49 } 50 refreshTokenReturnsOnCall map[int]struct { 51 result1 string 52 } 53 SSHOAuthClientStub func() string 54 sSHOAuthClientMutex sync.RWMutex 55 sSHOAuthClientArgsForCall []struct { 56 } 57 sSHOAuthClientReturns struct { 58 result1 string 59 } 60 sSHOAuthClientReturnsOnCall map[int]struct { 61 result1 string 62 } 63 SetAccessTokenStub func(string) 64 setAccessTokenMutex sync.RWMutex 65 setAccessTokenArgsForCall []struct { 66 arg1 string 67 } 68 SetRefreshTokenStub func(string) 69 setRefreshTokenMutex sync.RWMutex 70 setRefreshTokenArgsForCall []struct { 71 arg1 string 72 } 73 SetTargetInformationStub func(configv3.TargetInformationArgs) 74 setTargetInformationMutex sync.RWMutex 75 setTargetInformationArgsForCall []struct { 76 arg1 configv3.TargetInformationArgs 77 } 78 SetTokenInformationStub func(string, string, string) 79 setTokenInformationMutex sync.RWMutex 80 setTokenInformationArgsForCall []struct { 81 arg1 string 82 arg2 string 83 arg3 string 84 } 85 SetUAAClientCredentialsStub func(string, string) 86 setUAAClientCredentialsMutex sync.RWMutex 87 setUAAClientCredentialsArgsForCall []struct { 88 arg1 string 89 arg2 string 90 } 91 SetUAAGrantTypeStub func(string) 92 setUAAGrantTypeMutex sync.RWMutex 93 setUAAGrantTypeArgsForCall []struct { 94 arg1 string 95 } 96 SkipSSLValidationStub func() bool 97 skipSSLValidationMutex sync.RWMutex 98 skipSSLValidationArgsForCall []struct { 99 } 100 skipSSLValidationReturns struct { 101 result1 bool 102 } 103 skipSSLValidationReturnsOnCall map[int]struct { 104 result1 bool 105 } 106 StagingTimeoutStub func() time.Duration 107 stagingTimeoutMutex sync.RWMutex 108 stagingTimeoutArgsForCall []struct { 109 } 110 stagingTimeoutReturns struct { 111 result1 time.Duration 112 } 113 stagingTimeoutReturnsOnCall map[int]struct { 114 result1 time.Duration 115 } 116 StartupTimeoutStub func() time.Duration 117 startupTimeoutMutex sync.RWMutex 118 startupTimeoutArgsForCall []struct { 119 } 120 startupTimeoutReturns struct { 121 result1 time.Duration 122 } 123 startupTimeoutReturnsOnCall map[int]struct { 124 result1 time.Duration 125 } 126 TargetStub func() string 127 targetMutex sync.RWMutex 128 targetArgsForCall []struct { 129 } 130 targetReturns struct { 131 result1 string 132 } 133 targetReturnsOnCall map[int]struct { 134 result1 string 135 } 136 UAAGrantTypeStub func() string 137 uAAGrantTypeMutex sync.RWMutex 138 uAAGrantTypeArgsForCall []struct { 139 } 140 uAAGrantTypeReturns struct { 141 result1 string 142 } 143 uAAGrantTypeReturnsOnCall map[int]struct { 144 result1 string 145 } 146 UnsetOrganizationAndSpaceInformationStub func() 147 unsetOrganizationAndSpaceInformationMutex sync.RWMutex 148 unsetOrganizationAndSpaceInformationArgsForCall []struct { 149 } 150 invocations map[string][][]interface{} 151 invocationsMutex sync.RWMutex 152 } 153 154 func (fake *FakeConfig) AccessToken() string { 155 fake.accessTokenMutex.Lock() 156 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 157 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct { 158 }{}) 159 fake.recordInvocation("AccessToken", []interface{}{}) 160 fake.accessTokenMutex.Unlock() 161 if fake.AccessTokenStub != nil { 162 return fake.AccessTokenStub() 163 } 164 if specificReturn { 165 return ret.result1 166 } 167 fakeReturns := fake.accessTokenReturns 168 return fakeReturns.result1 169 } 170 171 func (fake *FakeConfig) AccessTokenCallCount() int { 172 fake.accessTokenMutex.RLock() 173 defer fake.accessTokenMutex.RUnlock() 174 return len(fake.accessTokenArgsForCall) 175 } 176 177 func (fake *FakeConfig) AccessTokenCalls(stub func() string) { 178 fake.accessTokenMutex.Lock() 179 defer fake.accessTokenMutex.Unlock() 180 fake.AccessTokenStub = stub 181 } 182 183 func (fake *FakeConfig) AccessTokenReturns(result1 string) { 184 fake.accessTokenMutex.Lock() 185 defer fake.accessTokenMutex.Unlock() 186 fake.AccessTokenStub = nil 187 fake.accessTokenReturns = struct { 188 result1 string 189 }{result1} 190 } 191 192 func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) { 193 fake.accessTokenMutex.Lock() 194 defer fake.accessTokenMutex.Unlock() 195 fake.AccessTokenStub = nil 196 if fake.accessTokenReturnsOnCall == nil { 197 fake.accessTokenReturnsOnCall = make(map[int]struct { 198 result1 string 199 }) 200 } 201 fake.accessTokenReturnsOnCall[i] = struct { 202 result1 string 203 }{result1} 204 } 205 206 func (fake *FakeConfig) DialTimeout() time.Duration { 207 fake.dialTimeoutMutex.Lock() 208 ret, specificReturn := fake.dialTimeoutReturnsOnCall[len(fake.dialTimeoutArgsForCall)] 209 fake.dialTimeoutArgsForCall = append(fake.dialTimeoutArgsForCall, struct { 210 }{}) 211 fake.recordInvocation("DialTimeout", []interface{}{}) 212 fake.dialTimeoutMutex.Unlock() 213 if fake.DialTimeoutStub != nil { 214 return fake.DialTimeoutStub() 215 } 216 if specificReturn { 217 return ret.result1 218 } 219 fakeReturns := fake.dialTimeoutReturns 220 return fakeReturns.result1 221 } 222 223 func (fake *FakeConfig) DialTimeoutCallCount() int { 224 fake.dialTimeoutMutex.RLock() 225 defer fake.dialTimeoutMutex.RUnlock() 226 return len(fake.dialTimeoutArgsForCall) 227 } 228 229 func (fake *FakeConfig) DialTimeoutCalls(stub func() time.Duration) { 230 fake.dialTimeoutMutex.Lock() 231 defer fake.dialTimeoutMutex.Unlock() 232 fake.DialTimeoutStub = stub 233 } 234 235 func (fake *FakeConfig) DialTimeoutReturns(result1 time.Duration) { 236 fake.dialTimeoutMutex.Lock() 237 defer fake.dialTimeoutMutex.Unlock() 238 fake.DialTimeoutStub = nil 239 fake.dialTimeoutReturns = struct { 240 result1 time.Duration 241 }{result1} 242 } 243 244 func (fake *FakeConfig) DialTimeoutReturnsOnCall(i int, result1 time.Duration) { 245 fake.dialTimeoutMutex.Lock() 246 defer fake.dialTimeoutMutex.Unlock() 247 fake.DialTimeoutStub = nil 248 if fake.dialTimeoutReturnsOnCall == nil { 249 fake.dialTimeoutReturnsOnCall = make(map[int]struct { 250 result1 time.Duration 251 }) 252 } 253 fake.dialTimeoutReturnsOnCall[i] = struct { 254 result1 time.Duration 255 }{result1} 256 } 257 258 func (fake *FakeConfig) PollingInterval() time.Duration { 259 fake.pollingIntervalMutex.Lock() 260 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 261 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct { 262 }{}) 263 fake.recordInvocation("PollingInterval", []interface{}{}) 264 fake.pollingIntervalMutex.Unlock() 265 if fake.PollingIntervalStub != nil { 266 return fake.PollingIntervalStub() 267 } 268 if specificReturn { 269 return ret.result1 270 } 271 fakeReturns := fake.pollingIntervalReturns 272 return fakeReturns.result1 273 } 274 275 func (fake *FakeConfig) PollingIntervalCallCount() int { 276 fake.pollingIntervalMutex.RLock() 277 defer fake.pollingIntervalMutex.RUnlock() 278 return len(fake.pollingIntervalArgsForCall) 279 } 280 281 func (fake *FakeConfig) PollingIntervalCalls(stub func() time.Duration) { 282 fake.pollingIntervalMutex.Lock() 283 defer fake.pollingIntervalMutex.Unlock() 284 fake.PollingIntervalStub = stub 285 } 286 287 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 288 fake.pollingIntervalMutex.Lock() 289 defer fake.pollingIntervalMutex.Unlock() 290 fake.PollingIntervalStub = nil 291 fake.pollingIntervalReturns = struct { 292 result1 time.Duration 293 }{result1} 294 } 295 296 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 297 fake.pollingIntervalMutex.Lock() 298 defer fake.pollingIntervalMutex.Unlock() 299 fake.PollingIntervalStub = nil 300 if fake.pollingIntervalReturnsOnCall == nil { 301 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 302 result1 time.Duration 303 }) 304 } 305 fake.pollingIntervalReturnsOnCall[i] = struct { 306 result1 time.Duration 307 }{result1} 308 } 309 310 func (fake *FakeConfig) RefreshToken() string { 311 fake.refreshTokenMutex.Lock() 312 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 313 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct { 314 }{}) 315 fake.recordInvocation("RefreshToken", []interface{}{}) 316 fake.refreshTokenMutex.Unlock() 317 if fake.RefreshTokenStub != nil { 318 return fake.RefreshTokenStub() 319 } 320 if specificReturn { 321 return ret.result1 322 } 323 fakeReturns := fake.refreshTokenReturns 324 return fakeReturns.result1 325 } 326 327 func (fake *FakeConfig) RefreshTokenCallCount() int { 328 fake.refreshTokenMutex.RLock() 329 defer fake.refreshTokenMutex.RUnlock() 330 return len(fake.refreshTokenArgsForCall) 331 } 332 333 func (fake *FakeConfig) RefreshTokenCalls(stub func() string) { 334 fake.refreshTokenMutex.Lock() 335 defer fake.refreshTokenMutex.Unlock() 336 fake.RefreshTokenStub = stub 337 } 338 339 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 340 fake.refreshTokenMutex.Lock() 341 defer fake.refreshTokenMutex.Unlock() 342 fake.RefreshTokenStub = nil 343 fake.refreshTokenReturns = struct { 344 result1 string 345 }{result1} 346 } 347 348 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 349 fake.refreshTokenMutex.Lock() 350 defer fake.refreshTokenMutex.Unlock() 351 fake.RefreshTokenStub = nil 352 if fake.refreshTokenReturnsOnCall == nil { 353 fake.refreshTokenReturnsOnCall = make(map[int]struct { 354 result1 string 355 }) 356 } 357 fake.refreshTokenReturnsOnCall[i] = struct { 358 result1 string 359 }{result1} 360 } 361 362 func (fake *FakeConfig) SSHOAuthClient() string { 363 fake.sSHOAuthClientMutex.Lock() 364 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 365 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct { 366 }{}) 367 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 368 fake.sSHOAuthClientMutex.Unlock() 369 if fake.SSHOAuthClientStub != nil { 370 return fake.SSHOAuthClientStub() 371 } 372 if specificReturn { 373 return ret.result1 374 } 375 fakeReturns := fake.sSHOAuthClientReturns 376 return fakeReturns.result1 377 } 378 379 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 380 fake.sSHOAuthClientMutex.RLock() 381 defer fake.sSHOAuthClientMutex.RUnlock() 382 return len(fake.sSHOAuthClientArgsForCall) 383 } 384 385 func (fake *FakeConfig) SSHOAuthClientCalls(stub func() string) { 386 fake.sSHOAuthClientMutex.Lock() 387 defer fake.sSHOAuthClientMutex.Unlock() 388 fake.SSHOAuthClientStub = stub 389 } 390 391 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 392 fake.sSHOAuthClientMutex.Lock() 393 defer fake.sSHOAuthClientMutex.Unlock() 394 fake.SSHOAuthClientStub = nil 395 fake.sSHOAuthClientReturns = struct { 396 result1 string 397 }{result1} 398 } 399 400 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 401 fake.sSHOAuthClientMutex.Lock() 402 defer fake.sSHOAuthClientMutex.Unlock() 403 fake.SSHOAuthClientStub = nil 404 if fake.sSHOAuthClientReturnsOnCall == nil { 405 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 406 result1 string 407 }) 408 } 409 fake.sSHOAuthClientReturnsOnCall[i] = struct { 410 result1 string 411 }{result1} 412 } 413 414 func (fake *FakeConfig) SetAccessToken(arg1 string) { 415 fake.setAccessTokenMutex.Lock() 416 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 417 arg1 string 418 }{arg1}) 419 fake.recordInvocation("SetAccessToken", []interface{}{arg1}) 420 fake.setAccessTokenMutex.Unlock() 421 if fake.SetAccessTokenStub != nil { 422 fake.SetAccessTokenStub(arg1) 423 } 424 } 425 426 func (fake *FakeConfig) SetAccessTokenCallCount() int { 427 fake.setAccessTokenMutex.RLock() 428 defer fake.setAccessTokenMutex.RUnlock() 429 return len(fake.setAccessTokenArgsForCall) 430 } 431 432 func (fake *FakeConfig) SetAccessTokenCalls(stub func(string)) { 433 fake.setAccessTokenMutex.Lock() 434 defer fake.setAccessTokenMutex.Unlock() 435 fake.SetAccessTokenStub = stub 436 } 437 438 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 439 fake.setAccessTokenMutex.RLock() 440 defer fake.setAccessTokenMutex.RUnlock() 441 argsForCall := fake.setAccessTokenArgsForCall[i] 442 return argsForCall.arg1 443 } 444 445 func (fake *FakeConfig) SetRefreshToken(arg1 string) { 446 fake.setRefreshTokenMutex.Lock() 447 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 448 arg1 string 449 }{arg1}) 450 fake.recordInvocation("SetRefreshToken", []interface{}{arg1}) 451 fake.setRefreshTokenMutex.Unlock() 452 if fake.SetRefreshTokenStub != nil { 453 fake.SetRefreshTokenStub(arg1) 454 } 455 } 456 457 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 458 fake.setRefreshTokenMutex.RLock() 459 defer fake.setRefreshTokenMutex.RUnlock() 460 return len(fake.setRefreshTokenArgsForCall) 461 } 462 463 func (fake *FakeConfig) SetRefreshTokenCalls(stub func(string)) { 464 fake.setRefreshTokenMutex.Lock() 465 defer fake.setRefreshTokenMutex.Unlock() 466 fake.SetRefreshTokenStub = stub 467 } 468 469 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 470 fake.setRefreshTokenMutex.RLock() 471 defer fake.setRefreshTokenMutex.RUnlock() 472 argsForCall := fake.setRefreshTokenArgsForCall[i] 473 return argsForCall.arg1 474 } 475 476 func (fake *FakeConfig) SetTargetInformation(arg1 configv3.TargetInformationArgs) { 477 fake.setTargetInformationMutex.Lock() 478 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 479 arg1 configv3.TargetInformationArgs 480 }{arg1}) 481 fake.recordInvocation("SetTargetInformation", []interface{}{arg1}) 482 fake.setTargetInformationMutex.Unlock() 483 if fake.SetTargetInformationStub != nil { 484 fake.SetTargetInformationStub(arg1) 485 } 486 } 487 488 func (fake *FakeConfig) SetTargetInformationCallCount() int { 489 fake.setTargetInformationMutex.RLock() 490 defer fake.setTargetInformationMutex.RUnlock() 491 return len(fake.setTargetInformationArgsForCall) 492 } 493 494 func (fake *FakeConfig) SetTargetInformationCalls(stub func(configv3.TargetInformationArgs)) { 495 fake.setTargetInformationMutex.Lock() 496 defer fake.setTargetInformationMutex.Unlock() 497 fake.SetTargetInformationStub = stub 498 } 499 500 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) configv3.TargetInformationArgs { 501 fake.setTargetInformationMutex.RLock() 502 defer fake.setTargetInformationMutex.RUnlock() 503 argsForCall := fake.setTargetInformationArgsForCall[i] 504 return argsForCall.arg1 505 } 506 507 func (fake *FakeConfig) SetTokenInformation(arg1 string, arg2 string, arg3 string) { 508 fake.setTokenInformationMutex.Lock() 509 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 510 arg1 string 511 arg2 string 512 arg3 string 513 }{arg1, arg2, arg3}) 514 fake.recordInvocation("SetTokenInformation", []interface{}{arg1, arg2, arg3}) 515 fake.setTokenInformationMutex.Unlock() 516 if fake.SetTokenInformationStub != nil { 517 fake.SetTokenInformationStub(arg1, arg2, arg3) 518 } 519 } 520 521 func (fake *FakeConfig) SetTokenInformationCallCount() int { 522 fake.setTokenInformationMutex.RLock() 523 defer fake.setTokenInformationMutex.RUnlock() 524 return len(fake.setTokenInformationArgsForCall) 525 } 526 527 func (fake *FakeConfig) SetTokenInformationCalls(stub func(string, string, string)) { 528 fake.setTokenInformationMutex.Lock() 529 defer fake.setTokenInformationMutex.Unlock() 530 fake.SetTokenInformationStub = stub 531 } 532 533 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 534 fake.setTokenInformationMutex.RLock() 535 defer fake.setTokenInformationMutex.RUnlock() 536 argsForCall := fake.setTokenInformationArgsForCall[i] 537 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 538 } 539 540 func (fake *FakeConfig) SetUAAClientCredentials(arg1 string, arg2 string) { 541 fake.setUAAClientCredentialsMutex.Lock() 542 fake.setUAAClientCredentialsArgsForCall = append(fake.setUAAClientCredentialsArgsForCall, struct { 543 arg1 string 544 arg2 string 545 }{arg1, arg2}) 546 fake.recordInvocation("SetUAAClientCredentials", []interface{}{arg1, arg2}) 547 fake.setUAAClientCredentialsMutex.Unlock() 548 if fake.SetUAAClientCredentialsStub != nil { 549 fake.SetUAAClientCredentialsStub(arg1, arg2) 550 } 551 } 552 553 func (fake *FakeConfig) SetUAAClientCredentialsCallCount() int { 554 fake.setUAAClientCredentialsMutex.RLock() 555 defer fake.setUAAClientCredentialsMutex.RUnlock() 556 return len(fake.setUAAClientCredentialsArgsForCall) 557 } 558 559 func (fake *FakeConfig) SetUAAClientCredentialsCalls(stub func(string, string)) { 560 fake.setUAAClientCredentialsMutex.Lock() 561 defer fake.setUAAClientCredentialsMutex.Unlock() 562 fake.SetUAAClientCredentialsStub = stub 563 } 564 565 func (fake *FakeConfig) SetUAAClientCredentialsArgsForCall(i int) (string, string) { 566 fake.setUAAClientCredentialsMutex.RLock() 567 defer fake.setUAAClientCredentialsMutex.RUnlock() 568 argsForCall := fake.setUAAClientCredentialsArgsForCall[i] 569 return argsForCall.arg1, argsForCall.arg2 570 } 571 572 func (fake *FakeConfig) SetUAAGrantType(arg1 string) { 573 fake.setUAAGrantTypeMutex.Lock() 574 fake.setUAAGrantTypeArgsForCall = append(fake.setUAAGrantTypeArgsForCall, struct { 575 arg1 string 576 }{arg1}) 577 fake.recordInvocation("SetUAAGrantType", []interface{}{arg1}) 578 fake.setUAAGrantTypeMutex.Unlock() 579 if fake.SetUAAGrantTypeStub != nil { 580 fake.SetUAAGrantTypeStub(arg1) 581 } 582 } 583 584 func (fake *FakeConfig) SetUAAGrantTypeCallCount() int { 585 fake.setUAAGrantTypeMutex.RLock() 586 defer fake.setUAAGrantTypeMutex.RUnlock() 587 return len(fake.setUAAGrantTypeArgsForCall) 588 } 589 590 func (fake *FakeConfig) SetUAAGrantTypeCalls(stub func(string)) { 591 fake.setUAAGrantTypeMutex.Lock() 592 defer fake.setUAAGrantTypeMutex.Unlock() 593 fake.SetUAAGrantTypeStub = stub 594 } 595 596 func (fake *FakeConfig) SetUAAGrantTypeArgsForCall(i int) string { 597 fake.setUAAGrantTypeMutex.RLock() 598 defer fake.setUAAGrantTypeMutex.RUnlock() 599 argsForCall := fake.setUAAGrantTypeArgsForCall[i] 600 return argsForCall.arg1 601 } 602 603 func (fake *FakeConfig) SkipSSLValidation() bool { 604 fake.skipSSLValidationMutex.Lock() 605 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 606 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct { 607 }{}) 608 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 609 fake.skipSSLValidationMutex.Unlock() 610 if fake.SkipSSLValidationStub != nil { 611 return fake.SkipSSLValidationStub() 612 } 613 if specificReturn { 614 return ret.result1 615 } 616 fakeReturns := fake.skipSSLValidationReturns 617 return fakeReturns.result1 618 } 619 620 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 621 fake.skipSSLValidationMutex.RLock() 622 defer fake.skipSSLValidationMutex.RUnlock() 623 return len(fake.skipSSLValidationArgsForCall) 624 } 625 626 func (fake *FakeConfig) SkipSSLValidationCalls(stub func() bool) { 627 fake.skipSSLValidationMutex.Lock() 628 defer fake.skipSSLValidationMutex.Unlock() 629 fake.SkipSSLValidationStub = stub 630 } 631 632 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 633 fake.skipSSLValidationMutex.Lock() 634 defer fake.skipSSLValidationMutex.Unlock() 635 fake.SkipSSLValidationStub = nil 636 fake.skipSSLValidationReturns = struct { 637 result1 bool 638 }{result1} 639 } 640 641 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 642 fake.skipSSLValidationMutex.Lock() 643 defer fake.skipSSLValidationMutex.Unlock() 644 fake.SkipSSLValidationStub = nil 645 if fake.skipSSLValidationReturnsOnCall == nil { 646 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 647 result1 bool 648 }) 649 } 650 fake.skipSSLValidationReturnsOnCall[i] = struct { 651 result1 bool 652 }{result1} 653 } 654 655 func (fake *FakeConfig) StagingTimeout() time.Duration { 656 fake.stagingTimeoutMutex.Lock() 657 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 658 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct { 659 }{}) 660 fake.recordInvocation("StagingTimeout", []interface{}{}) 661 fake.stagingTimeoutMutex.Unlock() 662 if fake.StagingTimeoutStub != nil { 663 return fake.StagingTimeoutStub() 664 } 665 if specificReturn { 666 return ret.result1 667 } 668 fakeReturns := fake.stagingTimeoutReturns 669 return fakeReturns.result1 670 } 671 672 func (fake *FakeConfig) StagingTimeoutCallCount() int { 673 fake.stagingTimeoutMutex.RLock() 674 defer fake.stagingTimeoutMutex.RUnlock() 675 return len(fake.stagingTimeoutArgsForCall) 676 } 677 678 func (fake *FakeConfig) StagingTimeoutCalls(stub func() time.Duration) { 679 fake.stagingTimeoutMutex.Lock() 680 defer fake.stagingTimeoutMutex.Unlock() 681 fake.StagingTimeoutStub = stub 682 } 683 684 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 685 fake.stagingTimeoutMutex.Lock() 686 defer fake.stagingTimeoutMutex.Unlock() 687 fake.StagingTimeoutStub = nil 688 fake.stagingTimeoutReturns = struct { 689 result1 time.Duration 690 }{result1} 691 } 692 693 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 694 fake.stagingTimeoutMutex.Lock() 695 defer fake.stagingTimeoutMutex.Unlock() 696 fake.StagingTimeoutStub = nil 697 if fake.stagingTimeoutReturnsOnCall == nil { 698 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 699 result1 time.Duration 700 }) 701 } 702 fake.stagingTimeoutReturnsOnCall[i] = struct { 703 result1 time.Duration 704 }{result1} 705 } 706 707 func (fake *FakeConfig) StartupTimeout() time.Duration { 708 fake.startupTimeoutMutex.Lock() 709 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 710 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct { 711 }{}) 712 fake.recordInvocation("StartupTimeout", []interface{}{}) 713 fake.startupTimeoutMutex.Unlock() 714 if fake.StartupTimeoutStub != nil { 715 return fake.StartupTimeoutStub() 716 } 717 if specificReturn { 718 return ret.result1 719 } 720 fakeReturns := fake.startupTimeoutReturns 721 return fakeReturns.result1 722 } 723 724 func (fake *FakeConfig) StartupTimeoutCallCount() int { 725 fake.startupTimeoutMutex.RLock() 726 defer fake.startupTimeoutMutex.RUnlock() 727 return len(fake.startupTimeoutArgsForCall) 728 } 729 730 func (fake *FakeConfig) StartupTimeoutCalls(stub func() time.Duration) { 731 fake.startupTimeoutMutex.Lock() 732 defer fake.startupTimeoutMutex.Unlock() 733 fake.StartupTimeoutStub = stub 734 } 735 736 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 737 fake.startupTimeoutMutex.Lock() 738 defer fake.startupTimeoutMutex.Unlock() 739 fake.StartupTimeoutStub = nil 740 fake.startupTimeoutReturns = struct { 741 result1 time.Duration 742 }{result1} 743 } 744 745 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 746 fake.startupTimeoutMutex.Lock() 747 defer fake.startupTimeoutMutex.Unlock() 748 fake.StartupTimeoutStub = nil 749 if fake.startupTimeoutReturnsOnCall == nil { 750 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 751 result1 time.Duration 752 }) 753 } 754 fake.startupTimeoutReturnsOnCall[i] = struct { 755 result1 time.Duration 756 }{result1} 757 } 758 759 func (fake *FakeConfig) Target() string { 760 fake.targetMutex.Lock() 761 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 762 fake.targetArgsForCall = append(fake.targetArgsForCall, struct { 763 }{}) 764 fake.recordInvocation("Target", []interface{}{}) 765 fake.targetMutex.Unlock() 766 if fake.TargetStub != nil { 767 return fake.TargetStub() 768 } 769 if specificReturn { 770 return ret.result1 771 } 772 fakeReturns := fake.targetReturns 773 return fakeReturns.result1 774 } 775 776 func (fake *FakeConfig) TargetCallCount() int { 777 fake.targetMutex.RLock() 778 defer fake.targetMutex.RUnlock() 779 return len(fake.targetArgsForCall) 780 } 781 782 func (fake *FakeConfig) TargetCalls(stub func() string) { 783 fake.targetMutex.Lock() 784 defer fake.targetMutex.Unlock() 785 fake.TargetStub = stub 786 } 787 788 func (fake *FakeConfig) TargetReturns(result1 string) { 789 fake.targetMutex.Lock() 790 defer fake.targetMutex.Unlock() 791 fake.TargetStub = nil 792 fake.targetReturns = struct { 793 result1 string 794 }{result1} 795 } 796 797 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 798 fake.targetMutex.Lock() 799 defer fake.targetMutex.Unlock() 800 fake.TargetStub = nil 801 if fake.targetReturnsOnCall == nil { 802 fake.targetReturnsOnCall = make(map[int]struct { 803 result1 string 804 }) 805 } 806 fake.targetReturnsOnCall[i] = struct { 807 result1 string 808 }{result1} 809 } 810 811 func (fake *FakeConfig) UAAGrantType() string { 812 fake.uAAGrantTypeMutex.Lock() 813 ret, specificReturn := fake.uAAGrantTypeReturnsOnCall[len(fake.uAAGrantTypeArgsForCall)] 814 fake.uAAGrantTypeArgsForCall = append(fake.uAAGrantTypeArgsForCall, struct { 815 }{}) 816 fake.recordInvocation("UAAGrantType", []interface{}{}) 817 fake.uAAGrantTypeMutex.Unlock() 818 if fake.UAAGrantTypeStub != nil { 819 return fake.UAAGrantTypeStub() 820 } 821 if specificReturn { 822 return ret.result1 823 } 824 fakeReturns := fake.uAAGrantTypeReturns 825 return fakeReturns.result1 826 } 827 828 func (fake *FakeConfig) UAAGrantTypeCallCount() int { 829 fake.uAAGrantTypeMutex.RLock() 830 defer fake.uAAGrantTypeMutex.RUnlock() 831 return len(fake.uAAGrantTypeArgsForCall) 832 } 833 834 func (fake *FakeConfig) UAAGrantTypeCalls(stub func() string) { 835 fake.uAAGrantTypeMutex.Lock() 836 defer fake.uAAGrantTypeMutex.Unlock() 837 fake.UAAGrantTypeStub = stub 838 } 839 840 func (fake *FakeConfig) UAAGrantTypeReturns(result1 string) { 841 fake.uAAGrantTypeMutex.Lock() 842 defer fake.uAAGrantTypeMutex.Unlock() 843 fake.UAAGrantTypeStub = nil 844 fake.uAAGrantTypeReturns = struct { 845 result1 string 846 }{result1} 847 } 848 849 func (fake *FakeConfig) UAAGrantTypeReturnsOnCall(i int, result1 string) { 850 fake.uAAGrantTypeMutex.Lock() 851 defer fake.uAAGrantTypeMutex.Unlock() 852 fake.UAAGrantTypeStub = nil 853 if fake.uAAGrantTypeReturnsOnCall == nil { 854 fake.uAAGrantTypeReturnsOnCall = make(map[int]struct { 855 result1 string 856 }) 857 } 858 fake.uAAGrantTypeReturnsOnCall[i] = struct { 859 result1 string 860 }{result1} 861 } 862 863 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformation() { 864 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 865 fake.unsetOrganizationAndSpaceInformationArgsForCall = append(fake.unsetOrganizationAndSpaceInformationArgsForCall, struct { 866 }{}) 867 fake.recordInvocation("UnsetOrganizationAndSpaceInformation", []interface{}{}) 868 fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 869 if fake.UnsetOrganizationAndSpaceInformationStub != nil { 870 fake.UnsetOrganizationAndSpaceInformationStub() 871 } 872 } 873 874 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCallCount() int { 875 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 876 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 877 return len(fake.unsetOrganizationAndSpaceInformationArgsForCall) 878 } 879 880 func (fake *FakeConfig) UnsetOrganizationAndSpaceInformationCalls(stub func()) { 881 fake.unsetOrganizationAndSpaceInformationMutex.Lock() 882 defer fake.unsetOrganizationAndSpaceInformationMutex.Unlock() 883 fake.UnsetOrganizationAndSpaceInformationStub = stub 884 } 885 886 func (fake *FakeConfig) Invocations() map[string][][]interface{} { 887 fake.invocationsMutex.RLock() 888 defer fake.invocationsMutex.RUnlock() 889 fake.accessTokenMutex.RLock() 890 defer fake.accessTokenMutex.RUnlock() 891 fake.dialTimeoutMutex.RLock() 892 defer fake.dialTimeoutMutex.RUnlock() 893 fake.pollingIntervalMutex.RLock() 894 defer fake.pollingIntervalMutex.RUnlock() 895 fake.refreshTokenMutex.RLock() 896 defer fake.refreshTokenMutex.RUnlock() 897 fake.sSHOAuthClientMutex.RLock() 898 defer fake.sSHOAuthClientMutex.RUnlock() 899 fake.setAccessTokenMutex.RLock() 900 defer fake.setAccessTokenMutex.RUnlock() 901 fake.setRefreshTokenMutex.RLock() 902 defer fake.setRefreshTokenMutex.RUnlock() 903 fake.setTargetInformationMutex.RLock() 904 defer fake.setTargetInformationMutex.RUnlock() 905 fake.setTokenInformationMutex.RLock() 906 defer fake.setTokenInformationMutex.RUnlock() 907 fake.setUAAClientCredentialsMutex.RLock() 908 defer fake.setUAAClientCredentialsMutex.RUnlock() 909 fake.setUAAGrantTypeMutex.RLock() 910 defer fake.setUAAGrantTypeMutex.RUnlock() 911 fake.skipSSLValidationMutex.RLock() 912 defer fake.skipSSLValidationMutex.RUnlock() 913 fake.stagingTimeoutMutex.RLock() 914 defer fake.stagingTimeoutMutex.RUnlock() 915 fake.startupTimeoutMutex.RLock() 916 defer fake.startupTimeoutMutex.RUnlock() 917 fake.targetMutex.RLock() 918 defer fake.targetMutex.RUnlock() 919 fake.uAAGrantTypeMutex.RLock() 920 defer fake.uAAGrantTypeMutex.RUnlock() 921 fake.unsetOrganizationAndSpaceInformationMutex.RLock() 922 defer fake.unsetOrganizationAndSpaceInformationMutex.RUnlock() 923 copiedInvocations := map[string][][]interface{}{} 924 for key, value := range fake.invocations { 925 copiedInvocations[key] = value 926 } 927 return copiedInvocations 928 } 929 930 func (fake *FakeConfig) recordInvocation(key string, args []interface{}) { 931 fake.invocationsMutex.Lock() 932 defer fake.invocationsMutex.Unlock() 933 if fake.invocations == nil { 934 fake.invocations = map[string][][]interface{}{} 935 } 936 if fake.invocations[key] == nil { 937 fake.invocations[key] = [][]interface{}{} 938 } 939 fake.invocations[key] = append(fake.invocations[key], args) 940 } 941 942 var _ v7action.Config = new(FakeConfig)