agola/internal/services/gateway/api
Simone Gotti 3642be6f21 */api: Use helpers for error handling
* client: always parse the json error message field and return its contents
* Use ErrBadRequest and ErrNotFound in every handler and command
* Gateway: by default pass underlying service error (configstore, runservice) to
client keeping the status code and message. In future, if some errors must be
masked, we should change the specific parts that need special handling.
2019-04-09 14:53:00 +02:00
..
api.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
client.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
oauth2.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
org.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
project.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
projectgroup.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
remotesource.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
repos.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
run.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
secret.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
user.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00
variable.go */api: Use helpers for error handling 2019-04-09 14:53:00 +02:00