aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'hst/container.go')
-rw-r--r--hst/container.go18
1 files changed, 2 insertions, 16 deletions
diff --git a/hst/container.go b/hst/container.go
index 0b51e101..d42c72d2 100644
--- a/hst/container.go
+++ b/hst/container.go
@@ -51,8 +51,8 @@ type (
// pass through all devices
Device bool `json:"device,omitempty"`
- // container host filesystem bind mounts
- Filesystem []FilesystemConfig `json:"filesystem"`
+ // container mount points
+ Filesystem []FilesystemConfigJSON `json:"filesystem"`
// create symlinks inside container filesystem
Link []LinkConfig `json:"symlink"`
@@ -68,20 +68,6 @@ type (
AutoEtc bool `json:"auto_etc"`
}
- // FilesystemConfig is an abstract representation of a bind mount.
- FilesystemConfig struct {
- // mount point in container, same as src if empty
- Dst *container.Absolute `json:"dst,omitempty"`
- // host filesystem path to make available to the container
- Src *container.Absolute `json:"src"`
- // do not mount filesystem read-only
- Write bool `json:"write,omitempty"`
- // do not disable device files
- Device bool `json:"dev,omitempty"`
- // fail if the bind mount cannot be established for any reason
- Must bool `json:"require,omitempty"`
- }
-
LinkConfig struct {
// symlink target in container
Target *container.Absolute `json:"target"`