crowdsec/pkg/apiserver/controllers/v1
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
..
alerts.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
controller.go errors.Wrap -> fmt.Errorf; clean up imports (#2301) 2023-06-23 14:04:58 +02:00
decisions.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
errors.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
heartbeat.go enable staticcheck linter; fixes (#1806) 2022-10-14 16:12:21 +02:00
machines.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
metrics.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
utils.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00