MCPcopy
hub / github.com/cloudfoundry/cli / NewCloudControllerRouteRepository

Function NewCloudControllerRouteRepository

cf/api/routes.go:37–41  ·  view source on GitHub ↗
(config coreconfig.Reader, gateway net.Gateway)

Source from the content-addressed store, hash-verified

35}
36
37func NewCloudControllerRouteRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerRouteRepository) {
38 repo.config = config
39 repo.gateway = gateway
40 return
41}
42
43func (repo CloudControllerRouteRepository) ListRoutes(cb func(models.Route) bool) (apiErr error) {
44 return repo.gateway.ListPaginatedResources(

Callers 2

NewRepositoryLocatorFunction · 0.85
routes_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected