aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fs.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-15 03:30:51 +0900
committerOphestra <cat@gensokyo.uk>2025-08-15 04:00:55 +0900
commit9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (patch)
tree03301910c40c59eb94029f1a93b1e74e21b5226a /hst/fs.go
parent4433c993fae86634b813ee212803a84aaeedd374 (diff)
hst/fs: implement overlay fstype
This finally exposes overlay mounts in the high level hakurei API. Signed-off-by: Ophestra <cat@gensokyo.uk>
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 a9ced38f..0dc95a99 100644
--- a/hst/fs.go
+++ b/hst/fs.go
@@ -81,6 +81,12 @@ func (f *FilesystemConfigJSON) MarshalJSON() ([]byte, error) {
*FSEphemeral
}{fsType{FilesystemEphemeral}, cv}
+ case *FSOverlay:
+ v = &struct {
+ fsType
+ *FSOverlay
+ }{fsType{FilesystemOverlay}, cv}
+
default:
return nil, FSImplError{f.FilesystemConfig}
}
@@ -103,6 +109,9 @@ func (f *FilesystemConfigJSON) UnmarshalJSON(data []byte) error {
case FilesystemEphemeral:
*f = FilesystemConfigJSON{new(FSEphemeral)}
+ case FilesystemOverlay:
+ *f = FilesystemConfigJSON{new(FSOverlay)}
+
default:
return FSTypeError(t.Type)
}