debian-forge-composer/internal/osbuild1/ostree_commit_assembler.go
Achilleas Koutsou 8090621300 osbuild: rename package to osbuild1
Preparing for version 2 of the manifest schema, which will be
implemented in a separate package (osbuild2) alongside the original.
2021-03-17 18:12:17 +00:00

23 lines
773 B
Go

package osbuild1
// OSTreeCommitAssemblerOptions desrcibe how to assemble a tree into an OSTree commit.
type OSTreeCommitAssemblerOptions struct {
Ref string `json:"ref"`
Parent string `json:"parent,omitempty"`
Tar OSTreeCommitAssemblerTarOptions `json:"tar"`
}
// OSTreeCommitAssemblerTarOptions desrcibes the output tarball
type OSTreeCommitAssemblerTarOptions struct {
Filename string `json:"filename"`
}
func (OSTreeCommitAssemblerOptions) isAssemblerOptions() {}
// NewOSTreeCommitAssembler creates a new OSTree Commit Assembler object.
func NewOSTreeCommitAssembler(options *OSTreeCommitAssemblerOptions) *Assembler {
return &Assembler{
Name: "org.osbuild.ostree.commit",
Options: options,
}
}