From c109265abbd79c1c8dd49ada56485aca3352a088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Tue, 10 Sep 2024 16:55:14 +0200 Subject: [PATCH] Target/koji: extend the result struct with SBOM docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the Koji target result struct with an optional slice for uploaded SBOM documents. Signed-off-by: Tomáš Hozza --- internal/target/koji_target.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/target/koji_target.go b/internal/target/koji_target.go index e24f8344e..7aa2eeca8 100644 --- a/internal/target/koji_target.go +++ b/internal/target/koji_target.go @@ -58,10 +58,11 @@ type ManifestInfo struct { } type KojiTargetResultOptions struct { - Image *KojiOutputInfo `json:"image"` - Log *KojiOutputInfo `json:"log,omitempty"` - OSBuildManifest *KojiOutputInfo `json:"osbuild_manifest,omitempty"` - OSBuildManifestInfo *ManifestInfo `json:"osbuild_manifest_info,omitempty"` + Image *KojiOutputInfo `json:"image"` + Log *KojiOutputInfo `json:"log,omitempty"` + OSBuildManifest *KojiOutputInfo `json:"osbuild_manifest,omitempty"` + OSBuildManifestInfo *ManifestInfo `json:"osbuild_manifest_info,omitempty"` + SbomDocs []KojiOutputInfo `json:"sbom_docs,omitempty"` } func (o *KojiTargetResultOptions) UnmarshalJSON(data []byte) error {