MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / validOutboundPolicy

Function validOutboundPolicy

internal/identity/scanconfig.go:45–47  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

43func validScanToggle(s string) bool { return s == ScanOff || s == ScanOn }
44
45func validOutboundPolicy(p string) bool {
46 return p == OutboundPolicyOpen || p == OutboundPolicyAllowlist || p == OutboundPolicyDomain
47}
48
49// ValidateScanConfig mirrors the migration-038 CHECK constraints so callers get a
50// clean pre-query error rather than a raw constraint violation.

Callers 2

ValidateScanConfigFunction · 0.85
ValidateProtectionConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected