osbuild: fix base Mount struct properties

Source and Target are not required -> omitempty
Options is of type MountOptions which is an interface, so we don't need
to make it a pointer.
This commit is contained in:
Achilleas Koutsou 2022-08-22 12:52:33 +02:00 committed by Tom Gundersen
parent 76031d4104
commit 7246f8fdd5

View file

@ -3,11 +3,11 @@ package osbuild
type Mounts []Mount
type Mount struct {
Name string `json:"name"`
Type string `json:"type"`
Source string `json:"source"`
Target string `json:"target"`
Options *MountOptions `json:"options,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
Source string `json:"source,omitempty"`
Target string `json:"target,omitempty"`
Options MountOptions `json:"options,omitempty"`
}
type MountOptions interface {