debian-forge-composer/internal/osbuild/ostree_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

42 lines
1 KiB
Go

package osbuild
// Inputs for ostree commits
type OSTreeInput struct {
inputCommon
}
func (OSTreeInput) isInput() {}
func NewOSTreeInput() *OSTreeInput {
input := new(OSTreeInput)
input.Type = "org.osbuild.ostree"
input.Origin = "org.osbuild.source"
return input
}
// Inputs of type org.osbuild.ostree.checkout
type OSTreeCheckoutInput struct {
inputCommon
References OSTreeCheckoutReferences `json:"references"`
}
func (OSTreeCheckoutInput) isInput() {}
type OSTreeCheckoutReferences []string
func (OSTreeCheckoutReferences) isReferences() {}
// NewOSTreeCommitsInput creates a new OSTreeCommitsInputs
// where `origin` is either "org.osbuild.source" or "org.osbuild.pipeline
// `name` is the id of the commit, i.e. its digest or the pipeline name that
// produced it)
func NewOSTreeCheckoutInput(origin, name string) *OSTreeCheckoutInput {
input := new(OSTreeCheckoutInput)
input.Type = "org.osbuild.ostree.checkout"
input.Origin = origin
inputRefs := make([]string, 1)
inputRefs[0] = name
input.References = inputRefs
return input
}