MCPcopy Create free account
hub / github.com/cloudfoundry/cli / FindDomain

Method FindDomain

cf/actors/routes.go:144–150  ·  view source on GitHub ↗
(routeName string)

Source from the content-addressed store, hash-verified

142}
143
144func (routeActor routeActor) FindDomain(routeName string) (string, models.DomainFields, error) {
145 host, domain, continueSearch, err := parseRoute(routeName, routeActor.domainRepo.FindPrivateByName)
146 if continueSearch {
147 host, domain, _, err = parseRoute(routeName, routeActor.domainRepo.FindSharedByName)
148 }
149 return host, domain, err
150}
151
152func (routeActor routeActor) FindPath(routeName string) (string, string) {
153 routeSlice := strings.Split(routeName, "/")

Callers 2

replaceDomainMethod · 0.95
FindAndBindRouteMethod · 0.95

Calls 1

parseRouteFunction · 0.85

Tested by

no test coverage detected