Blame internal/osbuild2/tar_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type TarStageOptions struct {
Packit Service 15f37d
	// Filename for tar archive
Packit Service 15f37d
	Filename string `json:"filename"`
Packit Service 15f37d
Packit Service 15f37d
	// Enable support for POSIX ACLs
Packit Service 15f37d
	ACLs bool `json:"acls,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	// Enable support for SELinux contexts
Packit Service 15f37d
	SELinux bool `json:"selinux,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	// Enable support for extended attributes
Packit Service 15f37d
	Xattrs bool `json:"xattrs,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (TarStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
// Assembles a tree into a tar archive. Compression is determined by the suffix
Packit Service 15f37d
// (i.e., --auto-compress is used).
Packit Service 15f37d
func NewTarAssembler(options *TarStageOptions) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.tar",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
	}
Packit Service 15f37d
}