1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00
Commit graph

17 commits

Author SHA1 Message Date
Christian Banse
fb1cf32e17 Fixed linting errors 2024-04-19 09:35:36 +02:00
Christian Banse
e658738b56 Added support for structured logging in csaf_aggretator
This PR adds structured logging for the aggregator service. Currently, only the text handler is used, but I can extend this to use the JSON handler as well. In this case, probably some code that is shared between the aggregator and the downloader would need to be moved to a common package.

I was also wondering, whether this repo is moving to Go 1.21 at the future, since `slog` was introduced in to the standard lib in 1.21. So currently, this still relies on the `x/exp` package.

Fixes #462
2024-04-18 19:58:02 +02:00
Sascha L. Teichmann
91ab7f6b1c
Chance supported minimal Go version back to 1.20 (#514) 2023-11-28 10:37:16 +01:00
Sascha L. Teichmann
7a8cdb6d19
Lift distribution from v2 to v3. (#467)
* v2 -> v3

* Increase version within Makefile

---------

Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
2023-09-27 15:46:57 +02:00
JanHoefelmeyer
a569b573a4
Merge pull request #460 from csaf-poc/unit_tests
Unit tests of internal packages
2023-09-27 12:15:44 +02:00
Sascha L. Teichmann
7cd076d4f8
Downloader: Remove verbose flag (#464)
* Remove verbose flag from downloader.

* Do structured http logging in forwarder, too.

* Use structured logging to separate http traffic of downloader from forwarder.
2023-09-27 11:30:24 +02:00
Sascha L. Teichmann
6b07885848 Fix copyright headers. Make staticcheck happy. 2023-09-25 21:19:41 +02:00
Sascha L. Teichmann
52476f8560 use defer to restore original args. 2023-09-25 20:12:17 +02:00
Sascha L. Teichmann
1854cc4c58 Add test to trigger help output in second pass in command line parsing. 2023-09-25 18:15:09 +02:00
Sascha L. Teichmann
abce4e7f78 Add test for second pass command line passing. 2023-09-25 17:54:35 +02:00
JanHoefelmeyer
62290215ec Test os.exit and log.Fatalf in options_test.go 2023-09-25 14:17:22 +02:00
Sascha L. Teichmann
21fbd401b7 Cosmetics 2023-09-25 13:05:53 +02:00
JanHoefelmeyer
b06c316ee0 Add minimum documentation to some functions 2023-09-25 11:15:01 +02:00
JanHoefelmeyer
a217f88ea1 Many unittests for internal folder 2023-09-08 09:40:41 +02:00
Sascha L. Teichmann
1bdaf5854a Fallback to default config files if no config file was given. 2023-07-25 10:53:18 +02:00
Sascha L. Teichmann
9697e99d86 Improve comment 2023-07-25 00:17:44 +02:00
Sascha L. Teichmann
95bd705036 Factor command line parsing into an internal package for reuse. 2023-07-24 23:25:16 +02:00