debian-forge-composer/internal/pipeline/rawfs_assembler.go
Lars Karlitski da311f13eb distro: add rhel82
This takes a different approach to outputs and customizations, which is
much shorter and duplicates less code.

This uses links to internal repositories for now, because 8.2 hasn't
been released yet.

Add a `distro` flag to `osbuild-pipeline`.
2019-11-27 17:08:51 +01:00

22 lines
638 B
Go

package pipeline
import "github.com/google/uuid"
// RawFSAssemblerOptions desrcibe how to assemble a tree into a raw filesystem
// image.
type RawFSAssemblerOptions struct {
Filename string `json:"filename"`
RootFilesystemUUDI uuid.UUID `json:"root_fs_uuid"`
Size uint64 `json:"size"`
FilesystemType string `json:"fs_type,omitempty"`
}
func (RawFSAssemblerOptions) isAssemblerOptions() {}
// NewRawFSAssembler creates a new RawFS Assembler object.
func NewRawFSAssembler(options *RawFSAssemblerOptions) *Assembler {
return &Assembler{
Name: "org.osbuild.rawfs",
Options: options,
}
}