Preparing for version 2 of the manifest schema, which will be implemented in a separate package (osbuild2) alongside the original.
20 lines
609 B
Go
20 lines
609 B
Go
package osbuild1
|
|
|
|
// TarAssemblerOptions desrcibe how to assemble a tree into a tar ball.
|
|
//
|
|
// The assembler tars and optionally compresses the tree using the provided
|
|
// compression type, and stores the output with the given filename.
|
|
type TarAssemblerOptions struct {
|
|
Filename string `json:"filename"`
|
|
Compression string `json:"compression,omitempty"`
|
|
}
|
|
|
|
func (TarAssemblerOptions) isAssemblerOptions() {}
|
|
|
|
// NewTarAssembler creates a new Tar Assembler object.
|
|
func NewTarAssembler(options *TarAssemblerOptions) *Assembler {
|
|
return &Assembler{
|
|
Name: "org.osbuild.tar",
|
|
Options: options,
|
|
}
|
|
}
|