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

Method GetPlansForService

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

Source from the content-addressed store, hash-verified

77}
78
79func (builder Builder) GetPlansForService(serviceGUID string) ([]models.ServicePlanFields, error) {
80 plans, err := builder.servicePlanRepo.Search(map[string]string{"service_guid": serviceGUID})
81 if err != nil {
82 return nil, err
83 }
84 return plans, nil
85}
86
87func (builder Builder) GetPlansForServiceWithOrgs(serviceGUID string) ([]models.ServicePlanFields, error) {
88 plans, err := builder.GetPlansForService(serviceGUID)

Callers 1

Calls 1

SearchMethod · 0.65

Tested by

no test coverage detected