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

Method PurgeServiceOffering

cf/api/services.go:205–208  ·  view source on GitHub ↗
(offering models.ServiceOffering)

Source from the content-addressed store, hash-verified

203}
204
205func (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error {
206 url := fmt.Sprintf("/v2/services/%s?purge=true", offering.GUID)
207 return repo.gateway.DeleteResource(repo.config.APIEndpoint(), url)
208}
209
210func (repo CloudControllerServiceRepository) PurgeServiceInstance(instance models.ServiceInstance) error {
211 url := fmt.Sprintf("/v2/service_instances/%s?purge=true", instance.GUID)

Callers

nothing calls this directly

Calls 2

DeleteResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected