Blob Blame History Raw
package osbuild2

type OSTreeCommitStageOptions struct {
	// OStree ref to create for the commit
	Ref string `json:"ref"`

	// Set the version of the OS as commit metadata
	OSVersion string `json:"os_version,omitempty"`

	// Commit ID of the parent commit
	Parent string `json:"parent,omitempty"`
}

func (OSTreeCommitStageOptions) isStageOptions() {}

type OSTreeCommitStageInput struct {
	inputCommon
	References OSTreeCommitStageReferences `json:"references"`
}

func (OSTreeCommitStageInput) isStageInput() {}

type OSTreeCommitStageInputs struct {
	Tree *OSTreeCommitStageInput `json:"tree"`
}

func (OSTreeCommitStageInputs) isStageInputs() {}

type OSTreeCommitStageReferences []string

func (OSTreeCommitStageReferences) isReferences() {}

// The OSTreeCommitStage (org.osbuild.ostree.commit) describes how to assemble
// a tree into an OSTree commit.
func NewOSTreeCommitStage(options *OSTreeCommitStageOptions, inputs *OSTreeCommitStageInputs) *Stage {
	return &Stage{
		Type:    "org.osbuild.ostree.commit",
		Options: options,
		Inputs:  inputs,
	}
}