MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / append_unique_deny_rules

Function append_unique_deny_rules

crates/openshell-policy/src/merge.rs:791–797  ·  view source on GitHub ↗
(existing: &mut Vec<L7DenyRule>, incoming: &[L7DenyRule])

Source from the content-addressed store, hash-verified

789}
790
791fn append_unique_deny_rules(existing: &mut Vec<L7DenyRule>, incoming: &[L7DenyRule]) {
792 for rule in incoming {
793 if !existing.contains(rule) {
794 existing.push(rule.clone());
795 }
796 }
797}
798
799fn normalize_rule(rule: &mut NetworkPolicyRule) {
800 for endpoint in &mut rule.endpoints {

Callers 2

apply_operationFunction · 0.85
merge_endpointFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected