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

Method Delete

cf/api/buildpacks.go:128–132  ·  view source on GitHub ↗
(buildpackGUID string)

Source from the content-addressed store, hash-verified

126}
127
128func (repo CloudControllerBuildpackRepository) Delete(buildpackGUID string) (apiErr error) {
129 path := fmt.Sprintf("%s/%s", buildpacksPath, buildpackGUID)
130 apiErr = repo.gateway.DeleteResource(repo.config.APIEndpoint(), path)
131 return
132}
133
134func (repo CloudControllerBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiErr error) {
135 path := fmt.Sprintf("%s/%s", buildpacksPath, buildpack.GUID)

Callers

nothing calls this directly

Calls 2

DeleteResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected