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

Method HasRoute

cf/models/application.go:17–24  ·  view source on GitHub ↗
(route Route)

Source from the content-addressed store, hash-verified

15}
16
17func (model Application) HasRoute(route Route) bool {
18 for _, boundRoute := range model.Routes {
19 if boundRoute.GUID == route.GUID {
20 return true
21 }
22 }
23 return false
24}
25
26func (model Application) ToParams() AppParams {
27 state := strings.ToUpper(model.State)

Callers 1

BindRouteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected