github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/actor/v2action/v2actionfakes/fake_config.go (about)

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