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

Function buildPlansFilterForUpdate

actor/v7action/service_access.go:324–338  ·  view source on GitHub ↗
(offeringGUID, planName string)

Source from the content-addressed store, hash-verified

322}
323
324func 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
340func offeringIsSpaceScoped(plans []resources.ServicePlan) bool {
341 // All plans from a space scoped offering will have the same visibility type

Callers 2

EnableServiceAccessMethod · 0.85
DisableServiceAccessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected