debian-forge-composer/internal/osbuild/mount.go
Achilleas Koutsou 7246f8fdd5 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.
2022-09-13 16:06:19 +01:00

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()
}