(offeringGUID, planName string)
| 322 | } |
| 323 | |
| 324 | func buildPlansFilterForUpdate(offeringGUID, planName string) []ccv3.Query { |
| 325 | plansQuery := []ccv3.Query{{ |
| 326 | Key: ccv3.ServiceOfferingGUIDsFilter, |
| 327 | Values: []string{offeringGUID}, |
| 328 | }} |
| 329 | |
| 330 | if planName != "" { |
| 331 | plansQuery = append(plansQuery, ccv3.Query{ |
| 332 | Key: ccv3.NameFilter, |
| 333 | Values: []string{planName}, |
| 334 | }) |
| 335 | } |
| 336 | |
| 337 | return plansQuery |
| 338 | } |
| 339 | |
| 340 | func offeringIsSpaceScoped(plans []resources.ServicePlan) bool { |
| 341 | // All plans from a space scoped offering will have the same visibility type |
no outgoing calls
no test coverage detected