MCPcopy Create free account
hub / github.com/cloudwan/gohan / AddCustomFilters

Method AddCustomFilters

schema/policy.go:654–656  ·  view source on GitHub ↗

Adds custom filters based on this policy to the `filters` map

(filters map[string]interface{}, tenantId string)

Source from the content-addressed store, hash-verified

652
653// Adds custom filters based on this policy to the `filters` map
654func (policy *ResourceCondition) AddCustomFilters(filters map[string]interface{}, tenantId string) {
655 addCustomFilters(filters, tenantId, policy.actionFilter)
656}
657
658func (policy *Policy) GetResourcePathRegexp() *regexp.Regexp {
659 return policy.resource.Path

Callers 6

GetMultipleResourcesFunction · 0.80
fetchResourceForActionFunction · 0.80
policy_test.goFile · 0.80

Calls 1

addCustomFiltersFunction · 0.85

Tested by

no test coverage detected