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

Method GetPlansForServiceWithOrgs

cf/actors/planbuilder/plan_builder.go:87–98  ·  view source on GitHub ↗
(serviceGUID string)

Source from the content-addressed store, hash-verified

85}
86
87func (builder Builder) GetPlansForServiceWithOrgs(serviceGUID string) ([]models.ServicePlanFields, error) {
88 plans, err := builder.GetPlansForService(serviceGUID)
89 if err != nil {
90 return nil, err
91 }
92
93 plans, err = builder.AttachOrgsToPlans(plans)
94 if err != nil {
95 return nil, err
96 }
97 return plans, nil
98}
99
100func (builder Builder) GetPlansForManyServicesWithOrgs(serviceGUIDs []string) ([]models.ServicePlanFields, error) {
101 plans, err := builder.servicePlanRepo.ListPlansFromManyServices(serviceGUIDs)

Callers

nothing calls this directly

Calls 2

GetPlansForServiceMethod · 0.95
AttachOrgsToPlansMethod · 0.95

Tested by

no test coverage detected