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