debian-forge-composer/internal/distro
Achilleas Koutsou 390ae15eaa distro: replace ostree.RequestParams with new OSTreeImageOptions
Instead of using the ostree.RequestParams in the OSTReeImageOptions,
define a new struct specific to ImageOptions for the ostree parameters.
This is almost identical to the new ostree.CommitSpec but the meaning of
the parameters changes based on image type and it would not be clear if
the CommitSpec was used in all cases.  For example, the parameters of
the new OSTreeImageOptions do not always refer to the same commit.  The
URL and Checksum may point to a parent commit to be pulled in to base
the new commit on, while the Ref refers to the new commit that will be
built (which may have a different ref from the parent).

The ostree.ResolveParams() function now returns two strings, the
resolved ref, which is replaced by the defaultRef if it's not specified
in the request, and the resolved parent checksum if a URL is specified.
The URL does not need to be returned since it's always the same as the
one specified in the request.
The function has been rewritten to make the logic more clear.
The docstring for the function has been rewritten to cover all use cases
and error conditions.
2022-10-11 10:00:22 +02:00
..
distro_test_common distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
fedora distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
rhel7 osbuild: use internal users package structs in stages 2022-09-29 18:09:38 +02:00
rhel8 distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
rhel9 distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
test_distro distro: add containers arg to ImageType.Manifest 2022-07-21 13:32:07 +02:00
distro.go distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
distro_test.go distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
image_config.go distro: use reflection in ImageConfig.InheritFrom() 2022-09-06 14:43:24 +02:00
image_config_test.go distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00