debian-forge-composer/internal/osbuild2/mount.go
Achilleas Koutsou c74d13daf8 osbuild2: remove stage-specific mount types
Mounts unlike stage options, shouldn't be stage specific. We have
filesystem specific mount types, differentiated by their type string.
Mounts can define their own additional options if necessary.

The top level Mounts type is simply an alias to a Mount array.

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
2021-08-21 13:39:10 +02:00

15 lines
314 B
Go

package osbuild2
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"`
}
type MountOptions interface {
isMountOptions()
}