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.
15 lines
328 B
Go
15 lines
328 B
Go
package osbuild
|
|
|
|
type Mounts []Mount
|
|
|
|
type Mount struct {
|
|
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 {
|
|
isMountOptions()
|
|
}
|