(p string)
| 43 | func validScanToggle(s string) bool { return s == ScanOff || s == ScanOn } |
| 44 | |
| 45 | func 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. |
no outgoing calls
no test coverage detected