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

Method UnbindAll

cf/actors/routes.go:128–142  ·  view source on GitHub ↗
(app models.Application)

Source from the content-addressed store, hash-verified

126}
127
128func (routeActor routeActor) UnbindAll(app models.Application) error {
129 for _, route := range app.Routes {
130 routeActor.ui.Say(T(
131 "Removing route {{.URL}}...",
132 map[string]interface{}{
133 "URL": terminal.EntityNameColor(route.URL()),
134 }),
135 )
136 err := routeActor.routeRepo.Unbind(route.GUID, app.GUID)
137 if err != nil {
138 return err
139 }
140 }
141 return nil
142}
143
144func (routeActor routeActor) FindDomain(routeName string) (string, models.DomainFields, error) {
145 host, domain, continueSearch, err := parseRoute(routeName, routeActor.domainRepo.FindPrivateByName)

Callers

nothing calls this directly

Calls 4

EntityNameColorFunction · 0.92
SayMethod · 0.65
UnbindMethod · 0.65
URLMethod · 0.45

Tested by

no test coverage detected