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

Method Create

cf/api/routes.go:126–128  ·  view source on GitHub ↗
(host string, domain models.DomainFields, path string, port int, useRandomPort bool)

Source from the content-addressed store, hash-verified

124}
125
126func (repo CloudControllerRouteRepository) Create(host string, domain models.DomainFields, path string, port int, useRandomPort bool) (createdRoute models.Route, apiErr error) {
127 return repo.CreateInSpace(host, path, domain.GUID, repo.config.SpaceFields().GUID, port, useRandomPort)
128}
129
130func (repo CloudControllerRouteRepository) CheckIfExists(host string, domain models.DomainFields, path string) (bool, error) {
131 path = normalizedPath(path)

Callers

nothing calls this directly

Calls 2

CreateInSpaceMethod · 0.95
SpaceFieldsMethod · 0.65

Tested by

no test coverage detected