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:
parent
76031d4104
commit
7246f8fdd5
1 changed files with 5 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue