debian-forge-composer/internal/cloudapi/v2
Tomas Hozza 8e6826e743 Move OSBuildMetadataToRPMs and PackageMetadataToSignature to osbuild2
Move `OSBuildMetadataToRPMs()` and `PackageMetadataToSignature()`
functions from the `rpmmd` package to `osbuild2` package to prevent
import cycles while de-duplicating `rpmStageInputs()` function from
`stage_inputs.go` of distro definitions.

Rename `PackageMetadataToSignature()` to
`RPMPackageMetadataToSignature()`, since it takes specifically
`RPMPackageMetadata` type as an argument.

Adjust affected parts of code (unit tests, cloudapi, worker).

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2022-02-18 09:26:35 +01:00
..
errors.go worker/api: align & improve error handlers 2022-02-02 11:15:20 +01:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
openapi.v2.gen.go cloudapi: add tags to repositories in image request 2022-02-14 17:38:41 +01:00
openapi.v2.yml cloudapi: add tags to repositories in image request 2022-02-14 17:38:41 +01:00
v2.go Move OSBuildMetadataToRPMs and PackageMetadataToSignature to osbuild2 2022-02-18 09:26:35 +01:00
v2_internal_test.go cloudapi: test repository config conversion function 2022-02-14 17:38:41 +01:00
v2_koji_test.go cloudapi/v2: add koji-specific tests 2022-02-01 20:28:40 +00:00
v2_test.go cloudapi/v2: introduce compose status 2022-02-01 20:28:40 +00:00