github.com/chenbh/concourse/v6@v6.4.2/worker/workerfakes/fake_tsaclient.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package workerfakes
     3  
     4  import (
     5  	"context"
     6  	"sync"
     7  
     8  	"github.com/chenbh/concourse/v6/tsa"
     9  	"github.com/chenbh/concourse/v6/worker"
    10  )
    11  
    12  type FakeTSAClient struct {
    13  	ContainersToDestroyStub        func(context.Context) ([]string, error)
    14  	containersToDestroyMutex       sync.RWMutex
    15  	containersToDestroyArgsForCall []struct {
    16  		arg1 context.Context
    17  	}
    18  	containersToDestroyReturns struct {
    19  		result1 []string
    20  		result2 error
    21  	}
    22  	containersToDestroyReturnsOnCall map[int]struct {
    23  		result1 []string
    24  		result2 error
    25  	}
    26  	DeleteStub        func(context.Context) error
    27  	deleteMutex       sync.RWMutex
    28  	deleteArgsForCall []struct {
    29  		arg1 context.Context
    30  	}
    31  	deleteReturns struct {
    32  		result1 error
    33  	}
    34  	deleteReturnsOnCall map[int]struct {
    35  		result1 error
    36  	}
    37  	LandStub        func(context.Context) error
    38  	landMutex       sync.RWMutex
    39  	landArgsForCall []struct {
    40  		arg1 context.Context
    41  	}
    42  	landReturns struct {
    43  		result1 error
    44  	}
    45  	landReturnsOnCall map[int]struct {
    46  		result1 error
    47  	}
    48  	RegisterStub        func(context.Context, tsa.RegisterOptions) error
    49  	registerMutex       sync.RWMutex
    50  	registerArgsForCall []struct {
    51  		arg1 context.Context
    52  		arg2 tsa.RegisterOptions
    53  	}
    54  	registerReturns struct {
    55  		result1 error
    56  	}
    57  	registerReturnsOnCall map[int]struct {
    58  		result1 error
    59  	}
    60  	ReportContainersStub        func(context.Context, []string) error
    61  	reportContainersMutex       sync.RWMutex
    62  	reportContainersArgsForCall []struct {
    63  		arg1 context.Context
    64  		arg2 []string
    65  	}
    66  	reportContainersReturns struct {
    67  		result1 error
    68  	}
    69  	reportContainersReturnsOnCall map[int]struct {
    70  		result1 error
    71  	}
    72  	ReportVolumesStub        func(context.Context, []string) error
    73  	reportVolumesMutex       sync.RWMutex
    74  	reportVolumesArgsForCall []struct {
    75  		arg1 context.Context
    76  		arg2 []string
    77  	}
    78  	reportVolumesReturns struct {
    79  		result1 error
    80  	}
    81  	reportVolumesReturnsOnCall map[int]struct {
    82  		result1 error
    83  	}
    84  	RetireStub        func(context.Context) error
    85  	retireMutex       sync.RWMutex
    86  	retireArgsForCall []struct {
    87  		arg1 context.Context
    88  	}
    89  	retireReturns struct {
    90  		result1 error
    91  	}
    92  	retireReturnsOnCall map[int]struct {
    93  		result1 error
    94  	}
    95  	VolumesToDestroyStub        func(context.Context) ([]string, error)
    96  	volumesToDestroyMutex       sync.RWMutex
    97  	volumesToDestroyArgsForCall []struct {
    98  		arg1 context.Context
    99  	}
   100  	volumesToDestroyReturns struct {
   101  		result1 []string
   102  		result2 error
   103  	}
   104  	volumesToDestroyReturnsOnCall map[int]struct {
   105  		result1 []string
   106  		result2 error
   107  	}
   108  	invocations      map[string][][]interface{}
   109  	invocationsMutex sync.RWMutex
   110  }
   111  
   112  func (fake *FakeTSAClient) ContainersToDestroy(arg1 context.Context) ([]string, error) {
   113  	fake.containersToDestroyMutex.Lock()
   114  	ret, specificReturn := fake.containersToDestroyReturnsOnCall[len(fake.containersToDestroyArgsForCall)]
   115  	fake.containersToDestroyArgsForCall = append(fake.containersToDestroyArgsForCall, struct {
   116  		arg1 context.Context
   117  	}{arg1})
   118  	fake.recordInvocation("ContainersToDestroy", []interface{}{arg1})
   119  	fake.containersToDestroyMutex.Unlock()
   120  	if fake.ContainersToDestroyStub != nil {
   121  		return fake.ContainersToDestroyStub(arg1)
   122  	}
   123  	if specificReturn {
   124  		return ret.result1, ret.result2
   125  	}
   126  	fakeReturns := fake.containersToDestroyReturns
   127  	return fakeReturns.result1, fakeReturns.result2
   128  }
   129  
   130  func (fake *FakeTSAClient) ContainersToDestroyCallCount() int {
   131  	fake.containersToDestroyMutex.RLock()
   132  	defer fake.containersToDestroyMutex.RUnlock()
   133  	return len(fake.containersToDestroyArgsForCall)
   134  }
   135  
   136  func (fake *FakeTSAClient) ContainersToDestroyCalls(stub func(context.Context) ([]string, error)) {
   137  	fake.containersToDestroyMutex.Lock()
   138  	defer fake.containersToDestroyMutex.Unlock()
   139  	fake.ContainersToDestroyStub = stub
   140  }
   141  
   142  func (fake *FakeTSAClient) ContainersToDestroyArgsForCall(i int) context.Context {
   143  	fake.containersToDestroyMutex.RLock()
   144  	defer fake.containersToDestroyMutex.RUnlock()
   145  	argsForCall := fake.containersToDestroyArgsForCall[i]
   146  	return argsForCall.arg1
   147  }
   148  
   149  func (fake *FakeTSAClient) ContainersToDestroyReturns(result1 []string, result2 error) {
   150  	fake.containersToDestroyMutex.Lock()
   151  	defer fake.containersToDestroyMutex.Unlock()
   152  	fake.ContainersToDestroyStub = nil
   153  	fake.containersToDestroyReturns = struct {
   154  		result1 []string
   155  		result2 error
   156  	}{result1, result2}
   157  }
   158  
   159  func (fake *FakeTSAClient) ContainersToDestroyReturnsOnCall(i int, result1 []string, result2 error) {
   160  	fake.containersToDestroyMutex.Lock()
   161  	defer fake.containersToDestroyMutex.Unlock()
   162  	fake.ContainersToDestroyStub = nil
   163  	if fake.containersToDestroyReturnsOnCall == nil {
   164  		fake.containersToDestroyReturnsOnCall = make(map[int]struct {
   165  			result1 []string
   166  			result2 error
   167  		})
   168  	}
   169  	fake.containersToDestroyReturnsOnCall[i] = struct {
   170  		result1 []string
   171  		result2 error
   172  	}{result1, result2}
   173  }
   174  
   175  func (fake *FakeTSAClient) Delete(arg1 context.Context) error {
   176  	fake.deleteMutex.Lock()
   177  	ret, specificReturn := fake.deleteReturnsOnCall[len(fake.deleteArgsForCall)]
   178  	fake.deleteArgsForCall = append(fake.deleteArgsForCall, struct {
   179  		arg1 context.Context
   180  	}{arg1})
   181  	fake.recordInvocation("Delete", []interface{}{arg1})
   182  	fake.deleteMutex.Unlock()
   183  	if fake.DeleteStub != nil {
   184  		return fake.DeleteStub(arg1)
   185  	}
   186  	if specificReturn {
   187  		return ret.result1
   188  	}
   189  	fakeReturns := fake.deleteReturns
   190  	return fakeReturns.result1
   191  }
   192  
   193  func (fake *FakeTSAClient) DeleteCallCount() int {
   194  	fake.deleteMutex.RLock()
   195  	defer fake.deleteMutex.RUnlock()
   196  	return len(fake.deleteArgsForCall)
   197  }
   198  
   199  func (fake *FakeTSAClient) DeleteCalls(stub func(context.Context) error) {
   200  	fake.deleteMutex.Lock()
   201  	defer fake.deleteMutex.Unlock()
   202  	fake.DeleteStub = stub
   203  }
   204  
   205  func (fake *FakeTSAClient) DeleteArgsForCall(i int) context.Context {
   206  	fake.deleteMutex.RLock()
   207  	defer fake.deleteMutex.RUnlock()
   208  	argsForCall := fake.deleteArgsForCall[i]
   209  	return argsForCall.arg1
   210  }
   211  
   212  func (fake *FakeTSAClient) DeleteReturns(result1 error) {
   213  	fake.deleteMutex.Lock()
   214  	defer fake.deleteMutex.Unlock()
   215  	fake.DeleteStub = nil
   216  	fake.deleteReturns = struct {
   217  		result1 error
   218  	}{result1}
   219  }
   220  
   221  func (fake *FakeTSAClient) DeleteReturnsOnCall(i int, result1 error) {
   222  	fake.deleteMutex.Lock()
   223  	defer fake.deleteMutex.Unlock()
   224  	fake.DeleteStub = nil
   225  	if fake.deleteReturnsOnCall == nil {
   226  		fake.deleteReturnsOnCall = make(map[int]struct {
   227  			result1 error
   228  		})
   229  	}
   230  	fake.deleteReturnsOnCall[i] = struct {
   231  		result1 error
   232  	}{result1}
   233  }
   234  
   235  func (fake *FakeTSAClient) Land(arg1 context.Context) error {
   236  	fake.landMutex.Lock()
   237  	ret, specificReturn := fake.landReturnsOnCall[len(fake.landArgsForCall)]
   238  	fake.landArgsForCall = append(fake.landArgsForCall, struct {
   239  		arg1 context.Context
   240  	}{arg1})
   241  	fake.recordInvocation("Land", []interface{}{arg1})
   242  	fake.landMutex.Unlock()
   243  	if fake.LandStub != nil {
   244  		return fake.LandStub(arg1)
   245  	}
   246  	if specificReturn {
   247  		return ret.result1
   248  	}
   249  	fakeReturns := fake.landReturns
   250  	return fakeReturns.result1
   251  }
   252  
   253  func (fake *FakeTSAClient) LandCallCount() int {
   254  	fake.landMutex.RLock()
   255  	defer fake.landMutex.RUnlock()
   256  	return len(fake.landArgsForCall)
   257  }
   258  
   259  func (fake *FakeTSAClient) LandCalls(stub func(context.Context) error) {
   260  	fake.landMutex.Lock()
   261  	defer fake.landMutex.Unlock()
   262  	fake.LandStub = stub
   263  }
   264  
   265  func (fake *FakeTSAClient) LandArgsForCall(i int) context.Context {
   266  	fake.landMutex.RLock()
   267  	defer fake.landMutex.RUnlock()
   268  	argsForCall := fake.landArgsForCall[i]
   269  	return argsForCall.arg1
   270  }
   271  
   272  func (fake *FakeTSAClient) LandReturns(result1 error) {
   273  	fake.landMutex.Lock()
   274  	defer fake.landMutex.Unlock()
   275  	fake.LandStub = nil
   276  	fake.landReturns = struct {
   277  		result1 error
   278  	}{result1}
   279  }
   280  
   281  func (fake *FakeTSAClient) LandReturnsOnCall(i int, result1 error) {
   282  	fake.landMutex.Lock()
   283  	defer fake.landMutex.Unlock()
   284  	fake.LandStub = nil
   285  	if fake.landReturnsOnCall == nil {
   286  		fake.landReturnsOnCall = make(map[int]struct {
   287  			result1 error
   288  		})
   289  	}
   290  	fake.landReturnsOnCall[i] = struct {
   291  		result1 error
   292  	}{result1}
   293  }
   294  
   295  func (fake *FakeTSAClient) Register(arg1 context.Context, arg2 tsa.RegisterOptions) error {
   296  	fake.registerMutex.Lock()
   297  	ret, specificReturn := fake.registerReturnsOnCall[len(fake.registerArgsForCall)]
   298  	fake.registerArgsForCall = append(fake.registerArgsForCall, struct {
   299  		arg1 context.Context
   300  		arg2 tsa.RegisterOptions
   301  	}{arg1, arg2})
   302  	fake.recordInvocation("Register", []interface{}{arg1, arg2})
   303  	fake.registerMutex.Unlock()
   304  	if fake.RegisterStub != nil {
   305  		return fake.RegisterStub(arg1, arg2)
   306  	}
   307  	if specificReturn {
   308  		return ret.result1
   309  	}
   310  	fakeReturns := fake.registerReturns
   311  	return fakeReturns.result1
   312  }
   313  
   314  func (fake *FakeTSAClient) RegisterCallCount() int {
   315  	fake.registerMutex.RLock()
   316  	defer fake.registerMutex.RUnlock()
   317  	return len(fake.registerArgsForCall)
   318  }
   319  
   320  func (fake *FakeTSAClient) RegisterCalls(stub func(context.Context, tsa.RegisterOptions) error) {
   321  	fake.registerMutex.Lock()
   322  	defer fake.registerMutex.Unlock()
   323  	fake.RegisterStub = stub
   324  }
   325  
   326  func (fake *FakeTSAClient) RegisterArgsForCall(i int) (context.Context, tsa.RegisterOptions) {
   327  	fake.registerMutex.RLock()
   328  	defer fake.registerMutex.RUnlock()
   329  	argsForCall := fake.registerArgsForCall[i]
   330  	return argsForCall.arg1, argsForCall.arg2
   331  }
   332  
   333  func (fake *FakeTSAClient) RegisterReturns(result1 error) {
   334  	fake.registerMutex.Lock()
   335  	defer fake.registerMutex.Unlock()
   336  	fake.RegisterStub = nil
   337  	fake.registerReturns = struct {
   338  		result1 error
   339  	}{result1}
   340  }
   341  
   342  func (fake *FakeTSAClient) RegisterReturnsOnCall(i int, result1 error) {
   343  	fake.registerMutex.Lock()
   344  	defer fake.registerMutex.Unlock()
   345  	fake.RegisterStub = nil
   346  	if fake.registerReturnsOnCall == nil {
   347  		fake.registerReturnsOnCall = make(map[int]struct {
   348  			result1 error
   349  		})
   350  	}
   351  	fake.registerReturnsOnCall[i] = struct {
   352  		result1 error
   353  	}{result1}
   354  }
   355  
   356  func (fake *FakeTSAClient) ReportContainers(arg1 context.Context, arg2 []string) error {
   357  	var arg2Copy []string
   358  	if arg2 != nil {
   359  		arg2Copy = make([]string, len(arg2))
   360  		copy(arg2Copy, arg2)
   361  	}
   362  	fake.reportContainersMutex.Lock()
   363  	ret, specificReturn := fake.reportContainersReturnsOnCall[len(fake.reportContainersArgsForCall)]
   364  	fake.reportContainersArgsForCall = append(fake.reportContainersArgsForCall, struct {
   365  		arg1 context.Context
   366  		arg2 []string
   367  	}{arg1, arg2Copy})
   368  	fake.recordInvocation("ReportContainers", []interface{}{arg1, arg2Copy})
   369  	fake.reportContainersMutex.Unlock()
   370  	if fake.ReportContainersStub != nil {
   371  		return fake.ReportContainersStub(arg1, arg2)
   372  	}
   373  	if specificReturn {
   374  		return ret.result1
   375  	}
   376  	fakeReturns := fake.reportContainersReturns
   377  	return fakeReturns.result1
   378  }
   379  
   380  func (fake *FakeTSAClient) ReportContainersCallCount() int {
   381  	fake.reportContainersMutex.RLock()
   382  	defer fake.reportContainersMutex.RUnlock()
   383  	return len(fake.reportContainersArgsForCall)
   384  }
   385  
   386  func (fake *FakeTSAClient) ReportContainersCalls(stub func(context.Context, []string) error) {
   387  	fake.reportContainersMutex.Lock()
   388  	defer fake.reportContainersMutex.Unlock()
   389  	fake.ReportContainersStub = stub
   390  }
   391  
   392  func (fake *FakeTSAClient) ReportContainersArgsForCall(i int) (context.Context, []string) {
   393  	fake.reportContainersMutex.RLock()
   394  	defer fake.reportContainersMutex.RUnlock()
   395  	argsForCall := fake.reportContainersArgsForCall[i]
   396  	return argsForCall.arg1, argsForCall.arg2
   397  }
   398  
   399  func (fake *FakeTSAClient) ReportContainersReturns(result1 error) {
   400  	fake.reportContainersMutex.Lock()
   401  	defer fake.reportContainersMutex.Unlock()
   402  	fake.ReportContainersStub = nil
   403  	fake.reportContainersReturns = struct {
   404  		result1 error
   405  	}{result1}
   406  }
   407  
   408  func (fake *FakeTSAClient) ReportContainersReturnsOnCall(i int, result1 error) {
   409  	fake.reportContainersMutex.Lock()
   410  	defer fake.reportContainersMutex.Unlock()
   411  	fake.ReportContainersStub = nil
   412  	if fake.reportContainersReturnsOnCall == nil {
   413  		fake.reportContainersReturnsOnCall = make(map[int]struct {
   414  			result1 error
   415  		})
   416  	}
   417  	fake.reportContainersReturnsOnCall[i] = struct {
   418  		result1 error
   419  	}{result1}
   420  }
   421  
   422  func (fake *FakeTSAClient) ReportVolumes(arg1 context.Context, arg2 []string) error {
   423  	var arg2Copy []string
   424  	if arg2 != nil {
   425  		arg2Copy = make([]string, len(arg2))
   426  		copy(arg2Copy, arg2)
   427  	}
   428  	fake.reportVolumesMutex.Lock()
   429  	ret, specificReturn := fake.reportVolumesReturnsOnCall[len(fake.reportVolumesArgsForCall)]
   430  	fake.reportVolumesArgsForCall = append(fake.reportVolumesArgsForCall, struct {
   431  		arg1 context.Context
   432  		arg2 []string
   433  	}{arg1, arg2Copy})
   434  	fake.recordInvocation("ReportVolumes", []interface{}{arg1, arg2Copy})
   435  	fake.reportVolumesMutex.Unlock()
   436  	if fake.ReportVolumesStub != nil {
   437  		return fake.ReportVolumesStub(arg1, arg2)
   438  	}
   439  	if specificReturn {
   440  		return ret.result1
   441  	}
   442  	fakeReturns := fake.reportVolumesReturns
   443  	return fakeReturns.result1
   444  }
   445  
   446  func (fake *FakeTSAClient) ReportVolumesCallCount() int {
   447  	fake.reportVolumesMutex.RLock()
   448  	defer fake.reportVolumesMutex.RUnlock()
   449  	return len(fake.reportVolumesArgsForCall)
   450  }
   451  
   452  func (fake *FakeTSAClient) ReportVolumesCalls(stub func(context.Context, []string) error) {
   453  	fake.reportVolumesMutex.Lock()
   454  	defer fake.reportVolumesMutex.Unlock()
   455  	fake.ReportVolumesStub = stub
   456  }
   457  
   458  func (fake *FakeTSAClient) ReportVolumesArgsForCall(i int) (context.Context, []string) {
   459  	fake.reportVolumesMutex.RLock()
   460  	defer fake.reportVolumesMutex.RUnlock()
   461  	argsForCall := fake.reportVolumesArgsForCall[i]
   462  	return argsForCall.arg1, argsForCall.arg2
   463  }
   464  
   465  func (fake *FakeTSAClient) ReportVolumesReturns(result1 error) {
   466  	fake.reportVolumesMutex.Lock()
   467  	defer fake.reportVolumesMutex.Unlock()
   468  	fake.ReportVolumesStub = nil
   469  	fake.reportVolumesReturns = struct {
   470  		result1 error
   471  	}{result1}
   472  }
   473  
   474  func (fake *FakeTSAClient) ReportVolumesReturnsOnCall(i int, result1 error) {
   475  	fake.reportVolumesMutex.Lock()
   476  	defer fake.reportVolumesMutex.Unlock()
   477  	fake.ReportVolumesStub = nil
   478  	if fake.reportVolumesReturnsOnCall == nil {
   479  		fake.reportVolumesReturnsOnCall = make(map[int]struct {
   480  			result1 error
   481  		})
   482  	}
   483  	fake.reportVolumesReturnsOnCall[i] = struct {
   484  		result1 error
   485  	}{result1}
   486  }
   487  
   488  func (fake *FakeTSAClient) Retire(arg1 context.Context) error {
   489  	fake.retireMutex.Lock()
   490  	ret, specificReturn := fake.retireReturnsOnCall[len(fake.retireArgsForCall)]
   491  	fake.retireArgsForCall = append(fake.retireArgsForCall, struct {
   492  		arg1 context.Context
   493  	}{arg1})
   494  	fake.recordInvocation("Retire", []interface{}{arg1})
   495  	fake.retireMutex.Unlock()
   496  	if fake.RetireStub != nil {
   497  		return fake.RetireStub(arg1)
   498  	}
   499  	if specificReturn {
   500  		return ret.result1
   501  	}
   502  	fakeReturns := fake.retireReturns
   503  	return fakeReturns.result1
   504  }
   505  
   506  func (fake *FakeTSAClient) RetireCallCount() int {
   507  	fake.retireMutex.RLock()
   508  	defer fake.retireMutex.RUnlock()
   509  	return len(fake.retireArgsForCall)
   510  }
   511  
   512  func (fake *FakeTSAClient) RetireCalls(stub func(context.Context) error) {
   513  	fake.retireMutex.Lock()
   514  	defer fake.retireMutex.Unlock()
   515  	fake.RetireStub = stub
   516  }
   517  
   518  func (fake *FakeTSAClient) RetireArgsForCall(i int) context.Context {
   519  	fake.retireMutex.RLock()
   520  	defer fake.retireMutex.RUnlock()
   521  	argsForCall := fake.retireArgsForCall[i]
   522  	return argsForCall.arg1
   523  }
   524  
   525  func (fake *FakeTSAClient) RetireReturns(result1 error) {
   526  	fake.retireMutex.Lock()
   527  	defer fake.retireMutex.Unlock()
   528  	fake.RetireStub = nil
   529  	fake.retireReturns = struct {
   530  		result1 error
   531  	}{result1}
   532  }
   533  
   534  func (fake *FakeTSAClient) RetireReturnsOnCall(i int, result1 error) {
   535  	fake.retireMutex.Lock()
   536  	defer fake.retireMutex.Unlock()
   537  	fake.RetireStub = nil
   538  	if fake.retireReturnsOnCall == nil {
   539  		fake.retireReturnsOnCall = make(map[int]struct {
   540  			result1 error
   541  		})
   542  	}
   543  	fake.retireReturnsOnCall[i] = struct {
   544  		result1 error
   545  	}{result1}
   546  }
   547  
   548  func (fake *FakeTSAClient) VolumesToDestroy(arg1 context.Context) ([]string, error) {
   549  	fake.volumesToDestroyMutex.Lock()
   550  	ret, specificReturn := fake.volumesToDestroyReturnsOnCall[len(fake.volumesToDestroyArgsForCall)]
   551  	fake.volumesToDestroyArgsForCall = append(fake.volumesToDestroyArgsForCall, struct {
   552  		arg1 context.Context
   553  	}{arg1})
   554  	fake.recordInvocation("VolumesToDestroy", []interface{}{arg1})
   555  	fake.volumesToDestroyMutex.Unlock()
   556  	if fake.VolumesToDestroyStub != nil {
   557  		return fake.VolumesToDestroyStub(arg1)
   558  	}
   559  	if specificReturn {
   560  		return ret.result1, ret.result2
   561  	}
   562  	fakeReturns := fake.volumesToDestroyReturns
   563  	return fakeReturns.result1, fakeReturns.result2
   564  }
   565  
   566  func (fake *FakeTSAClient) VolumesToDestroyCallCount() int {
   567  	fake.volumesToDestroyMutex.RLock()
   568  	defer fake.volumesToDestroyMutex.RUnlock()
   569  	return len(fake.volumesToDestroyArgsForCall)
   570  }
   571  
   572  func (fake *FakeTSAClient) VolumesToDestroyCalls(stub func(context.Context) ([]string, error)) {
   573  	fake.volumesToDestroyMutex.Lock()
   574  	defer fake.volumesToDestroyMutex.Unlock()
   575  	fake.VolumesToDestroyStub = stub
   576  }
   577  
   578  func (fake *FakeTSAClient) VolumesToDestroyArgsForCall(i int) context.Context {
   579  	fake.volumesToDestroyMutex.RLock()
   580  	defer fake.volumesToDestroyMutex.RUnlock()
   581  	argsForCall := fake.volumesToDestroyArgsForCall[i]
   582  	return argsForCall.arg1
   583  }
   584  
   585  func (fake *FakeTSAClient) VolumesToDestroyReturns(result1 []string, result2 error) {
   586  	fake.volumesToDestroyMutex.Lock()
   587  	defer fake.volumesToDestroyMutex.Unlock()
   588  	fake.VolumesToDestroyStub = nil
   589  	fake.volumesToDestroyReturns = struct {
   590  		result1 []string
   591  		result2 error
   592  	}{result1, result2}
   593  }
   594  
   595  func (fake *FakeTSAClient) VolumesToDestroyReturnsOnCall(i int, result1 []string, result2 error) {
   596  	fake.volumesToDestroyMutex.Lock()
   597  	defer fake.volumesToDestroyMutex.Unlock()
   598  	fake.VolumesToDestroyStub = nil
   599  	if fake.volumesToDestroyReturnsOnCall == nil {
   600  		fake.volumesToDestroyReturnsOnCall = make(map[int]struct {
   601  			result1 []string
   602  			result2 error
   603  		})
   604  	}
   605  	fake.volumesToDestroyReturnsOnCall[i] = struct {
   606  		result1 []string
   607  		result2 error
   608  	}{result1, result2}
   609  }
   610  
   611  func (fake *FakeTSAClient) Invocations() map[string][][]interface{} {
   612  	fake.invocationsMutex.RLock()
   613  	defer fake.invocationsMutex.RUnlock()
   614  	fake.containersToDestroyMutex.RLock()
   615  	defer fake.containersToDestroyMutex.RUnlock()
   616  	fake.deleteMutex.RLock()
   617  	defer fake.deleteMutex.RUnlock()
   618  	fake.landMutex.RLock()
   619  	defer fake.landMutex.RUnlock()
   620  	fake.registerMutex.RLock()
   621  	defer fake.registerMutex.RUnlock()
   622  	fake.reportContainersMutex.RLock()
   623  	defer fake.reportContainersMutex.RUnlock()
   624  	fake.reportVolumesMutex.RLock()
   625  	defer fake.reportVolumesMutex.RUnlock()
   626  	fake.retireMutex.RLock()
   627  	defer fake.retireMutex.RUnlock()
   628  	fake.volumesToDestroyMutex.RLock()
   629  	defer fake.volumesToDestroyMutex.RUnlock()
   630  	copiedInvocations := map[string][][]interface{}{}
   631  	for key, value := range fake.invocations {
   632  		copiedInvocations[key] = value
   633  	}
   634  	return copiedInvocations
   635  }
   636  
   637  func (fake *FakeTSAClient) recordInvocation(key string, args []interface{}) {
   638  	fake.invocationsMutex.Lock()
   639  	defer fake.invocationsMutex.Unlock()
   640  	if fake.invocations == nil {
   641  		fake.invocations = map[string][][]interface{}{}
   642  	}
   643  	if fake.invocations[key] == nil {
   644  		fake.invocations[key] = [][]interface{}{}
   645  	}
   646  	fake.invocations[key] = append(fake.invocations[key], args)
   647  }
   648  
   649  var _ worker.TSAClient = new(FakeTSAClient)