(instance models.ServiceInstance)
| 195 | } |
| 196 | |
| 197 | func (repo CloudControllerServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error) { |
| 198 | if len(instance.ServiceBindings) > 0 || len(instance.ServiceKeys) > 0 { |
| 199 | return errors.NewServiceAssociationError() |
| 200 | } |
| 201 | path := fmt.Sprintf("/v2/service_instances/%s?%s", instance.GUID, "accepts_incomplete=true") |
| 202 | return repo.gateway.DeleteResource(repo.config.APIEndpoint(), path) |
| 203 | } |
| 204 | |
| 205 | func (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error { |
| 206 | url := fmt.Sprintf("/v2/services/%s?purge=true", offering.GUID) |
nothing calls this directly
no test coverage detected