| 190 | } |
| 191 | |
| 192 | func (actor Actor) GetRoutesByOrg(orgGUID string, labelSelector string) ([]resources.Route, Warnings, error) { |
| 193 | allWarnings := Warnings{} |
| 194 | queries := []ccv3.Query{ |
| 195 | {Key: ccv3.OrganizationGUIDFilter, Values: []string{orgGUID}}, |
| 196 | {Key: ccv3.PerPage, Values: []string{ccv3.MaxPerPage}}, |
| 197 | } |
| 198 | if len(labelSelector) > 0 { |
| 199 | queries = append(queries, ccv3.Query{Key: ccv3.LabelSelectorFilter, Values: []string{labelSelector}}) |
| 200 | } |
| 201 | |
| 202 | routes, warnings, err := actor.CloudControllerClient.GetRoutes(queries...) |
| 203 | allWarnings = append(allWarnings, warnings...) |
| 204 | if err != nil { |
| 205 | return nil, allWarnings, err |
| 206 | } |
| 207 | |
| 208 | return routes, allWarnings, nil |
| 209 | } |
| 210 | |
| 211 | func (actor Actor) GetApplicationMapForRoute(route resources.Route) (map[string]resources.Application, Warnings, error) { |
| 212 | var v7Warning Warnings |