github.com/ahlemtn/fabric@v2.1.1+incompatible/core/container/dockercontroller/mock/dockerclient.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package mock
     3  
     4  import (
     5  	"context"
     6  	"sync"
     7  
     8  	docker "github.com/fsouza/go-dockerclient"
     9  )
    10  
    11  type DockerClient struct {
    12  	AttachToContainerStub        func(docker.AttachToContainerOptions) error
    13  	attachToContainerMutex       sync.RWMutex
    14  	attachToContainerArgsForCall []struct {
    15  		arg1 docker.AttachToContainerOptions
    16  	}
    17  	attachToContainerReturns struct {
    18  		result1 error
    19  	}
    20  	attachToContainerReturnsOnCall map[int]struct {
    21  		result1 error
    22  	}
    23  	BuildImageStub        func(docker.BuildImageOptions) error
    24  	buildImageMutex       sync.RWMutex
    25  	buildImageArgsForCall []struct {
    26  		arg1 docker.BuildImageOptions
    27  	}
    28  	buildImageReturns struct {
    29  		result1 error
    30  	}
    31  	buildImageReturnsOnCall map[int]struct {
    32  		result1 error
    33  	}
    34  	CreateContainerStub        func(docker.CreateContainerOptions) (*docker.Container, error)
    35  	createContainerMutex       sync.RWMutex
    36  	createContainerArgsForCall []struct {
    37  		arg1 docker.CreateContainerOptions
    38  	}
    39  	createContainerReturns struct {
    40  		result1 *docker.Container
    41  		result2 error
    42  	}
    43  	createContainerReturnsOnCall map[int]struct {
    44  		result1 *docker.Container
    45  		result2 error
    46  	}
    47  	InspectImageStub        func(string) (*docker.Image, error)
    48  	inspectImageMutex       sync.RWMutex
    49  	inspectImageArgsForCall []struct {
    50  		arg1 string
    51  	}
    52  	inspectImageReturns struct {
    53  		result1 *docker.Image
    54  		result2 error
    55  	}
    56  	inspectImageReturnsOnCall map[int]struct {
    57  		result1 *docker.Image
    58  		result2 error
    59  	}
    60  	KillContainerStub        func(docker.KillContainerOptions) error
    61  	killContainerMutex       sync.RWMutex
    62  	killContainerArgsForCall []struct {
    63  		arg1 docker.KillContainerOptions
    64  	}
    65  	killContainerReturns struct {
    66  		result1 error
    67  	}
    68  	killContainerReturnsOnCall map[int]struct {
    69  		result1 error
    70  	}
    71  	PingWithContextStub        func(context.Context) error
    72  	pingWithContextMutex       sync.RWMutex
    73  	pingWithContextArgsForCall []struct {
    74  		arg1 context.Context
    75  	}
    76  	pingWithContextReturns struct {
    77  		result1 error
    78  	}
    79  	pingWithContextReturnsOnCall map[int]struct {
    80  		result1 error
    81  	}
    82  	RemoveContainerStub        func(docker.RemoveContainerOptions) error
    83  	removeContainerMutex       sync.RWMutex
    84  	removeContainerArgsForCall []struct {
    85  		arg1 docker.RemoveContainerOptions
    86  	}
    87  	removeContainerReturns struct {
    88  		result1 error
    89  	}
    90  	removeContainerReturnsOnCall map[int]struct {
    91  		result1 error
    92  	}
    93  	StartContainerStub        func(string, *docker.HostConfig) error
    94  	startContainerMutex       sync.RWMutex
    95  	startContainerArgsForCall []struct {
    96  		arg1 string
    97  		arg2 *docker.HostConfig
    98  	}
    99  	startContainerReturns struct {
   100  		result1 error
   101  	}
   102  	startContainerReturnsOnCall map[int]struct {
   103  		result1 error
   104  	}
   105  	StopContainerStub        func(string, uint) error
   106  	stopContainerMutex       sync.RWMutex
   107  	stopContainerArgsForCall []struct {
   108  		arg1 string
   109  		arg2 uint
   110  	}
   111  	stopContainerReturns struct {
   112  		result1 error
   113  	}
   114  	stopContainerReturnsOnCall map[int]struct {
   115  		result1 error
   116  	}
   117  	UploadToContainerStub        func(string, docker.UploadToContainerOptions) error
   118  	uploadToContainerMutex       sync.RWMutex
   119  	uploadToContainerArgsForCall []struct {
   120  		arg1 string
   121  		arg2 docker.UploadToContainerOptions
   122  	}
   123  	uploadToContainerReturns struct {
   124  		result1 error
   125  	}
   126  	uploadToContainerReturnsOnCall map[int]struct {
   127  		result1 error
   128  	}
   129  	WaitContainerStub        func(string) (int, error)
   130  	waitContainerMutex       sync.RWMutex
   131  	waitContainerArgsForCall []struct {
   132  		arg1 string
   133  	}
   134  	waitContainerReturns struct {
   135  		result1 int
   136  		result2 error
   137  	}
   138  	waitContainerReturnsOnCall map[int]struct {
   139  		result1 int
   140  		result2 error
   141  	}
   142  	invocations      map[string][][]interface{}
   143  	invocationsMutex sync.RWMutex
   144  }
   145  
   146  func (fake *DockerClient) AttachToContainer(arg1 docker.AttachToContainerOptions) error {
   147  	fake.attachToContainerMutex.Lock()
   148  	ret, specificReturn := fake.attachToContainerReturnsOnCall[len(fake.attachToContainerArgsForCall)]
   149  	fake.attachToContainerArgsForCall = append(fake.attachToContainerArgsForCall, struct {
   150  		arg1 docker.AttachToContainerOptions
   151  	}{arg1})
   152  	fake.recordInvocation("AttachToContainer", []interface{}{arg1})
   153  	fake.attachToContainerMutex.Unlock()
   154  	if fake.AttachToContainerStub != nil {
   155  		return fake.AttachToContainerStub(arg1)
   156  	}
   157  	if specificReturn {
   158  		return ret.result1
   159  	}
   160  	fakeReturns := fake.attachToContainerReturns
   161  	return fakeReturns.result1
   162  }
   163  
   164  func (fake *DockerClient) AttachToContainerCallCount() int {
   165  	fake.attachToContainerMutex.RLock()
   166  	defer fake.attachToContainerMutex.RUnlock()
   167  	return len(fake.attachToContainerArgsForCall)
   168  }
   169  
   170  func (fake *DockerClient) AttachToContainerCalls(stub func(docker.AttachToContainerOptions) error) {
   171  	fake.attachToContainerMutex.Lock()
   172  	defer fake.attachToContainerMutex.Unlock()
   173  	fake.AttachToContainerStub = stub
   174  }
   175  
   176  func (fake *DockerClient) AttachToContainerArgsForCall(i int) docker.AttachToContainerOptions {
   177  	fake.attachToContainerMutex.RLock()
   178  	defer fake.attachToContainerMutex.RUnlock()
   179  	argsForCall := fake.attachToContainerArgsForCall[i]
   180  	return argsForCall.arg1
   181  }
   182  
   183  func (fake *DockerClient) AttachToContainerReturns(result1 error) {
   184  	fake.attachToContainerMutex.Lock()
   185  	defer fake.attachToContainerMutex.Unlock()
   186  	fake.AttachToContainerStub = nil
   187  	fake.attachToContainerReturns = struct {
   188  		result1 error
   189  	}{result1}
   190  }
   191  
   192  func (fake *DockerClient) AttachToContainerReturnsOnCall(i int, result1 error) {
   193  	fake.attachToContainerMutex.Lock()
   194  	defer fake.attachToContainerMutex.Unlock()
   195  	fake.AttachToContainerStub = nil
   196  	if fake.attachToContainerReturnsOnCall == nil {
   197  		fake.attachToContainerReturnsOnCall = make(map[int]struct {
   198  			result1 error
   199  		})
   200  	}
   201  	fake.attachToContainerReturnsOnCall[i] = struct {
   202  		result1 error
   203  	}{result1}
   204  }
   205  
   206  func (fake *DockerClient) BuildImage(arg1 docker.BuildImageOptions) error {
   207  	fake.buildImageMutex.Lock()
   208  	ret, specificReturn := fake.buildImageReturnsOnCall[len(fake.buildImageArgsForCall)]
   209  	fake.buildImageArgsForCall = append(fake.buildImageArgsForCall, struct {
   210  		arg1 docker.BuildImageOptions
   211  	}{arg1})
   212  	fake.recordInvocation("BuildImage", []interface{}{arg1})
   213  	fake.buildImageMutex.Unlock()
   214  	if fake.BuildImageStub != nil {
   215  		return fake.BuildImageStub(arg1)
   216  	}
   217  	if specificReturn {
   218  		return ret.result1
   219  	}
   220  	fakeReturns := fake.buildImageReturns
   221  	return fakeReturns.result1
   222  }
   223  
   224  func (fake *DockerClient) BuildImageCallCount() int {
   225  	fake.buildImageMutex.RLock()
   226  	defer fake.buildImageMutex.RUnlock()
   227  	return len(fake.buildImageArgsForCall)
   228  }
   229  
   230  func (fake *DockerClient) BuildImageCalls(stub func(docker.BuildImageOptions) error) {
   231  	fake.buildImageMutex.Lock()
   232  	defer fake.buildImageMutex.Unlock()
   233  	fake.BuildImageStub = stub
   234  }
   235  
   236  func (fake *DockerClient) BuildImageArgsForCall(i int) docker.BuildImageOptions {
   237  	fake.buildImageMutex.RLock()
   238  	defer fake.buildImageMutex.RUnlock()
   239  	argsForCall := fake.buildImageArgsForCall[i]
   240  	return argsForCall.arg1
   241  }
   242  
   243  func (fake *DockerClient) BuildImageReturns(result1 error) {
   244  	fake.buildImageMutex.Lock()
   245  	defer fake.buildImageMutex.Unlock()
   246  	fake.BuildImageStub = nil
   247  	fake.buildImageReturns = struct {
   248  		result1 error
   249  	}{result1}
   250  }
   251  
   252  func (fake *DockerClient) BuildImageReturnsOnCall(i int, result1 error) {
   253  	fake.buildImageMutex.Lock()
   254  	defer fake.buildImageMutex.Unlock()
   255  	fake.BuildImageStub = nil
   256  	if fake.buildImageReturnsOnCall == nil {
   257  		fake.buildImageReturnsOnCall = make(map[int]struct {
   258  			result1 error
   259  		})
   260  	}
   261  	fake.buildImageReturnsOnCall[i] = struct {
   262  		result1 error
   263  	}{result1}
   264  }
   265  
   266  func (fake *DockerClient) CreateContainer(arg1 docker.CreateContainerOptions) (*docker.Container, error) {
   267  	fake.createContainerMutex.Lock()
   268  	ret, specificReturn := fake.createContainerReturnsOnCall[len(fake.createContainerArgsForCall)]
   269  	fake.createContainerArgsForCall = append(fake.createContainerArgsForCall, struct {
   270  		arg1 docker.CreateContainerOptions
   271  	}{arg1})
   272  	fake.recordInvocation("CreateContainer", []interface{}{arg1})
   273  	fake.createContainerMutex.Unlock()
   274  	if fake.CreateContainerStub != nil {
   275  		return fake.CreateContainerStub(arg1)
   276  	}
   277  	if specificReturn {
   278  		return ret.result1, ret.result2
   279  	}
   280  	fakeReturns := fake.createContainerReturns
   281  	return fakeReturns.result1, fakeReturns.result2
   282  }
   283  
   284  func (fake *DockerClient) CreateContainerCallCount() int {
   285  	fake.createContainerMutex.RLock()
   286  	defer fake.createContainerMutex.RUnlock()
   287  	return len(fake.createContainerArgsForCall)
   288  }
   289  
   290  func (fake *DockerClient) CreateContainerCalls(stub func(docker.CreateContainerOptions) (*docker.Container, error)) {
   291  	fake.createContainerMutex.Lock()
   292  	defer fake.createContainerMutex.Unlock()
   293  	fake.CreateContainerStub = stub
   294  }
   295  
   296  func (fake *DockerClient) CreateContainerArgsForCall(i int) docker.CreateContainerOptions {
   297  	fake.createContainerMutex.RLock()
   298  	defer fake.createContainerMutex.RUnlock()
   299  	argsForCall := fake.createContainerArgsForCall[i]
   300  	return argsForCall.arg1
   301  }
   302  
   303  func (fake *DockerClient) CreateContainerReturns(result1 *docker.Container, result2 error) {
   304  	fake.createContainerMutex.Lock()
   305  	defer fake.createContainerMutex.Unlock()
   306  	fake.CreateContainerStub = nil
   307  	fake.createContainerReturns = struct {
   308  		result1 *docker.Container
   309  		result2 error
   310  	}{result1, result2}
   311  }
   312  
   313  func (fake *DockerClient) CreateContainerReturnsOnCall(i int, result1 *docker.Container, result2 error) {
   314  	fake.createContainerMutex.Lock()
   315  	defer fake.createContainerMutex.Unlock()
   316  	fake.CreateContainerStub = nil
   317  	if fake.createContainerReturnsOnCall == nil {
   318  		fake.createContainerReturnsOnCall = make(map[int]struct {
   319  			result1 *docker.Container
   320  			result2 error
   321  		})
   322  	}
   323  	fake.createContainerReturnsOnCall[i] = struct {
   324  		result1 *docker.Container
   325  		result2 error
   326  	}{result1, result2}
   327  }
   328  
   329  func (fake *DockerClient) InspectImage(arg1 string) (*docker.Image, error) {
   330  	fake.inspectImageMutex.Lock()
   331  	ret, specificReturn := fake.inspectImageReturnsOnCall[len(fake.inspectImageArgsForCall)]
   332  	fake.inspectImageArgsForCall = append(fake.inspectImageArgsForCall, struct {
   333  		arg1 string
   334  	}{arg1})
   335  	fake.recordInvocation("InspectImage", []interface{}{arg1})
   336  	fake.inspectImageMutex.Unlock()
   337  	if fake.InspectImageStub != nil {
   338  		return fake.InspectImageStub(arg1)
   339  	}
   340  	if specificReturn {
   341  		return ret.result1, ret.result2
   342  	}
   343  	fakeReturns := fake.inspectImageReturns
   344  	return fakeReturns.result1, fakeReturns.result2
   345  }
   346  
   347  func (fake *DockerClient) InspectImageCallCount() int {
   348  	fake.inspectImageMutex.RLock()
   349  	defer fake.inspectImageMutex.RUnlock()
   350  	return len(fake.inspectImageArgsForCall)
   351  }
   352  
   353  func (fake *DockerClient) InspectImageCalls(stub func(string) (*docker.Image, error)) {
   354  	fake.inspectImageMutex.Lock()
   355  	defer fake.inspectImageMutex.Unlock()
   356  	fake.InspectImageStub = stub
   357  }
   358  
   359  func (fake *DockerClient) InspectImageArgsForCall(i int) string {
   360  	fake.inspectImageMutex.RLock()
   361  	defer fake.inspectImageMutex.RUnlock()
   362  	argsForCall := fake.inspectImageArgsForCall[i]
   363  	return argsForCall.arg1
   364  }
   365  
   366  func (fake *DockerClient) InspectImageReturns(result1 *docker.Image, result2 error) {
   367  	fake.inspectImageMutex.Lock()
   368  	defer fake.inspectImageMutex.Unlock()
   369  	fake.InspectImageStub = nil
   370  	fake.inspectImageReturns = struct {
   371  		result1 *docker.Image
   372  		result2 error
   373  	}{result1, result2}
   374  }
   375  
   376  func (fake *DockerClient) InspectImageReturnsOnCall(i int, result1 *docker.Image, result2 error) {
   377  	fake.inspectImageMutex.Lock()
   378  	defer fake.inspectImageMutex.Unlock()
   379  	fake.InspectImageStub = nil
   380  	if fake.inspectImageReturnsOnCall == nil {
   381  		fake.inspectImageReturnsOnCall = make(map[int]struct {
   382  			result1 *docker.Image
   383  			result2 error
   384  		})
   385  	}
   386  	fake.inspectImageReturnsOnCall[i] = struct {
   387  		result1 *docker.Image
   388  		result2 error
   389  	}{result1, result2}
   390  }
   391  
   392  func (fake *DockerClient) KillContainer(arg1 docker.KillContainerOptions) error {
   393  	fake.killContainerMutex.Lock()
   394  	ret, specificReturn := fake.killContainerReturnsOnCall[len(fake.killContainerArgsForCall)]
   395  	fake.killContainerArgsForCall = append(fake.killContainerArgsForCall, struct {
   396  		arg1 docker.KillContainerOptions
   397  	}{arg1})
   398  	fake.recordInvocation("KillContainer", []interface{}{arg1})
   399  	fake.killContainerMutex.Unlock()
   400  	if fake.KillContainerStub != nil {
   401  		return fake.KillContainerStub(arg1)
   402  	}
   403  	if specificReturn {
   404  		return ret.result1
   405  	}
   406  	fakeReturns := fake.killContainerReturns
   407  	return fakeReturns.result1
   408  }
   409  
   410  func (fake *DockerClient) KillContainerCallCount() int {
   411  	fake.killContainerMutex.RLock()
   412  	defer fake.killContainerMutex.RUnlock()
   413  	return len(fake.killContainerArgsForCall)
   414  }
   415  
   416  func (fake *DockerClient) KillContainerCalls(stub func(docker.KillContainerOptions) error) {
   417  	fake.killContainerMutex.Lock()
   418  	defer fake.killContainerMutex.Unlock()
   419  	fake.KillContainerStub = stub
   420  }
   421  
   422  func (fake *DockerClient) KillContainerArgsForCall(i int) docker.KillContainerOptions {
   423  	fake.killContainerMutex.RLock()
   424  	defer fake.killContainerMutex.RUnlock()
   425  	argsForCall := fake.killContainerArgsForCall[i]
   426  	return argsForCall.arg1
   427  }
   428  
   429  func (fake *DockerClient) KillContainerReturns(result1 error) {
   430  	fake.killContainerMutex.Lock()
   431  	defer fake.killContainerMutex.Unlock()
   432  	fake.KillContainerStub = nil
   433  	fake.killContainerReturns = struct {
   434  		result1 error
   435  	}{result1}
   436  }
   437  
   438  func (fake *DockerClient) KillContainerReturnsOnCall(i int, result1 error) {
   439  	fake.killContainerMutex.Lock()
   440  	defer fake.killContainerMutex.Unlock()
   441  	fake.KillContainerStub = nil
   442  	if fake.killContainerReturnsOnCall == nil {
   443  		fake.killContainerReturnsOnCall = make(map[int]struct {
   444  			result1 error
   445  		})
   446  	}
   447  	fake.killContainerReturnsOnCall[i] = struct {
   448  		result1 error
   449  	}{result1}
   450  }
   451  
   452  func (fake *DockerClient) PingWithContext(arg1 context.Context) error {
   453  	fake.pingWithContextMutex.Lock()
   454  	ret, specificReturn := fake.pingWithContextReturnsOnCall[len(fake.pingWithContextArgsForCall)]
   455  	fake.pingWithContextArgsForCall = append(fake.pingWithContextArgsForCall, struct {
   456  		arg1 context.Context
   457  	}{arg1})
   458  	fake.recordInvocation("PingWithContext", []interface{}{arg1})
   459  	fake.pingWithContextMutex.Unlock()
   460  	if fake.PingWithContextStub != nil {
   461  		return fake.PingWithContextStub(arg1)
   462  	}
   463  	if specificReturn {
   464  		return ret.result1
   465  	}
   466  	fakeReturns := fake.pingWithContextReturns
   467  	return fakeReturns.result1
   468  }
   469  
   470  func (fake *DockerClient) PingWithContextCallCount() int {
   471  	fake.pingWithContextMutex.RLock()
   472  	defer fake.pingWithContextMutex.RUnlock()
   473  	return len(fake.pingWithContextArgsForCall)
   474  }
   475  
   476  func (fake *DockerClient) PingWithContextCalls(stub func(context.Context) error) {
   477  	fake.pingWithContextMutex.Lock()
   478  	defer fake.pingWithContextMutex.Unlock()
   479  	fake.PingWithContextStub = stub
   480  }
   481  
   482  func (fake *DockerClient) PingWithContextArgsForCall(i int) context.Context {
   483  	fake.pingWithContextMutex.RLock()
   484  	defer fake.pingWithContextMutex.RUnlock()
   485  	argsForCall := fake.pingWithContextArgsForCall[i]
   486  	return argsForCall.arg1
   487  }
   488  
   489  func (fake *DockerClient) PingWithContextReturns(result1 error) {
   490  	fake.pingWithContextMutex.Lock()
   491  	defer fake.pingWithContextMutex.Unlock()
   492  	fake.PingWithContextStub = nil
   493  	fake.pingWithContextReturns = struct {
   494  		result1 error
   495  	}{result1}
   496  }
   497  
   498  func (fake *DockerClient) PingWithContextReturnsOnCall(i int, result1 error) {
   499  	fake.pingWithContextMutex.Lock()
   500  	defer fake.pingWithContextMutex.Unlock()
   501  	fake.PingWithContextStub = nil
   502  	if fake.pingWithContextReturnsOnCall == nil {
   503  		fake.pingWithContextReturnsOnCall = make(map[int]struct {
   504  			result1 error
   505  		})
   506  	}
   507  	fake.pingWithContextReturnsOnCall[i] = struct {
   508  		result1 error
   509  	}{result1}
   510  }
   511  
   512  func (fake *DockerClient) RemoveContainer(arg1 docker.RemoveContainerOptions) error {
   513  	fake.removeContainerMutex.Lock()
   514  	ret, specificReturn := fake.removeContainerReturnsOnCall[len(fake.removeContainerArgsForCall)]
   515  	fake.removeContainerArgsForCall = append(fake.removeContainerArgsForCall, struct {
   516  		arg1 docker.RemoveContainerOptions
   517  	}{arg1})
   518  	fake.recordInvocation("RemoveContainer", []interface{}{arg1})
   519  	fake.removeContainerMutex.Unlock()
   520  	if fake.RemoveContainerStub != nil {
   521  		return fake.RemoveContainerStub(arg1)
   522  	}
   523  	if specificReturn {
   524  		return ret.result1
   525  	}
   526  	fakeReturns := fake.removeContainerReturns
   527  	return fakeReturns.result1
   528  }
   529  
   530  func (fake *DockerClient) RemoveContainerCallCount() int {
   531  	fake.removeContainerMutex.RLock()
   532  	defer fake.removeContainerMutex.RUnlock()
   533  	return len(fake.removeContainerArgsForCall)
   534  }
   535  
   536  func (fake *DockerClient) RemoveContainerCalls(stub func(docker.RemoveContainerOptions) error) {
   537  	fake.removeContainerMutex.Lock()
   538  	defer fake.removeContainerMutex.Unlock()
   539  	fake.RemoveContainerStub = stub
   540  }
   541  
   542  func (fake *DockerClient) RemoveContainerArgsForCall(i int) docker.RemoveContainerOptions {
   543  	fake.removeContainerMutex.RLock()
   544  	defer fake.removeContainerMutex.RUnlock()
   545  	argsForCall := fake.removeContainerArgsForCall[i]
   546  	return argsForCall.arg1
   547  }
   548  
   549  func (fake *DockerClient) RemoveContainerReturns(result1 error) {
   550  	fake.removeContainerMutex.Lock()
   551  	defer fake.removeContainerMutex.Unlock()
   552  	fake.RemoveContainerStub = nil
   553  	fake.removeContainerReturns = struct {
   554  		result1 error
   555  	}{result1}
   556  }
   557  
   558  func (fake *DockerClient) RemoveContainerReturnsOnCall(i int, result1 error) {
   559  	fake.removeContainerMutex.Lock()
   560  	defer fake.removeContainerMutex.Unlock()
   561  	fake.RemoveContainerStub = nil
   562  	if fake.removeContainerReturnsOnCall == nil {
   563  		fake.removeContainerReturnsOnCall = make(map[int]struct {
   564  			result1 error
   565  		})
   566  	}
   567  	fake.removeContainerReturnsOnCall[i] = struct {
   568  		result1 error
   569  	}{result1}
   570  }
   571  
   572  func (fake *DockerClient) StartContainer(arg1 string, arg2 *docker.HostConfig) error {
   573  	fake.startContainerMutex.Lock()
   574  	ret, specificReturn := fake.startContainerReturnsOnCall[len(fake.startContainerArgsForCall)]
   575  	fake.startContainerArgsForCall = append(fake.startContainerArgsForCall, struct {
   576  		arg1 string
   577  		arg2 *docker.HostConfig
   578  	}{arg1, arg2})
   579  	fake.recordInvocation("StartContainer", []interface{}{arg1, arg2})
   580  	fake.startContainerMutex.Unlock()
   581  	if fake.StartContainerStub != nil {
   582  		return fake.StartContainerStub(arg1, arg2)
   583  	}
   584  	if specificReturn {
   585  		return ret.result1
   586  	}
   587  	fakeReturns := fake.startContainerReturns
   588  	return fakeReturns.result1
   589  }
   590  
   591  func (fake *DockerClient) StartContainerCallCount() int {
   592  	fake.startContainerMutex.RLock()
   593  	defer fake.startContainerMutex.RUnlock()
   594  	return len(fake.startContainerArgsForCall)
   595  }
   596  
   597  func (fake *DockerClient) StartContainerCalls(stub func(string, *docker.HostConfig) error) {
   598  	fake.startContainerMutex.Lock()
   599  	defer fake.startContainerMutex.Unlock()
   600  	fake.StartContainerStub = stub
   601  }
   602  
   603  func (fake *DockerClient) StartContainerArgsForCall(i int) (string, *docker.HostConfig) {
   604  	fake.startContainerMutex.RLock()
   605  	defer fake.startContainerMutex.RUnlock()
   606  	argsForCall := fake.startContainerArgsForCall[i]
   607  	return argsForCall.arg1, argsForCall.arg2
   608  }
   609  
   610  func (fake *DockerClient) StartContainerReturns(result1 error) {
   611  	fake.startContainerMutex.Lock()
   612  	defer fake.startContainerMutex.Unlock()
   613  	fake.StartContainerStub = nil
   614  	fake.startContainerReturns = struct {
   615  		result1 error
   616  	}{result1}
   617  }
   618  
   619  func (fake *DockerClient) StartContainerReturnsOnCall(i int, result1 error) {
   620  	fake.startContainerMutex.Lock()
   621  	defer fake.startContainerMutex.Unlock()
   622  	fake.StartContainerStub = nil
   623  	if fake.startContainerReturnsOnCall == nil {
   624  		fake.startContainerReturnsOnCall = make(map[int]struct {
   625  			result1 error
   626  		})
   627  	}
   628  	fake.startContainerReturnsOnCall[i] = struct {
   629  		result1 error
   630  	}{result1}
   631  }
   632  
   633  func (fake *DockerClient) StopContainer(arg1 string, arg2 uint) error {
   634  	fake.stopContainerMutex.Lock()
   635  	ret, specificReturn := fake.stopContainerReturnsOnCall[len(fake.stopContainerArgsForCall)]
   636  	fake.stopContainerArgsForCall = append(fake.stopContainerArgsForCall, struct {
   637  		arg1 string
   638  		arg2 uint
   639  	}{arg1, arg2})
   640  	fake.recordInvocation("StopContainer", []interface{}{arg1, arg2})
   641  	fake.stopContainerMutex.Unlock()
   642  	if fake.StopContainerStub != nil {
   643  		return fake.StopContainerStub(arg1, arg2)
   644  	}
   645  	if specificReturn {
   646  		return ret.result1
   647  	}
   648  	fakeReturns := fake.stopContainerReturns
   649  	return fakeReturns.result1
   650  }
   651  
   652  func (fake *DockerClient) StopContainerCallCount() int {
   653  	fake.stopContainerMutex.RLock()
   654  	defer fake.stopContainerMutex.RUnlock()
   655  	return len(fake.stopContainerArgsForCall)
   656  }
   657  
   658  func (fake *DockerClient) StopContainerCalls(stub func(string, uint) error) {
   659  	fake.stopContainerMutex.Lock()
   660  	defer fake.stopContainerMutex.Unlock()
   661  	fake.StopContainerStub = stub
   662  }
   663  
   664  func (fake *DockerClient) StopContainerArgsForCall(i int) (string, uint) {
   665  	fake.stopContainerMutex.RLock()
   666  	defer fake.stopContainerMutex.RUnlock()
   667  	argsForCall := fake.stopContainerArgsForCall[i]
   668  	return argsForCall.arg1, argsForCall.arg2
   669  }
   670  
   671  func (fake *DockerClient) StopContainerReturns(result1 error) {
   672  	fake.stopContainerMutex.Lock()
   673  	defer fake.stopContainerMutex.Unlock()
   674  	fake.StopContainerStub = nil
   675  	fake.stopContainerReturns = struct {
   676  		result1 error
   677  	}{result1}
   678  }
   679  
   680  func (fake *DockerClient) StopContainerReturnsOnCall(i int, result1 error) {
   681  	fake.stopContainerMutex.Lock()
   682  	defer fake.stopContainerMutex.Unlock()
   683  	fake.StopContainerStub = nil
   684  	if fake.stopContainerReturnsOnCall == nil {
   685  		fake.stopContainerReturnsOnCall = make(map[int]struct {
   686  			result1 error
   687  		})
   688  	}
   689  	fake.stopContainerReturnsOnCall[i] = struct {
   690  		result1 error
   691  	}{result1}
   692  }
   693  
   694  func (fake *DockerClient) UploadToContainer(arg1 string, arg2 docker.UploadToContainerOptions) error {
   695  	fake.uploadToContainerMutex.Lock()
   696  	ret, specificReturn := fake.uploadToContainerReturnsOnCall[len(fake.uploadToContainerArgsForCall)]
   697  	fake.uploadToContainerArgsForCall = append(fake.uploadToContainerArgsForCall, struct {
   698  		arg1 string
   699  		arg2 docker.UploadToContainerOptions
   700  	}{arg1, arg2})
   701  	fake.recordInvocation("UploadToContainer", []interface{}{arg1, arg2})
   702  	fake.uploadToContainerMutex.Unlock()
   703  	if fake.UploadToContainerStub != nil {
   704  		return fake.UploadToContainerStub(arg1, arg2)
   705  	}
   706  	if specificReturn {
   707  		return ret.result1
   708  	}
   709  	fakeReturns := fake.uploadToContainerReturns
   710  	return fakeReturns.result1
   711  }
   712  
   713  func (fake *DockerClient) UploadToContainerCallCount() int {
   714  	fake.uploadToContainerMutex.RLock()
   715  	defer fake.uploadToContainerMutex.RUnlock()
   716  	return len(fake.uploadToContainerArgsForCall)
   717  }
   718  
   719  func (fake *DockerClient) UploadToContainerCalls(stub func(string, docker.UploadToContainerOptions) error) {
   720  	fake.uploadToContainerMutex.Lock()
   721  	defer fake.uploadToContainerMutex.Unlock()
   722  	fake.UploadToContainerStub = stub
   723  }
   724  
   725  func (fake *DockerClient) UploadToContainerArgsForCall(i int) (string, docker.UploadToContainerOptions) {
   726  	fake.uploadToContainerMutex.RLock()
   727  	defer fake.uploadToContainerMutex.RUnlock()
   728  	argsForCall := fake.uploadToContainerArgsForCall[i]
   729  	return argsForCall.arg1, argsForCall.arg2
   730  }
   731  
   732  func (fake *DockerClient) UploadToContainerReturns(result1 error) {
   733  	fake.uploadToContainerMutex.Lock()
   734  	defer fake.uploadToContainerMutex.Unlock()
   735  	fake.UploadToContainerStub = nil
   736  	fake.uploadToContainerReturns = struct {
   737  		result1 error
   738  	}{result1}
   739  }
   740  
   741  func (fake *DockerClient) UploadToContainerReturnsOnCall(i int, result1 error) {
   742  	fake.uploadToContainerMutex.Lock()
   743  	defer fake.uploadToContainerMutex.Unlock()
   744  	fake.UploadToContainerStub = nil
   745  	if fake.uploadToContainerReturnsOnCall == nil {
   746  		fake.uploadToContainerReturnsOnCall = make(map[int]struct {
   747  			result1 error
   748  		})
   749  	}
   750  	fake.uploadToContainerReturnsOnCall[i] = struct {
   751  		result1 error
   752  	}{result1}
   753  }
   754  
   755  func (fake *DockerClient) WaitContainer(arg1 string) (int, error) {
   756  	fake.waitContainerMutex.Lock()
   757  	ret, specificReturn := fake.waitContainerReturnsOnCall[len(fake.waitContainerArgsForCall)]
   758  	fake.waitContainerArgsForCall = append(fake.waitContainerArgsForCall, struct {
   759  		arg1 string
   760  	}{arg1})
   761  	fake.recordInvocation("WaitContainer", []interface{}{arg1})
   762  	fake.waitContainerMutex.Unlock()
   763  	if fake.WaitContainerStub != nil {
   764  		return fake.WaitContainerStub(arg1)
   765  	}
   766  	if specificReturn {
   767  		return ret.result1, ret.result2
   768  	}
   769  	fakeReturns := fake.waitContainerReturns
   770  	return fakeReturns.result1, fakeReturns.result2
   771  }
   772  
   773  func (fake *DockerClient) WaitContainerCallCount() int {
   774  	fake.waitContainerMutex.RLock()
   775  	defer fake.waitContainerMutex.RUnlock()
   776  	return len(fake.waitContainerArgsForCall)
   777  }
   778  
   779  func (fake *DockerClient) WaitContainerCalls(stub func(string) (int, error)) {
   780  	fake.waitContainerMutex.Lock()
   781  	defer fake.waitContainerMutex.Unlock()
   782  	fake.WaitContainerStub = stub
   783  }
   784  
   785  func (fake *DockerClient) WaitContainerArgsForCall(i int) string {
   786  	fake.waitContainerMutex.RLock()
   787  	defer fake.waitContainerMutex.RUnlock()
   788  	argsForCall := fake.waitContainerArgsForCall[i]
   789  	return argsForCall.arg1
   790  }
   791  
   792  func (fake *DockerClient) WaitContainerReturns(result1 int, result2 error) {
   793  	fake.waitContainerMutex.Lock()
   794  	defer fake.waitContainerMutex.Unlock()
   795  	fake.WaitContainerStub = nil
   796  	fake.waitContainerReturns = struct {
   797  		result1 int
   798  		result2 error
   799  	}{result1, result2}
   800  }
   801  
   802  func (fake *DockerClient) WaitContainerReturnsOnCall(i int, result1 int, result2 error) {
   803  	fake.waitContainerMutex.Lock()
   804  	defer fake.waitContainerMutex.Unlock()
   805  	fake.WaitContainerStub = nil
   806  	if fake.waitContainerReturnsOnCall == nil {
   807  		fake.waitContainerReturnsOnCall = make(map[int]struct {
   808  			result1 int
   809  			result2 error
   810  		})
   811  	}
   812  	fake.waitContainerReturnsOnCall[i] = struct {
   813  		result1 int
   814  		result2 error
   815  	}{result1, result2}
   816  }
   817  
   818  func (fake *DockerClient) Invocations() map[string][][]interface{} {
   819  	fake.invocationsMutex.RLock()
   820  	defer fake.invocationsMutex.RUnlock()
   821  	fake.attachToContainerMutex.RLock()
   822  	defer fake.attachToContainerMutex.RUnlock()
   823  	fake.buildImageMutex.RLock()
   824  	defer fake.buildImageMutex.RUnlock()
   825  	fake.createContainerMutex.RLock()
   826  	defer fake.createContainerMutex.RUnlock()
   827  	fake.inspectImageMutex.RLock()
   828  	defer fake.inspectImageMutex.RUnlock()
   829  	fake.killContainerMutex.RLock()
   830  	defer fake.killContainerMutex.RUnlock()
   831  	fake.pingWithContextMutex.RLock()
   832  	defer fake.pingWithContextMutex.RUnlock()
   833  	fake.removeContainerMutex.RLock()
   834  	defer fake.removeContainerMutex.RUnlock()
   835  	fake.startContainerMutex.RLock()
   836  	defer fake.startContainerMutex.RUnlock()
   837  	fake.stopContainerMutex.RLock()
   838  	defer fake.stopContainerMutex.RUnlock()
   839  	fake.uploadToContainerMutex.RLock()
   840  	defer fake.uploadToContainerMutex.RUnlock()
   841  	fake.waitContainerMutex.RLock()
   842  	defer fake.waitContainerMutex.RUnlock()
   843  	copiedInvocations := map[string][][]interface{}{}
   844  	for key, value := range fake.invocations {
   845  		copiedInvocations[key] = value
   846  	}
   847  	return copiedInvocations
   848  }
   849  
   850  func (fake *DockerClient) recordInvocation(key string, args []interface{}) {
   851  	fake.invocationsMutex.Lock()
   852  	defer fake.invocationsMutex.Unlock()
   853  	if fake.invocations == nil {
   854  		fake.invocations = map[string][][]interface{}{}
   855  	}
   856  	if fake.invocations[key] == nil {
   857  		fake.invocations[key] = [][]interface{}{}
   858  	}
   859  	fake.invocations[key] = append(fake.invocations[key], args)
   860  }