github.com/jaylevin/jenkins-library@v1.230.4/pkg/gcs/mocks/client.go (about)

     1  // Code generated by mockery v2.7.4. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Client is an autogenerated mock type for the Client type
     8  type Client struct {
     9  	mock.Mock
    10  }
    11  
    12  // Close provides a mock function with given fields:
    13  func (_m *Client) Close() error {
    14  	ret := _m.Called()
    15  
    16  	var r0 error
    17  	if rf, ok := ret.Get(0).(func() error); ok {
    18  		r0 = rf()
    19  	} else {
    20  		r0 = ret.Error(0)
    21  	}
    22  
    23  	return r0
    24  }
    25  
    26  // DownloadFile provides a mock function with given fields: bucketID, sourcePath, targetPath
    27  func (_m *Client) DownloadFile(bucketID string, sourcePath string, targetPath string) error {
    28  	ret := _m.Called(bucketID, sourcePath, targetPath)
    29  
    30  	var r0 error
    31  	if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
    32  		r0 = rf(bucketID, sourcePath, targetPath)
    33  	} else {
    34  		r0 = ret.Error(0)
    35  	}
    36  
    37  	return r0
    38  }
    39  
    40  // ListFiles provides a mock function with given fields: bucketID
    41  func (_m *Client) ListFiles(bucketID string) ([]string, error) {
    42  	ret := _m.Called(bucketID)
    43  
    44  	var r0 []string
    45  	if rf, ok := ret.Get(0).(func(string) []string); ok {
    46  		r0 = rf(bucketID)
    47  	} else {
    48  		if ret.Get(0) != nil {
    49  			r0 = ret.Get(0).([]string)
    50  		}
    51  	}
    52  
    53  	var r1 error
    54  	if rf, ok := ret.Get(1).(func(string) error); ok {
    55  		r1 = rf(bucketID)
    56  	} else {
    57  		r1 = ret.Error(1)
    58  	}
    59  
    60  	return r0, r1
    61  }
    62  
    63  // UploadFile provides a mock function with given fields: bucketID, sourcePath, targetPath
    64  func (_m *Client) UploadFile(bucketID string, sourcePath string, targetPath string) error {
    65  	ret := _m.Called(bucketID, sourcePath, targetPath)
    66  
    67  	var r0 error
    68  	if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
    69  		r0 = rf(bucketID, sourcePath, targetPath)
    70  	} else {
    71  		r0 = ret.Error(0)
    72  	}
    73  
    74  	return r0
    75  }