(requiredType resources.ServiceInstanceType, instance resources.ServiceInstance)
| 350 | } |
| 351 | |
| 352 | func assertServiceInstanceType(requiredType resources.ServiceInstanceType, instance resources.ServiceInstance) error { |
| 353 | if instance.Type != requiredType { |
| 354 | return actionerror.ServiceInstanceTypeError{ |
| 355 | Name: instance.Name, |
| 356 | RequiredType: requiredType, |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | return nil |
| 361 | } |
| 362 | |
| 363 | func handleServiceInstanceErrors(warnings ccv3.Warnings, err error) (Warnings, error) { |
| 364 | switch e := err.(type) { |
no outgoing calls
no test coverage detected