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

Method ListRoutes

cf/api/routes.go:43–51  ·  view source on GitHub ↗
(cb func(models.Route) bool)

Source from the content-addressed store, hash-verified

41}
42
43func (repo CloudControllerRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error) {
44 return repo.gateway.ListPaginatedResources(
45 repo.config.APIEndpoint(),
46 fmt.Sprintf("/v2/spaces/%s/routes?inline-relations-depth=1", repo.config.SpaceFields().GUID),
47 resources.RouteResource{},
48 func(resource interface{}) bool {
49 return cb(resource.(resources.RouteResource).ToModel())
50 })
51}
52
53func (repo CloudControllerRouteRepository) ListAllRoutes(cb func(models.Route) bool) (apiErr error) {
54 return repo.gateway.ListPaginatedResources(

Callers

nothing calls this directly

Calls 4

APIEndpointMethod · 0.65
SpaceFieldsMethod · 0.65
ToModelMethod · 0.45

Tested by

no test coverage detected