debian-forge-composer/internal/worker/api
Lars Karlitski b03e1254e9 worker/api: remove token in favor of callback URLs
Instead of sending a `token` to workers, send back to URLs:

 1. "location": URL at which the job can be inspected (GET) and updated
    (PATCH).
 2. "artifact_location": URL at which artifacts should be uploaded to.

The actual URLs remain the same, but a client does not need to stitch
them together manually (except appending the artifact's name).

Unfortunately, the client code generated by `deepmap` does not lend
itself to this style of APIs. Use standard http.Client again, which is a
partial revert of 0962fbd30.
2020-09-11 14:23:24 +01:00
..
api.gen.go worker/api: remove token in favor of callback URLs 2020-09-11 14:23:24 +01:00
api.go worker/api: remove token in favor of callback URLs 2020-09-11 14:23:24 +01:00
openapi.yml worker/api: remove token in favor of callback URLs 2020-09-11 14:23:24 +01:00