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

18 lines
383 B
Go

package osbuild
// Provide access to LVM2 Logical Volume (LV)
type LVM2LVDeviceOptions struct {
// Logical volume to activate
Volume string `json:"volume"`
}
func (LVM2LVDeviceOptions) isDeviceOptions() {}
func NewLVM2LVDevice(parent string, options *LVM2LVDeviceOptions) *Device {
return &Device{
Type: "org.osbuild.lvm2.lv",
Parent: parent,
Options: options,
}
}