debian-forge-composer/internal/cloudapi/v2
Achilleas Koutsou 24b4647a14 cloudapi: add multiple upload_targets to ImageRequest
Add an upload_targets field to the image request.  This lets the API
caller specify multiple upload targets and upload options to be used.
If the upload target type does not match the upload options, the request
is invalid.

For backwards compatibility, the upload targets field is optional.  If
it is not specified, the default upload target and upload options for
the image type are assumed, which is the same as the old behaviour.

Adding an explicit selection to the request makes it possible to support
multiple upload targets for the same image type.  We plan to support
ostree commits being uploaded to both aws.s3 and pulp.

To report on the multiple upload requests, we add an upload_statuses
field to the ImageStatus response.
2023-11-17 16:48:16 +01:00
..
compose.go cloudapi: Add partitioning_mode support to the API 2023-10-23 14:52:30 +02:00
compose_test.go cloudapi: Add partitioning_mode support to the API 2023-10-23 14:52:30 +02:00
errors.go cloudapi: Add partitioning_mode support to the API 2023-10-23 14:52:30 +02:00
errors_test.go cloudapi: get specific error from openapi 2022-06-28 10:02:55 +02:00
handler.go cloudapi: Add partitioning_mode support to the API 2023-10-23 14:52:30 +02:00
imagerequest.go cloudapi: Add partitioning_mode support to the API 2023-10-23 14:52:30 +02:00
imagerequest_test.go cloudapi: Add tests for refactored handler code 2023-08-05 11:28:29 +02:00
middleware.go internal/auth: add TenantChannelMiddleware 2023-06-28 15:08:37 +02:00
openapi.v2.gen.go cloudapi: add multiple upload_targets to ImageRequest 2023-11-17 16:48:16 +01:00
openapi.v2.yml cloudapi: add multiple upload_targets to ImageRequest 2023-11-17 16:48:16 +01:00
server.go cloudapi/v2: log manifest generation errors as a warning 2023-10-02 23:37:26 +01:00
v2_internal_test.go lint: Fix implicit memory aliasing in for loops 2023-09-21 16:56:54 +02:00
v2_koji_test.go Target: expose osbuild artifact information in target result 2023-09-27 12:39:28 +02:00
v2_multi_tenancy_test.go split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
v2_test.go Target: expose osbuild artifact information in target result 2023-09-27 12:39:28 +02:00