Blame internal/osbuild/tar_assembler.go

Packit 63bb0d
package osbuild
Packit 63bb0d
Packit 63bb0d
// TarAssemblerOptions desrcibe how to assemble a tree into a tar ball.
Packit 63bb0d
//
Packit 63bb0d
// The assembler tars and optionally compresses the tree using the provided
Packit 63bb0d
// compression type, and stores the output with the given filename.
Packit 63bb0d
type TarAssemblerOptions struct {
Packit 63bb0d
	Filename    string `json:"filename"`
Packit 63bb0d
	Compression string `json:"compression,omitempty"`
Packit 63bb0d
}
Packit 63bb0d
Packit 63bb0d
func (TarAssemblerOptions) isAssemblerOptions() {}
Packit 63bb0d
Packit 63bb0d
// NewTarAssembler creates a new Tar Assembler object.
Packit 63bb0d
func NewTarAssembler(options *TarAssemblerOptions) *Assembler {
Packit 63bb0d
	return &Assembler{
Packit 63bb0d
		Name:    "org.osbuild.tar",
Packit 63bb0d
		Options: options,
Packit 63bb0d
	}
Packit 63bb0d
}