debian-forge-composer/internal/cloudapi/v2
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
..
errors.go distro/depsolve/cloudapi: Add 3rd-party repository support. 2021-12-15 20:12:49 +01:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
openapi.v2.gen.go go.mod: Update oapi-codegen and kin-openapi 2022-01-12 11:35:06 +01:00
openapi.v2.yml go.mod: Update oapi-codegen and kin-openapi 2022-01-12 11:35:06 +01:00
v2.go osbuild-worker: implement structured errors 2022-01-27 16:45:14 +01:00
v2_test.go go.mod: Update oapi-codegen and kin-openapi 2022-01-12 11:35:06 +01:00