(serviceInstanceName string, spaceGUID string, query ...ccv3.Query)
| 276 | } |
| 277 | |
| 278 | func (actor Actor) getServiceInstanceByNameAndSpace(serviceInstanceName string, spaceGUID string, query ...ccv3.Query) (resources.ServiceInstance, ccv3.IncludedResources, ccv3.Warnings, error) { |
| 279 | serviceInstance, includedResources, warnings, err := actor.CloudControllerClient.GetServiceInstanceByNameAndSpace(serviceInstanceName, spaceGUID, query...) |
| 280 | switch e := err.(type) { |
| 281 | case ccerror.ServiceInstanceNotFoundError: |
| 282 | return serviceInstance, ccv3.IncludedResources{}, warnings, actionerror.ServiceInstanceNotFoundError{Name: e.Name} |
| 283 | default: |
| 284 | return serviceInstance, includedResources, warnings, err |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | func (actor Actor) getServiceInstanceForUpdate(serviceInstanceName string, spaceGUID string, includePlan bool) (resources.ServiceInstance, resources.ServiceOffering, resources.ServiceBroker, ccv3.Warnings, error) { |
| 289 | var query []ccv3.Query |
no test coverage detected