Blame internal/osbuild1/tar_assembler.go

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