No description
In order to maintain parity with lorax the api needs to reply with an error message equivalent to that used by lorax. Error messages are now returned inside an error object that contains an id, message, and optional status code. For some routes, there are errors when no url parameters are passed. The httprouter was using named parameters of the form /:param which does not match for empty parameters. Now, it has been updated to use the catch-all parameters of the form /*param. This change allows the case of no parameters. However, parameters will now include a "/" as their first character. This needs to be removed from the string in the route handler. In order to provide the proper error message for /modules/list/<modules>, searching for the modules needed to be updated. The requested modules and known packages are iterated over and if there is a match the module is added to the response. Also, the found module is dropped from the list of requested modules. If this list is not empty after searching all of the modules then an error is returned containing the name of the non-existant module. |
||
|---|---|---|
| cmd | ||
| distribution | ||
| internal | ||
| osbuild@cd49e2407c | ||
| tools | ||
| .gitignore | ||
| .gitmodules | ||
| .travis.yml | ||
| dnf-json | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
osbuild-composer
An image building service based on osbuild. It is inspired by lorax-composer and exposes the same API. As such, it is a drop-in replacement.