debian-forge-composer/internal
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
..
artifact artifact: this represents the artifacts a manifest exports 2022-07-22 16:04:07 +02:00
auth go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
blueprint blueprints: Fix commit message when version is empty 2022-09-30 17:42:07 +02:00
boot azure: Add note that azure-sdk-for-go module is deprecated 2022-09-15 03:57:40 -07:00
client distro/*: allow /boot to be customized 2022-08-08 18:05:05 +02:00
cloud awscloud: add option to mark S3 object as public 2022-09-19 22:56:36 +02:00
cloudapi distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
common common: define storage units as constants 2022-09-15 08:50:33 +02:00
container job/osbuild: move utility the container package 2022-08-01 21:50:03 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk disk: add packages for LUKS containers 2022-09-13 16:06:19 +01:00
distro distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
distroregistry distro/fedora: add support for Fedora 37 and 38 2022-09-13 16:06:19 +01:00
dnfjson dnfjson: Add dnf-json result cache to BaseSolver 2022-09-15 11:34:39 +01:00
environment environment: encapsulate the environment images are deployed to 2022-07-07 12:00:56 +01:00
image image: update ostree installer to use new pipelines 2022-09-29 18:09:38 +02:00
jobqueue jobqueue: Query job dependents 2022-08-30 16:14:52 +02:00
jsondb test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
manifest ostree: rename CommitSource to CommitSpec and add Ref 2022-10-11 10:00:22 +02:00
mocks mocks/dnfjson: Add mock support for the search command 2022-08-23 22:47:46 +01:00
osbuild ostree: rename CommitSource to CommitSpec and add Ref 2022-10-11 10:00:22 +02:00
oscap oscap: add oscap package 2022-08-04 18:19:06 +02:00
ostree distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
platform platform: fix error message for invalid image format 2022-09-13 16:06:19 +01:00
prometheus metrics: build jobs arch label 2022-07-27 13:37:14 +02:00
reporegistry reporegistry: remove unused ReposByArch() function 2022-03-09 23:22:06 +00:00
rhsm internal/rhsm: implement fallback to the previous mechanism 2021-08-09 12:40:23 +02:00
rpmmd Rename osbuild2 package to osbuild 2022-07-14 16:54:00 +02:00
runner runner: introduce runner abstraction 2022-07-12 08:19:57 +01:00
store blueprints: Fix commit message when version is empty 2022-09-30 17:42:07 +02:00
target worker: add an option to upload public objects to aws.s3 target 2022-09-19 22:56:36 +02:00
test cloudapi: run all Koji compose unit tests 2022-06-10 14:48:18 +01:00
upload azure: storageErr is already azblob.StorageError type 2022-09-15 03:57:40 -07:00
users users: convenience functions for converting from BP 2022-09-13 16:06:19 +01:00
weldr distro: replace ostree.RequestParams with new OSTreeImageOptions 2022-10-11 10:00:22 +02:00
worker worker: Return dependent jobs in OsbuildJobStatus 2022-08-30 16:14:52 +02:00
workload workload: introduce abstraction to encapsulate image workloads 2022-07-07 12:00:56 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00