osbuild2/device: add Parent field to Device

osbuild, starting with version 31, supports for nesting of devices,
i.e. any device can have a parent device. See osbuild commit 45d0594

Co-Authored-By: Christian Kellner <christian@kellner.me>
This commit is contained in:
Achilleas Koutsou 2022-02-08 22:49:30 +01:00 committed by Tom Gundersen
parent b871a77f09
commit 5de4276c9c

View file

@ -4,6 +4,7 @@ type Devices map[string]Device
type Device struct {
Type string `json:"type"`
Parent string `json:"parent,omitempty"`
Options DeviceOptions `json:"options,omitempty"`
}