(instance models.ServiceInstance, appGUID string)
| 47 | } |
| 48 | |
| 49 | func (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGUID string) (bool, error) { |
| 50 | var path string |
| 51 | for _, binding := range instance.ServiceBindings { |
| 52 | if binding.AppGUID == appGUID { |
| 53 | path = binding.URL |
| 54 | break |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | if path == "" { |
| 59 | return false, nil |
| 60 | } |
| 61 | |
| 62 | return true, repo.gateway.DeleteResource(repo.config.APIEndpoint(), path) |
| 63 | } |
| 64 | |
| 65 | func (repo CloudControllerServiceBindingRepository) ListAllForService(instanceGUID string) ([]models.ServiceBindingFields, error) { |
| 66 | serviceBindings := []models.ServiceBindingFields{} |
nothing calls this directly
no test coverage detected