(schemaUsed *schema.Schema, policies []*schema.Policy)
| 322 | } |
| 323 | |
| 324 | func getMatchingPolicy(schemaUsed *schema.Schema, policies []*schema.Policy) []*schema.Policy { |
| 325 | var matchedPolicies []*schema.Policy |
| 326 | for _, policy := range policies { |
| 327 | if policy.GetResourcePathRegexp().MatchString(schemaUsed.URL) { |
| 328 | matchedPolicies = append(matchedPolicies, policy) |
| 329 | } |
| 330 | } |
| 331 | return matchedPolicies |
| 332 | } |
| 333 | |
| 334 | func filterActions(schemaToFilter *schema.Schema, nobodyPolicies []*schema.Policy, policies []*schema.Policy) []schema.Action { |
| 335 | actions := make([]schema.Action, 0) |
no test coverage detected