crowdsec/pkg/apiserver
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
..
controllers allowlists: check during bulk decision import (#3588) 2025-04-28 17:11:17 +02:00
middlewares/v1 lint/gocritic: enable importShadow, typeUnparen, unnecessaryDefer (#3583) 2025-04-24 11:12:38 +02:00
tests Add support for centralized allowlists (#3355) 2025-02-19 15:04:47 +01:00
alerts_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
allowlists_test.go allowlists: check during bulk decision import (#3588) 2025-04-28 17:11:17 +02:00
api_key_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
apic.go lint/gocritic: enable importShadow, typeUnparen, unnecessaryDefer (#3583) 2025-04-24 11:12:38 +02:00
apic_metrics.go lint/gocritic: enable importShadow, typeUnparen, unnecessaryDefer (#3583) 2025-04-24 11:12:38 +02:00
apic_metrics_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
apic_test.go CI: golangci-lint v2 (#3558) 2025-04-03 16:57:56 +02:00
apiserver.go lapi: return specific error if a unix socket path is too long for the OS (#3593) 2025-04-29 12:42:49 +02:00
apiserver_test.go improve support for parsing time durations with 'day' units (#3599) 2025-05-05 15:12:29 +02:00
decisions_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
heartbeat_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
jwt_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00
machines_test.go CI: golangci-lint v2 (#3558) 2025-04-03 16:57:56 +02:00
papi.go enhance: Flags now superceed all log levels (#3496) 2025-03-07 13:42:08 +00:00
papi_cmd.go Add support for centralized allowlists (#3355) 2025-02-19 15:04:47 +01:00
usage_metrics_test.go tests: switch context.Background() -> t.Context() from go 1.24 (#3473) 2025-02-21 00:09:11 +01:00