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

Function append_unique_l7_rules

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

Source from the content-addressed store, hash-verified

781}
782
783fn append_unique_l7_rules(existing: &mut Vec<L7Rule>, incoming: &[L7Rule]) {
784 for rule in incoming {
785 if !existing.contains(rule) {
786 existing.push(rule.clone());
787 }
788 }
789}
790
791fn append_unique_deny_rules(existing: &mut Vec<L7DenyRule>, incoming: &[L7DenyRule]) {
792 for rule in incoming {

Callers 3

apply_operationFunction · 0.85
merge_endpointFunction · 0.85
expand_existing_accessFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected