(instance models.ServiceInstance)
| 208 | } |
| 209 | |
| 210 | func (repo CloudControllerServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error { |
| 211 | url := fmt.Sprintf("/v2/service_instances/%s?purge=true", instance.GUID) |
| 212 | return repo.gateway.DeleteResource(repo.config.APIEndpoint(), url) |
| 213 | } |
| 214 | |
| 215 | func (repo CloudControllerServiceRepository) FindServiceOfferingsByLabel(label string) (models.ServiceOfferings, error) { |
| 216 | path := fmt.Sprintf("/v2/services?q=%s", url.QueryEscape("label:"+label)) |
nothing calls this directly
no test coverage detected