github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/store/automock/minio_client.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	minio "github.com/minio/minio-go"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // MinioClient is an autogenerated mock type for the MinioClient type
    13  type MinioClient struct {
    14  	mock.Mock
    15  }
    16  
    17  // BucketExists provides a mock function with given fields: bucketName
    18  func (_m *MinioClient) BucketExists(bucketName string) (bool, error) {
    19  	ret := _m.Called(bucketName)
    20  
    21  	var r0 bool
    22  	if rf, ok := ret.Get(0).(func(string) bool); ok {
    23  		r0 = rf(bucketName)
    24  	} else {
    25  		r0 = ret.Get(0).(bool)
    26  	}
    27  
    28  	var r1 error
    29  	if rf, ok := ret.Get(1).(func(string) error); ok {
    30  		r1 = rf(bucketName)
    31  	} else {
    32  		r1 = ret.Error(1)
    33  	}
    34  
    35  	return r0, r1
    36  }
    37  
    38  // FPutObjectWithContext provides a mock function with given fields: ctx, bucketName, objectName, filePath, opts
    39  func (_m *MinioClient) FPutObjectWithContext(ctx context.Context, bucketName string, objectName string, filePath string, opts minio.PutObjectOptions) (int64, error) {
    40  	ret := _m.Called(ctx, bucketName, objectName, filePath, opts)
    41  
    42  	var r0 int64
    43  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, minio.PutObjectOptions) int64); ok {
    44  		r0 = rf(ctx, bucketName, objectName, filePath, opts)
    45  	} else {
    46  		r0 = ret.Get(0).(int64)
    47  	}
    48  
    49  	var r1 error
    50  	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, minio.PutObjectOptions) error); ok {
    51  		r1 = rf(ctx, bucketName, objectName, filePath, opts)
    52  	} else {
    53  		r1 = ret.Error(1)
    54  	}
    55  
    56  	return r0, r1
    57  }
    58  
    59  // GetBucketPolicy provides a mock function with given fields: bucketName
    60  func (_m *MinioClient) GetBucketPolicy(bucketName string) (string, error) {
    61  	ret := _m.Called(bucketName)
    62  
    63  	var r0 string
    64  	if rf, ok := ret.Get(0).(func(string) string); ok {
    65  		r0 = rf(bucketName)
    66  	} else {
    67  		r0 = ret.Get(0).(string)
    68  	}
    69  
    70  	var r1 error
    71  	if rf, ok := ret.Get(1).(func(string) error); ok {
    72  		r1 = rf(bucketName)
    73  	} else {
    74  		r1 = ret.Error(1)
    75  	}
    76  
    77  	return r0, r1
    78  }
    79  
    80  // ListObjects provides a mock function with given fields: bucketName, objectPrefix, recursive, doneCh
    81  func (_m *MinioClient) ListObjects(bucketName string, objectPrefix string, recursive bool, doneCh <-chan struct{}) <-chan minio.ObjectInfo {
    82  	ret := _m.Called(bucketName, objectPrefix, recursive, doneCh)
    83  
    84  	var r0 <-chan minio.ObjectInfo
    85  	if rf, ok := ret.Get(0).(func(string, string, bool, <-chan struct{}) <-chan minio.ObjectInfo); ok {
    86  		r0 = rf(bucketName, objectPrefix, recursive, doneCh)
    87  	} else {
    88  		if ret.Get(0) != nil {
    89  			r0 = ret.Get(0).(<-chan minio.ObjectInfo)
    90  		}
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // MakeBucket provides a mock function with given fields: bucketName, location
    97  func (_m *MinioClient) MakeBucket(bucketName string, location string) error {
    98  	ret := _m.Called(bucketName, location)
    99  
   100  	var r0 error
   101  	if rf, ok := ret.Get(0).(func(string, string) error); ok {
   102  		r0 = rf(bucketName, location)
   103  	} else {
   104  		r0 = ret.Error(0)
   105  	}
   106  
   107  	return r0
   108  }
   109  
   110  // RemoveBucket provides a mock function with given fields: bucketName
   111  func (_m *MinioClient) RemoveBucket(bucketName string) error {
   112  	ret := _m.Called(bucketName)
   113  
   114  	var r0 error
   115  	if rf, ok := ret.Get(0).(func(string) error); ok {
   116  		r0 = rf(bucketName)
   117  	} else {
   118  		r0 = ret.Error(0)
   119  	}
   120  
   121  	return r0
   122  }
   123  
   124  // RemoveObjectsWithContext provides a mock function with given fields: ctx, bucketName, objectsCh
   125  func (_m *MinioClient) RemoveObjectsWithContext(ctx context.Context, bucketName string, objectsCh <-chan string) <-chan minio.RemoveObjectError {
   126  	ret := _m.Called(ctx, bucketName, objectsCh)
   127  
   128  	var r0 <-chan minio.RemoveObjectError
   129  	if rf, ok := ret.Get(0).(func(context.Context, string, <-chan string) <-chan minio.RemoveObjectError); ok {
   130  		r0 = rf(ctx, bucketName, objectsCh)
   131  	} else {
   132  		if ret.Get(0) != nil {
   133  			r0 = ret.Get(0).(<-chan minio.RemoveObjectError)
   134  		}
   135  	}
   136  
   137  	return r0
   138  }
   139  
   140  // SetBucketPolicy provides a mock function with given fields: bucketName, policy
   141  func (_m *MinioClient) SetBucketPolicy(bucketName string, policy string) error {
   142  	ret := _m.Called(bucketName, policy)
   143  
   144  	var r0 error
   145  	if rf, ok := ret.Get(0).(func(string, string) error); ok {
   146  		r0 = rf(bucketName, policy)
   147  	} else {
   148  		r0 = ret.Error(0)
   149  	}
   150  
   151  	return r0
   152  }