Target/koji: extend the result struct with SBOM docs

Extend the Koji target result struct with an optional slice for uploaded
SBOM documents.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-09-10 16:55:14 +02:00 committed by Tomáš Hozza
parent 4ae35a0ed9
commit c109265abb

View file

@ -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 {