crowdsec/pkg/apiserver
mmetc 89f704ef18
light pkg/api{client,server} refact (#2659)
* tests: don't run crowdsec if not necessary
* make listen_uri report the random port number when 0 is requested
* move apiserver.getTLSAuthType() -> csconfig.TLSCfg.GetAuthType()
* move apiserver.isEnrolled() -> apiclient.ApiClient.IsEnrolled()
* extract function apiserver.recoverFromPanic()
* simplify and move APIServer.GetTLSConfig() -> TLSCfg.GetTLSConfig()
* moved TLSCfg type to csconfig/tls.go
* APIServer.InitController(): early return / happy path
* extract function apiserver.newGinLogger()
* lapi tests
* update unit test
* lint (testify)
* lint (whitespace, variable names)
* update docker tests
2023-12-14 14:54:11 +01:00
..
controllers light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
middlewares/v1 light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
tests Fix #1552 (#1569) 2022-06-22 10:29:02 +02:00
alerts_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
api_key_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apic.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apic_metrics.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apic_metrics_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apic_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apiserver.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
apiserver_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
decisions_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
heartbeat_test.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
jwt_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
machines_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
papi.go update dependency on go-cs-lib; drop the pkg/ part (#2393) 2023-07-28 16:35:08 +02:00
papi_cmd.go manage force_pull message for one blocklist (#2615) 2023-11-29 11:37:46 +01:00