github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/store/automock/store.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 mock "github.com/stretchr/testify/mock" 9 10 v1alpha2 "github.com/kyma-project/kyma/components/asset-store-controller-manager/pkg/apis/assetstore/v1alpha2" 11 ) 12 13 // Store is an autogenerated mock type for the Store type 14 type Store struct { 15 mock.Mock 16 } 17 18 // BucketExists provides a mock function with given fields: name 19 func (_m *Store) BucketExists(name string) (bool, error) { 20 ret := _m.Called(name) 21 22 var r0 bool 23 if rf, ok := ret.Get(0).(func(string) bool); ok { 24 r0 = rf(name) 25 } else { 26 r0 = ret.Get(0).(bool) 27 } 28 29 var r1 error 30 if rf, ok := ret.Get(1).(func(string) error); ok { 31 r1 = rf(name) 32 } else { 33 r1 = ret.Error(1) 34 } 35 36 return r0, r1 37 } 38 39 // CompareBucketPolicy provides a mock function with given fields: name, expected 40 func (_m *Store) CompareBucketPolicy(name string, expected v1alpha2.BucketPolicy) (bool, error) { 41 ret := _m.Called(name, expected) 42 43 var r0 bool 44 if rf, ok := ret.Get(0).(func(string, v1alpha2.BucketPolicy) bool); ok { 45 r0 = rf(name, expected) 46 } else { 47 r0 = ret.Get(0).(bool) 48 } 49 50 var r1 error 51 if rf, ok := ret.Get(1).(func(string, v1alpha2.BucketPolicy) error); ok { 52 r1 = rf(name, expected) 53 } else { 54 r1 = ret.Error(1) 55 } 56 57 return r0, r1 58 } 59 60 // ContainsAllObjects provides a mock function with given fields: ctx, bucketName, assetName, files 61 func (_m *Store) ContainsAllObjects(ctx context.Context, bucketName string, assetName string, files []string) (bool, error) { 62 ret := _m.Called(ctx, bucketName, assetName, files) 63 64 var r0 bool 65 if rf, ok := ret.Get(0).(func(context.Context, string, string, []string) bool); ok { 66 r0 = rf(ctx, bucketName, assetName, files) 67 } else { 68 r0 = ret.Get(0).(bool) 69 } 70 71 var r1 error 72 if rf, ok := ret.Get(1).(func(context.Context, string, string, []string) error); ok { 73 r1 = rf(ctx, bucketName, assetName, files) 74 } else { 75 r1 = ret.Error(1) 76 } 77 78 return r0, r1 79 } 80 81 // CreateBucket provides a mock function with given fields: namespace, crName, region 82 func (_m *Store) CreateBucket(namespace string, crName string, region string) (string, error) { 83 ret := _m.Called(namespace, crName, region) 84 85 var r0 string 86 if rf, ok := ret.Get(0).(func(string, string, string) string); ok { 87 r0 = rf(namespace, crName, region) 88 } else { 89 r0 = ret.Get(0).(string) 90 } 91 92 var r1 error 93 if rf, ok := ret.Get(1).(func(string, string, string) error); ok { 94 r1 = rf(namespace, crName, region) 95 } else { 96 r1 = ret.Error(1) 97 } 98 99 return r0, r1 100 } 101 102 // DeleteBucket provides a mock function with given fields: ctx, name 103 func (_m *Store) DeleteBucket(ctx context.Context, name string) error { 104 ret := _m.Called(ctx, name) 105 106 var r0 error 107 if rf, ok := ret.Get(0).(func(context.Context, string) error); ok { 108 r0 = rf(ctx, name) 109 } else { 110 r0 = ret.Error(0) 111 } 112 113 return r0 114 } 115 116 // DeleteObjects provides a mock function with given fields: ctx, bucketName, prefix 117 func (_m *Store) DeleteObjects(ctx context.Context, bucketName string, prefix string) error { 118 ret := _m.Called(ctx, bucketName, prefix) 119 120 var r0 error 121 if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { 122 r0 = rf(ctx, bucketName, prefix) 123 } else { 124 r0 = ret.Error(0) 125 } 126 127 return r0 128 } 129 130 // ListObjects provides a mock function with given fields: ctx, bucketName, prefix 131 func (_m *Store) ListObjects(ctx context.Context, bucketName string, prefix string) ([]string, error) { 132 ret := _m.Called(ctx, bucketName, prefix) 133 134 var r0 []string 135 if rf, ok := ret.Get(0).(func(context.Context, string, string) []string); ok { 136 r0 = rf(ctx, bucketName, prefix) 137 } else { 138 if ret.Get(0) != nil { 139 r0 = ret.Get(0).([]string) 140 } 141 } 142 143 var r1 error 144 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 145 r1 = rf(ctx, bucketName, prefix) 146 } else { 147 r1 = ret.Error(1) 148 } 149 150 return r0, r1 151 } 152 153 // PutObjects provides a mock function with given fields: ctx, bucketName, assetName, sourceBasePath, files 154 func (_m *Store) PutObjects(ctx context.Context, bucketName string, assetName string, sourceBasePath string, files []string) error { 155 ret := _m.Called(ctx, bucketName, assetName, sourceBasePath, files) 156 157 var r0 error 158 if rf, ok := ret.Get(0).(func(context.Context, string, string, string, []string) error); ok { 159 r0 = rf(ctx, bucketName, assetName, sourceBasePath, files) 160 } else { 161 r0 = ret.Error(0) 162 } 163 164 return r0 165 } 166 167 // SetBucketPolicy provides a mock function with given fields: name, policy 168 func (_m *Store) SetBucketPolicy(name string, policy v1alpha2.BucketPolicy) error { 169 ret := _m.Called(name, policy) 170 171 var r0 error 172 if rf, ok := ret.Get(0).(func(string, v1alpha2.BucketPolicy) error); ok { 173 r0 = rf(name, policy) 174 } else { 175 r0 = ret.Error(0) 176 } 177 178 return r0 179 }