MCPcopy Index your code
hub / github.com/cloudfoundry/cli / PurgeServiceInstance

Method PurgeServiceInstance

cf/api/services.go:210–213  ·  view source on GitHub ↗
(instance models.ServiceInstance)

Source from the content-addressed store, hash-verified

208}
209
210func (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
215func (repo CloudControllerServiceRepository) FindServiceOfferingsByLabel(label string) (models.ServiceOfferings, error) {
216 path := fmt.Sprintf("/v2/services?q=%s", url.QueryEscape("label:"+label))

Callers

nothing calls this directly

Calls 2

DeleteResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected