debian-forge-composer/cmd/osbuild-worker
Gianluca Zuccarelli cc981b887a osbuild-worker: implement structured errors
Implement the structured errors as defined by the worker client.
Every error for each of the job types now returns a structured
error with a reason and a specific error code.  This will make
it possible to differentiate between 4xx errors and 5xx errors.

This commit refactors the way errors are implemented in the workers,
but maintains backwards compatability in composer by checking for
both kinds of errors.
2022-01-27 16:45:14 +01:00
..
jobimpl-depsolve.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
jobimpl-koji-finalize.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
jobimpl-koji-init.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
jobimpl-osbuild-koji.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
jobimpl-osbuild.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
main.go gosec: G402 - TLS MinVersion 2021-12-13 12:17:30 +02:00
osbuild.go osbuild-worker: use v2 Result struct 2021-11-16 09:49:37 +01:00