debian-forge-composer/internal/client
Lars Karlitski a1cf3984dc worker: introduce job artifact directory
The `jobs/:job_id/builds/:build_id/image` route was awkward: the
`:jobid` was actually weldr's compose id and `:build_id` was always `0`.

Change it to `jobs/:job_id/artifacts/:name`, where `:job_id` is now a
job id, and `:name` is the name of the artifact to upload. In the
future, it could support uploading more than one artifact.

This allows removing outputs from `store`, which is now back to being a
pure JSON-store. Take care that `weldr` returns (and deletes) images
from the new (or for backwards compatibility, the old) location.

The `org.osbuild.local` target continues to exist as a marker for the
worker to know whether it should upload artifacts.
2020-05-26 10:42:20 +02:00
..
blueprints.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00
blueprints_test.go blueprints: Fix handling of invalid blueprint names in the API code 2020-05-13 20:00:52 +02:00
client.go client: Add GetRawBody function to return the io.ReadCloser from the request 2020-04-15 11:35:05 +02:00
client_test.go tests: replace cmd.Diff() with require functions 2020-04-20 14:00:49 +02:00
compose.go client: urlencode compose status filter parameters 2020-05-13 20:00:52 +02:00
compose_test.go blueprints: Fix handling of invalid blueprint names in the API code 2020-05-13 20:00:52 +02:00
integration_test.go client: drop client timeout in tests 2020-05-12 22:38:10 +02:00
modules.go client: Add /modules/ support 2020-03-25 10:01:14 +01:00
modules_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
projects.go client: Add /projects/ support 2020-03-25 10:01:14 +01:00
projects_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
source.go client: Add projects/source API support 2020-03-23 21:08:01 +01:00
source_test.go tests: verify system-wide sources can't be deleted. Closes #315 2020-04-06 19:49:23 +02:00
unit_test.go worker: introduce job artifact directory 2020-05-26 10:42:20 +02:00
utils.go client: drop client timeout in tests 2020-05-12 22:38:10 +02:00
weldr.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00