(plans []models.ServicePlanFields, orgName string)
| 38 | } |
| 39 | |
| 40 | func (builder Builder) AttachOrgToPlans(plans []models.ServicePlanFields, orgName string) ([]models.ServicePlanFields, error) { |
| 41 | visMap, err := builder.buildPlanToOrgVisibilityMap(orgName) |
| 42 | if err != nil { |
| 43 | return nil, err |
| 44 | } |
| 45 | for planIndex := range plans { |
| 46 | plan := &plans[planIndex] |
| 47 | plan.OrgNames = visMap[plan.GUID] |
| 48 | } |
| 49 | |
| 50 | return plans, nil |
| 51 | } |
| 52 | |
| 53 | func (builder Builder) AttachOrgsToPlans(plans []models.ServicePlanFields) ([]models.ServicePlanFields, error) { |
| 54 | visMap, err := builder.buildPlanToOrgsVisibilityMap() |
no test coverage detected