17 lines
345 B
Go
17 lines
345 B
Go
package osbuild
|
|
|
|
// Provide access to LUKS2 container
|
|
|
|
type LUKS2DeviceOptions struct {
|
|
Passphrase string `json:"passphrase"`
|
|
}
|
|
|
|
func (LUKS2DeviceOptions) isDeviceOptions() {}
|
|
|
|
func NewLUKS2Device(parent string, options *LUKS2DeviceOptions) *Device {
|
|
return &Device{
|
|
Type: "org.osbuild.luks2",
|
|
Parent: parent,
|
|
Options: options,
|
|
}
|
|
}
|