debian-forge-composer/internal/osbuild/tree_input.go
Simon de Vlieger b0fce3bfd1 platform: add the aarch64_iot platform
This platform copies more files into `/boot` which are necessary to be
able to boot IoT on some single board computers.

We also immediately set this on the `Aarch64_IoT` platform which needs
u-boot to be placed in the `/boot`.

This closes #3312.
2023-04-18 21:21:09 +02:00

30 lines
784 B
Go

package osbuild
// Tree inputs
type TreeInput struct {
inputCommon
References []string `json:"references"`
}
func (TreeInput) isInput() {}
// NewTreeInput creates an org.osbuild.tree input for an osbuild stage.
// The input is the final tree from a pipeline that should be referenced as
// 'name:<pipelinename>' in the reference argument.
func NewTreeInput(reference string) *TreeInput {
input := new(TreeInput)
input.Type = "org.osbuild.tree"
input.Origin = "org.osbuild.pipeline"
input.References = []string{reference}
return input
}
type PipelineTreeInputs map[string]Input
func NewPipelineTreeInputs(name, pipeline string) *PipelineTreeInputs {
return &PipelineTreeInputs{
name: *NewTreeInput("name:" + pipeline),
}
}
func (PipelineTreeInputs) isStageInputs() {}