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

Function buildPlansFilterForGet

actor/v7action/service_access.go:299–322  ·  view source on GitHub ↗
(offeringName, brokerName, orgGUID string)

Source from the content-addressed store, hash-verified

297}
298
299func buildPlansFilterForGet(offeringName, brokerName, orgGUID string) (query []ccv3.Query) {
300 if offeringName != "" {
301 query = append(query, ccv3.Query{
302 Key: ccv3.ServiceOfferingNamesFilter,
303 Values: []string{offeringName},
304 })
305 }
306
307 if brokerName != "" {
308 query = append(query, ccv3.Query{
309 Key: ccv3.ServiceBrokerNamesFilter,
310 Values: []string{brokerName},
311 })
312 }
313
314 if orgGUID != "" {
315 query = append(query, ccv3.Query{
316 Key: ccv3.OrganizationGUIDFilter,
317 Values: []string{orgGUID},
318 })
319 }
320
321 return query
322}
323
324func buildPlansFilterForUpdate(offeringGUID, planName string) []ccv3.Query {
325 plansQuery := []ccv3.Query{{

Callers 1

GetServiceAccessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected