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

Method Bind

cf/api/routes.go:195–198  ·  view source on GitHub ↗
(routeGUID, appGUID string)

Source from the content-addressed store, hash-verified

193}
194
195func (repo CloudControllerRouteRepository) Bind(routeGUID, appGUID string) (apiErr error) {
196 path := fmt.Sprintf("/v2/apps/%s/routes/%s", appGUID, routeGUID)
197 return repo.gateway.UpdateResource(repo.config.APIEndpoint(), path, nil)
198}
199
200func (repo CloudControllerRouteRepository) Unbind(routeGUID, appGUID string) (apiErr error) {
201 path := fmt.Sprintf("/v2/apps/%s/routes/%s", appGUID, routeGUID)

Callers

nothing calls this directly

Calls 2

UpdateResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected