github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/provisioning/automock/provisioner_input_creator.go (about) 1 // Code generated by mockery v2.9.4. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 gardener "github.com/kyma-project/kyma-environment-broker/common/gardener" 7 gqlschema "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema" 8 9 internal "github.com/kyma-project/kyma-environment-broker/internal" 10 11 keb "github.com/kyma-incubator/reconciler/pkg/keb" 12 13 mock "github.com/stretchr/testify/mock" 14 ) 15 16 // ProvisionerInputCreator is an autogenerated mock type for the ProvisionerInputCreator type 17 type ProvisionerInputCreator struct { 18 mock.Mock 19 } 20 21 // AppendGlobalOverrides provides a mock function with given fields: overrides 22 func (_m *ProvisionerInputCreator) AppendGlobalOverrides(overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 23 ret := _m.Called(overrides) 24 25 var r0 internal.ProvisionerInputCreator 26 if rf, ok := ret.Get(0).(func([]*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 27 r0 = rf(overrides) 28 } else { 29 if ret.Get(0) != nil { 30 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 31 } 32 } 33 34 return r0 35 } 36 37 // AppendOverrides provides a mock function with given fields: component, overrides 38 func (_m *ProvisionerInputCreator) AppendOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 39 ret := _m.Called(component, overrides) 40 41 var r0 internal.ProvisionerInputCreator 42 if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 43 r0 = rf(component, overrides) 44 } else { 45 if ret.Get(0) != nil { 46 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 47 } 48 } 49 50 return r0 51 } 52 53 // CreateClusterConfiguration provides a mock function with given fields: 54 func (_m *ProvisionerInputCreator) CreateClusterConfiguration() (keb.Cluster, error) { 55 ret := _m.Called() 56 57 var r0 keb.Cluster 58 if rf, ok := ret.Get(0).(func() keb.Cluster); ok { 59 r0 = rf() 60 } else { 61 r0 = ret.Get(0).(keb.Cluster) 62 } 63 64 var r1 error 65 if rf, ok := ret.Get(1).(func() error); ok { 66 r1 = rf() 67 } else { 68 r1 = ret.Error(1) 69 } 70 71 return r0, r1 72 } 73 74 // CreateProvisionClusterInput provides a mock function with given fields: 75 func (_m *ProvisionerInputCreator) CreateProvisionClusterInput() (gqlschema.ProvisionRuntimeInput, error) { 76 ret := _m.Called() 77 78 var r0 gqlschema.ProvisionRuntimeInput 79 if rf, ok := ret.Get(0).(func() gqlschema.ProvisionRuntimeInput); ok { 80 r0 = rf() 81 } else { 82 r0 = ret.Get(0).(gqlschema.ProvisionRuntimeInput) 83 } 84 85 var r1 error 86 if rf, ok := ret.Get(1).(func() error); ok { 87 r1 = rf() 88 } else { 89 r1 = ret.Error(1) 90 } 91 92 return r0, r1 93 } 94 95 // CreateProvisionRuntimeInput provides a mock function with given fields: 96 func (_m *ProvisionerInputCreator) CreateProvisionRuntimeInput() (gqlschema.ProvisionRuntimeInput, error) { 97 ret := _m.Called() 98 99 var r0 gqlschema.ProvisionRuntimeInput 100 if rf, ok := ret.Get(0).(func() gqlschema.ProvisionRuntimeInput); ok { 101 r0 = rf() 102 } else { 103 r0 = ret.Get(0).(gqlschema.ProvisionRuntimeInput) 104 } 105 106 var r1 error 107 if rf, ok := ret.Get(1).(func() error); ok { 108 r1 = rf() 109 } else { 110 r1 = ret.Error(1) 111 } 112 113 return r0, r1 114 } 115 116 // CreateUpgradeRuntimeInput provides a mock function with given fields: 117 func (_m *ProvisionerInputCreator) CreateUpgradeRuntimeInput() (gqlschema.UpgradeRuntimeInput, error) { 118 ret := _m.Called() 119 120 var r0 gqlschema.UpgradeRuntimeInput 121 if rf, ok := ret.Get(0).(func() gqlschema.UpgradeRuntimeInput); ok { 122 r0 = rf() 123 } else { 124 r0 = ret.Get(0).(gqlschema.UpgradeRuntimeInput) 125 } 126 127 var r1 error 128 if rf, ok := ret.Get(1).(func() error); ok { 129 r1 = rf() 130 } else { 131 r1 = ret.Error(1) 132 } 133 134 return r0, r1 135 } 136 137 // CreateUpgradeShootInput provides a mock function with given fields: 138 func (_m *ProvisionerInputCreator) CreateUpgradeShootInput() (gqlschema.UpgradeShootInput, error) { 139 ret := _m.Called() 140 141 var r0 gqlschema.UpgradeShootInput 142 if rf, ok := ret.Get(0).(func() gqlschema.UpgradeShootInput); ok { 143 r0 = rf() 144 } else { 145 r0 = ret.Get(0).(gqlschema.UpgradeShootInput) 146 } 147 148 var r1 error 149 if rf, ok := ret.Get(1).(func() error); ok { 150 r1 = rf() 151 } else { 152 r1 = ret.Error(1) 153 } 154 155 return r0, r1 156 } 157 158 // DisableOptionalComponent provides a mock function with given fields: componentName 159 func (_m *ProvisionerInputCreator) DisableOptionalComponent(componentName string) internal.ProvisionerInputCreator { 160 ret := _m.Called(componentName) 161 162 var r0 internal.ProvisionerInputCreator 163 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 164 r0 = rf(componentName) 165 } else { 166 if ret.Get(0) != nil { 167 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 168 } 169 } 170 171 return r0 172 } 173 174 // EnableOptionalComponent provides a mock function with given fields: componentName 175 func (_m *ProvisionerInputCreator) EnableOptionalComponent(componentName string) internal.ProvisionerInputCreator { 176 ret := _m.Called(componentName) 177 178 var r0 internal.ProvisionerInputCreator 179 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 180 r0 = rf(componentName) 181 } else { 182 if ret.Get(0) != nil { 183 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 184 } 185 } 186 187 return r0 188 } 189 190 // Provider provides a mock function with given fields: 191 func (_m *ProvisionerInputCreator) Provider() internal.CloudProvider { 192 ret := _m.Called() 193 194 var r0 internal.CloudProvider 195 if rf, ok := ret.Get(0).(func() internal.CloudProvider); ok { 196 r0 = rf() 197 } else { 198 r0 = ret.Get(0).(internal.CloudProvider) 199 } 200 201 return r0 202 } 203 204 // SetInstanceID provides a mock function with given fields: instanceID 205 func (_m *ProvisionerInputCreator) SetInstanceID(instanceID string) internal.ProvisionerInputCreator { 206 ret := _m.Called(instanceID) 207 208 var r0 internal.ProvisionerInputCreator 209 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 210 r0 = rf(instanceID) 211 } else { 212 if ret.Get(0) != nil { 213 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 214 } 215 } 216 217 return r0 218 } 219 220 // SetKubeconfig provides a mock function with given fields: kcfg 221 func (_m *ProvisionerInputCreator) SetKubeconfig(kcfg string) internal.ProvisionerInputCreator { 222 ret := _m.Called(kcfg) 223 224 var r0 internal.ProvisionerInputCreator 225 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 226 r0 = rf(kcfg) 227 } else { 228 if ret.Get(0) != nil { 229 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 230 } 231 } 232 233 return r0 234 } 235 236 // SetLabel provides a mock function with given fields: key, value 237 func (_m *ProvisionerInputCreator) SetLabel(key string, value string) internal.ProvisionerInputCreator { 238 ret := _m.Called(key, value) 239 240 var r0 internal.ProvisionerInputCreator 241 if rf, ok := ret.Get(0).(func(string, string) internal.ProvisionerInputCreator); ok { 242 r0 = rf(key, value) 243 } else { 244 if ret.Get(0) != nil { 245 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 246 } 247 } 248 249 return r0 250 } 251 252 // SetOverrides provides a mock function with given fields: component, overrides 253 func (_m *ProvisionerInputCreator) SetOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 254 ret := _m.Called(component, overrides) 255 256 var r0 internal.ProvisionerInputCreator 257 if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 258 r0 = rf(component, overrides) 259 } else { 260 if ret.Get(0) != nil { 261 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 262 } 263 } 264 265 return r0 266 } 267 268 // SetProvisioningParameters provides a mock function with given fields: params 269 func (_m *ProvisionerInputCreator) SetProvisioningParameters(params internal.ProvisioningParameters) internal.ProvisionerInputCreator { 270 ret := _m.Called(params) 271 272 var r0 internal.ProvisionerInputCreator 273 if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters) internal.ProvisionerInputCreator); ok { 274 r0 = rf(params) 275 } else { 276 if ret.Get(0) != nil { 277 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 278 } 279 } 280 281 return r0 282 } 283 284 // SetRuntimeID provides a mock function with given fields: runtimeID 285 func (_m *ProvisionerInputCreator) SetRuntimeID(runtimeID string) internal.ProvisionerInputCreator { 286 ret := _m.Called(runtimeID) 287 288 var r0 internal.ProvisionerInputCreator 289 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 290 r0 = rf(runtimeID) 291 } else { 292 if ret.Get(0) != nil { 293 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 294 } 295 } 296 297 return r0 298 } 299 300 // SetShootDNSProviders provides a mock function with given fields: dnsProviders 301 func (_m *ProvisionerInputCreator) SetShootDNSProviders(dnsProviders gardener.DNSProvidersData) internal.ProvisionerInputCreator { 302 ret := _m.Called(dnsProviders) 303 304 var r0 internal.ProvisionerInputCreator 305 if rf, ok := ret.Get(0).(func(gardener.DNSProvidersData) internal.ProvisionerInputCreator); ok { 306 r0 = rf(dnsProviders) 307 } else { 308 if ret.Get(0) != nil { 309 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 310 } 311 } 312 313 return r0 314 } 315 316 // SetShootDomain provides a mock function with given fields: shootDomain 317 func (_m *ProvisionerInputCreator) SetShootDomain(shootDomain string) internal.ProvisionerInputCreator { 318 ret := _m.Called(shootDomain) 319 320 var r0 internal.ProvisionerInputCreator 321 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 322 r0 = rf(shootDomain) 323 } else { 324 if ret.Get(0) != nil { 325 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 326 } 327 } 328 329 return r0 330 } 331 332 // SetShootName provides a mock function with given fields: _a0 333 func (_m *ProvisionerInputCreator) SetShootName(_a0 string) internal.ProvisionerInputCreator { 334 ret := _m.Called(_a0) 335 336 var r0 internal.ProvisionerInputCreator 337 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 338 r0 = rf(_a0) 339 } else { 340 if ret.Get(0) != nil { 341 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 342 } 343 } 344 345 return r0 346 }