debian-forge-composer/internal/osbuild/rawfs_assembler.go
Tom Gundersen d133454d91 pipeline: rename package to osbuild
Rename the package from `pipeline` to `osbuild` to reflect that it
will no longer be specific to pipelines, but rather covers all
osbuild datatypes.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-02-14 14:43:27 +01:00

22 lines
637 B
Go

package osbuild
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,
}
}