crowdsec/pkg/exprhelpers
mmetc f8f0b2a211
improve support for parsing time durations with 'day' units (#3599)
* custom duration type for "cscli decisions list", "cscli alerts list"
* custom duration type for "cscli allowlist add"
* custom duration type for "cscli machines prune"
* custom duration type for "cscli bouncers prune"
* replace old function ParseDuration
* use custom duration type in expr helpers
* update dependency
* lint
* test fix
* support days in 'metrics_max_age'
* DurationWithDays for 'max_age'
2025-05-05 15:12:29 +02:00
..
tests
crowdsec_cti.go enhance: Flags now superceed all log levels (#3496) 2025-03-07 13:42:08 +00:00
crowdsec_cti_test.go Typos (#3084) 2024-06-13 11:07:44 +02:00
debugger.go refact: pkg/exprhelpers/debugger, convert switch to function dispatch (#3587) 2025-04-24 11:27:45 +02:00
debugger_test.go test pkg/exprhelpers: explicit message if the tag "expr_debug" is missing (#3400) 2025-01-15 12:13:54 +01:00
debuggerstub_test.go test pkg/exprhelpers: explicit message if the tag "expr_debug" is missing (#3400) 2025-01-15 12:13:54 +01:00
expr_lib.go move ParseQuery to expr helpers, add ExtractQueryParam (#3491) 2025-03-04 10:41:11 +01:00
exprlib_test.go move ParseQuery to expr helpers, add ExtractQueryParam (#3491) 2025-03-04 10:41:11 +01:00
geoip.go lint: style, autofix (#3354) 2024-12-05 10:40:48 +01:00
helpers.go improve support for parsing time durations with 'day' units (#3599) 2025-05-05 15:12:29 +02:00
jsonextract.go lint: import statement order (#3085) 2024-06-26 12:16:17 +02:00
jsonextract_test.go update expr (#3144) 2024-07-22 12:14:46 +02:00
libinjection.go add libinjection expr helpers (#2914) 2024-03-21 11:39:37 +01:00
libinjection_test.go add libinjection expr helpers (#2914) 2024-03-21 11:39:37 +01:00
strings.go add a LogInfo expr helper (#2179) 2023-05-03 10:07:11 +02:00
waf.go move ParseQuery to expr helpers, add ExtractQueryParam (#3491) 2025-03-04 10:41:11 +01:00
waf_test.go lint: gocritic/httpNoBody (#3493) 2025-03-07 14:35:25 +01:00
xml.go wineventlog: add support for replaying evtx files (#3278) 2024-10-16 16:55:32 +02:00
xml_test.go tests: log.Fatal -> return err (#3056) 2024-06-05 11:04:54 +02:00