github.com/secure-build/gitlab-runner@v12.5.0+incompatible/executors/docker/internal/volumes/mock_CacheContainersManager.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // This comment works around https://github.com/vektra/mockery/issues/155
     4  
     5  package volumes
     6  
     7  import context "context"
     8  import mock "github.com/stretchr/testify/mock"
     9  
    10  // MockCacheContainersManager is an autogenerated mock type for the CacheContainersManager type
    11  type MockCacheContainersManager struct {
    12  	mock.Mock
    13  }
    14  
    15  // Cleanup provides a mock function with given fields: ctx, ids
    16  func (_m *MockCacheContainersManager) Cleanup(ctx context.Context, ids []string) chan bool {
    17  	ret := _m.Called(ctx, ids)
    18  
    19  	var r0 chan bool
    20  	if rf, ok := ret.Get(0).(func(context.Context, []string) chan bool); ok {
    21  		r0 = rf(ctx, ids)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(chan bool)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Create provides a mock function with given fields: containerName, containerPath
    32  func (_m *MockCacheContainersManager) Create(containerName string, containerPath string) (string, error) {
    33  	ret := _m.Called(containerName, containerPath)
    34  
    35  	var r0 string
    36  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
    37  		r0 = rf(containerName, containerPath)
    38  	} else {
    39  		r0 = ret.Get(0).(string)
    40  	}
    41  
    42  	var r1 error
    43  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
    44  		r1 = rf(containerName, containerPath)
    45  	} else {
    46  		r1 = ret.Error(1)
    47  	}
    48  
    49  	return r0, r1
    50  }
    51  
    52  // FindOrCleanExisting provides a mock function with given fields: containerName, containerPath
    53  func (_m *MockCacheContainersManager) FindOrCleanExisting(containerName string, containerPath string) string {
    54  	ret := _m.Called(containerName, containerPath)
    55  
    56  	var r0 string
    57  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
    58  		r0 = rf(containerName, containerPath)
    59  	} else {
    60  		r0 = ret.Get(0).(string)
    61  	}
    62  
    63  	return r0
    64  }