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

Method GetPlansForServiceForOrg

cf/actors/planbuilder/plan_builder.go:66–77  ·  view source on GitHub ↗
(serviceGUID string, orgName string)

Source from the content-addressed store, hash-verified

64}
65
66func (builder Builder) GetPlansForServiceForOrg(serviceGUID string, orgName string) ([]models.ServicePlanFields, error) {
67 plans, err := builder.servicePlanRepo.Search(map[string]string{"service_guid": serviceGUID})
68 if err != nil {
69 return nil, err
70 }
71
72 plans, err = builder.AttachOrgToPlans(plans, orgName)
73 if err != nil {
74 return nil, err
75 }
76 return plans, nil
77}
78
79func (builder Builder) GetPlansForService(serviceGUID string) ([]models.ServicePlanFields, error) {
80 plans, err := builder.servicePlanRepo.Search(map[string]string{"service_guid": serviceGUID})

Callers

nothing calls this directly

Calls 2

AttachOrgToPlansMethod · 0.95
SearchMethod · 0.65

Tested by

no test coverage detected