debian-forge-composer/internal/osbuild/luks2_device.go
2022-07-14 16:54:00 +02:00

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