Blame internal/osbuild2/ostree_commit_stage.go
|
Packit Service |
15f37d |
package osbuild2
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type OSTreeCommitStageOptions struct {
|
|
Packit Service |
15f37d |
// OStree ref to create for the commit
|
|
Packit Service |
15f37d |
Ref string `json:"ref"`
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// Set the version of the OS as commit metadata
|
|
Packit Service |
15f37d |
OSVersion string `json:"os_version,omitempty"`
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// Commit ID of the parent commit
|
|
Packit Service |
15f37d |
Parent string `json:"parent,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (OSTreeCommitStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type OSTreeCommitStageInput struct {
|
|
Packit Service |
15f37d |
inputCommon
|
|
Packit Service |
15f37d |
References OSTreeCommitStageReferences `json:"references"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (OSTreeCommitStageInput) isStageInput() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type OSTreeCommitStageInputs struct {
|
|
Packit Service |
15f37d |
Tree *OSTreeCommitStageInput `json:"tree"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (OSTreeCommitStageInputs) isStageInputs() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type OSTreeCommitStageReferences []string
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (OSTreeCommitStageReferences) isReferences() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// The OSTreeCommitStage (org.osbuild.ostree.commit) describes how to assemble
|
|
Packit Service |
15f37d |
// a tree into an OSTree commit.
|
|
Packit Service |
15f37d |
func NewOSTreeCommitStage(options *OSTreeCommitStageOptions, inputs *OSTreeCommitStageInputs) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Type: "org.osbuild.ostree.commit",
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
Inputs: inputs,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|