MCPcopy
hub / github.com/crowdsecurity/crowdsec / NormalizeScope

Function NormalizeScope

pkg/types/event.go:18–31  ·  view source on GitHub ↗
(scope string)

Source from the content-addressed store, hash-verified

16)
17
18func NormalizeScope(scope string) string {
19 switch strings.ToLower(scope) {
20 case "ip":
21 return Ip
22 case "range":
23 return Range
24 case "as":
25 return AS
26 case "country":
27 return Country
28 default:
29 return scope
30 }
31}

Callers 3

CreateAlertMethod · 0.92
SanitizeScopeFunction · 0.92
import_Method · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…