debian-forge-composer/cmd
Tomáš Hozza efbaa93eef Target/Koji: rework result options to contain more than just image info
The `KojiTargetResultOptions` previously contained information only
about the uploaded image file. And even then, some information, such as
the filename, were scattered in other structures such as
`KojiFinalizeJob` struct.

Since the plan is to start uploading also osbuild manifest and osbuild
build log to Koji, we need to extend the result options structure to
hold more information and also make it specific to which file is the
information related.

Rework the `KojiTargetResultOptions` to contain information about:
 - the built image
 - build log
 - osbuild manifest

Information about each file contains:
 - filename
 - checksum type
 - file checksum
 - file size

For now, only the built image information is set and consumed by the
worker.

Add custom JSON (un)marshaler for `KojiTargetResultOptions` to handle
backward compatibility when old version of worker or composer server
interact with each other. Cover them with unit tests.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-09-27 12:39:28 +02:00
..
gen-manifests split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
mock-dnf-json mock-dnf-json: Add support for search command 2022-08-23 22:47:46 +01:00
osbuild-auth-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-composer update to go 1.19 2023-07-21 19:18:00 +02:00
osbuild-composer-cli-tests Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-composer-dbjobqueue-tests Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-composer-image-definitions split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
osbuild-dnf-json-tests split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
osbuild-image-tests distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
osbuild-koji Target/koji: mark optional fields in BuildOutput as omitempty 2023-09-27 12:39:28 +02:00
osbuild-koji-tests Koji: expose boot mode in image extra metadata 2023-08-08 15:53:07 +02:00
osbuild-mock-openid-provider Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
osbuild-package-sets split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
osbuild-pipeline lint: Fix implicit memory aliasing in for loops 2023-09-21 16:56:54 +02:00
osbuild-playground deps: update osbuild/images to v0.3.0 2023-08-24 20:30:24 +02:00
osbuild-service-maintenance Remove old build tag comments 2023-03-07 09:22:23 -08:00
osbuild-store-dump split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
osbuild-upload-aws AWS: extend target options with the AMI boot mode 2023-05-19 13:24:39 +02:00
osbuild-upload-azure azure: add an option to tag page blobs 2022-06-13 21:06:01 +02:00
osbuild-upload-container split: replace internal packages with images library 2023-07-10 21:11:19 +02:00
osbuild-upload-gcp build(deps): bump cloud.google.com/go/compute from 1.10.0 to 1.19.3 2023-05-22 11:51:42 +02:00
osbuild-upload-generic-s3 awscloud: add option to mark S3 object as public 2022-09-19 22:56:36 +02:00
osbuild-upload-oci internal/target: add OCI object storage target 2023-09-19 22:57:06 +02:00
osbuild-worker Target/Koji: rework result options to contain more than just image info 2023-09-27 12:39:28 +02:00