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>
15 lines
314 B
Go
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()
|
|
}
|