debian-forge-composer/internal
Tomas Hozza 8271910051 osbuild2: refactor files inputs
osbuild stage inputs were originally implemented in composer as
stage-specific inputs, while in reality, they are defined as individual
inputs, usually accepted by multiple stages. Therefore a single stage
input can be passed to any stage, as long as the stage accepts it.

Files inputs type was previously defined, but not used by any stage.
Creation of proper inputs type structures is currently handled in
`internal/distro/rhel85/stage_inputs.go` instead.

Refactor files inputs type to be usable directly as an input type
structure for stages, which accept it. For now, implement only the
`org.osbuild.pipeline` origin and related input reference.

Add unit tests for the `FilesInputs`.

Define input origin names as string constants, so that they can be used
by inputs implementations, instead of using string literals.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-08-02 19:05:09 +02:00
..
blueprint blueprint: test minsize and sector-size validation 2021-07-28 21:44:03 +01:00
boot upload/aws: add support for session tokens 2021-06-28 13:14:19 +03:00
client Weldr API: introduce Image Type denylist for filtering exposed images 2021-08-02 18:51:03 +02:00
cloud/gcp test/api.sh: randomize used GCP zone from the region 2021-07-16 10:14:30 +02:00
cloudapi cloudapi: Add User customization 2021-07-28 10:40:25 +02:00
common common: helper function for uint64 ptr 2021-07-24 15:54:00 +02:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk disk: boot partition finder as partitiontable method 2021-07-24 15:54:00 +02:00
distro distro/rhel85: move selinux stage to last 2021-07-29 16:45:20 +02:00
distroregistry distro: drop Fedora 32 2021-07-05 11:16:08 +02:00
jobqueue jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi worker: Move job tokens to the queue itself 2021-07-08 21:14:38 +01:00
mocks worker: Add identity filter and client oauth support 2021-06-17 10:08:35 +02:00
osbuild1 osbuild1: convert stage metadata from v2 2021-06-29 09:33:05 +01:00
osbuild2 osbuild2: refactor files inputs 2021-08-02 19:05:09 +02:00
ostree ostree: add test for VerifyRef() 2021-06-18 14:02:09 +01:00
prometheus worker: add metrics 2021-07-23 21:54:28 +02:00
reporegistry reporegistry: Add a DistroHasRepos helper function 2021-07-12 08:58:42 +02:00
rpmmd rhel85: distro and arch package sets 2021-07-01 12:48:32 +02:00
store weldr: accept rhsm parameter in sources 2021-07-27 15:39:36 +02:00
target New upload target: AWS S3 2021-06-18 14:02:09 +01:00
test worker: Add identity filter and client oauth support 2021-06-17 10:08:35 +02:00
upload spec: drop hacks for Fedora 32 2021-07-05 11:16:08 +02:00
weldr Weldr API: allow globing in distro image type deny list 2021-08-02 18:51:03 +02:00
worker worker: add metrics 2021-07-23 21:54:28 +02:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00