aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'hst/fs.go')
-rw-r--r--hst/fs.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/hst/fs.go b/hst/fs.go
index a2a75a78..1d330951 100644
--- a/hst/fs.go
+++ b/hst/fs.go
@@ -95,6 +95,12 @@ func (f *FilesystemConfigJSON) MarshalJSON() ([]byte, error) {
*FSOverlay
}{fsType{FilesystemOverlay}, cv}
+ case *FSLink:
+ v = &struct {
+ fsType
+ *FSLink
+ }{fsType{FilesystemLink}, cv}
+
default:
return nil, FSImplError{f.FilesystemConfig}
}
@@ -120,6 +126,9 @@ func (f *FilesystemConfigJSON) UnmarshalJSON(data []byte) error {
case FilesystemOverlay:
*f = FilesystemConfigJSON{new(FSOverlay)}
+ case FilesystemLink:
+ *f = FilesystemConfigJSON{new(FSLink)}
+
default:
return FSTypeError(t.Type)
}