crowdsec/pkg/apiclient
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_service.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
alerts_service_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
auth.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
auth_service.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
auth_service_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
auth_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
client.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
client_http.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
client_http_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
client_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
config.go Polling API Integration (#1715) 2023-01-31 14:47:44 +01:00
decisions_service.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
decisions_service_test.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
decisions_sync_service.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00
heartbeat.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
signal.go light pkg/api{client,server} refact (#2659) 2023-12-14 14:54:11 +01:00