github.com/secure-build/gitlab-runner@v12.5.0+incompatible/executors/docker/internal/volumes/mock_Manager.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  // MockManager is an autogenerated mock type for the Manager type
    11  type MockManager struct {
    12  	mock.Mock
    13  }
    14  
    15  // Binds provides a mock function with given fields:
    16  func (_m *MockManager) Binds() []string {
    17  	ret := _m.Called()
    18  
    19  	var r0 []string
    20  	if rf, ok := ret.Get(0).(func() []string); ok {
    21  		r0 = rf()
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).([]string)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Cleanup provides a mock function with given fields: ctx
    32  func (_m *MockManager) Cleanup(ctx context.Context) chan bool {
    33  	ret := _m.Called(ctx)
    34  
    35  	var r0 chan bool
    36  	if rf, ok := ret.Get(0).(func(context.Context) chan bool); ok {
    37  		r0 = rf(ctx)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(chan bool)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // ContainerIDs provides a mock function with given fields:
    48  func (_m *MockManager) ContainerIDs() []string {
    49  	ret := _m.Called()
    50  
    51  	var r0 []string
    52  	if rf, ok := ret.Get(0).(func() []string); ok {
    53  		r0 = rf()
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).([]string)
    57  		}
    58  	}
    59  
    60  	return r0
    61  }
    62  
    63  // Create provides a mock function with given fields: volume
    64  func (_m *MockManager) Create(volume string) error {
    65  	ret := _m.Called(volume)
    66  
    67  	var r0 error
    68  	if rf, ok := ret.Get(0).(func(string) error); ok {
    69  		r0 = rf(volume)
    70  	} else {
    71  		r0 = ret.Error(0)
    72  	}
    73  
    74  	return r0
    75  }
    76  
    77  // CreateTemporary provides a mock function with given fields: containerPath
    78  func (_m *MockManager) CreateTemporary(containerPath string) error {
    79  	ret := _m.Called(containerPath)
    80  
    81  	var r0 error
    82  	if rf, ok := ret.Get(0).(func(string) error); ok {
    83  		r0 = rf(containerPath)
    84  	} else {
    85  		r0 = ret.Error(0)
    86  	}
    87  
    88  	return r0
    89  }