From 4da1ab03b3ad3b0f8f4300fc25ab3f99acf3116b Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 3 Mar 2020 21:29:20 +0100 Subject: [PATCH] osbuild: introduce manifest concept A manifest is simply a struct containing a sources and a pipeline object. We want to store and transfer pielines always with their sources, and will use the manifest for this. When serialized, a manifest can be the input to `osbuild`, just like a bare pipeline can be. This means there will be no need to pass in sources separately on the commandline. Signed-off-by: Tom Gundersen --- internal/osbuild/osbuild.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/osbuild/osbuild.go b/internal/osbuild/osbuild.go index aa282c986..760ea7b8c 100644 --- a/internal/osbuild/osbuild.go +++ b/internal/osbuild/osbuild.go @@ -2,6 +2,12 @@ // OSBuild types. package osbuild +// A Manifest represents an OSBuild source and pipeline manifest +type Manifest struct { + Sources Sources `json:"sources"` + Pipeline Pipeline `json:"pipeline"` +} + // A Pipeline represents an OSBuild pipeline type Pipeline struct { // The build environment which can run this pipeline