(elements []AllowListElement)
| 228 | } |
| 229 | |
| 230 | func allowListContainsAll(elements []AllowListElement) bool { |
| 231 | if len(elements) == 0 { |
| 232 | return false |
| 233 | } |
| 234 | for _, e := range elements { |
| 235 | if e.Type == policy.WildcardSymbol && e.ID == policy.WildcardSymbol { |
| 236 | return true |
| 237 | } |
| 238 | } |
| 239 | return false |
| 240 | } |
| 241 | |
| 242 | // intersectAllow returns the set of permit entries that satisfy both the scope |
| 243 | // element and the database allow list. |
no outgoing calls
no test coverage detected