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

Method GetApplicationRoutes

api/cloudcontroller/ccv3/route.go:39–53  ·  view source on GitHub ↗
(appGUID string)

Source from the content-addressed store, hash-verified

37}
38
39func (client Client) GetApplicationRoutes(appGUID string) ([]resources.Route, Warnings, error) {
40 var routes []resources.Route
41
42 _, warnings, err := client.MakeListRequest(RequestParams{
43 RequestName: internal.GetApplicationRoutesRequest,
44 URIParams: internal.Params{"app_guid": appGUID},
45 ResponseBody: resources.Route{},
46 AppendToList: func(item interface{}) error {
47 routes = append(routes, item.(resources.Route))
48 return nil
49 },
50 })
51
52 return routes, warnings, err
53}
54
55func (client Client) GetRouteDestinations(routeGUID string) ([]resources.RouteDestination, Warnings, error) {
56 var responseBody struct {

Callers

nothing calls this directly

Calls 1

MakeListRequestMethod · 0.65

Tested by

no test coverage detected