aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fsephemeral.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-15 00:37:07 +0900
committerOphestra <cat@gensokyo.uk>2025-08-15 00:39:02 +0900
commit430991c39bedafb231e0017277e69ad95cb1d56e (patch)
treed381e40d691a3450f7c246542c6601442ca2db69 /hst/fsephemeral.go
parentba3227bf1572654cf1a3a828f7ee22ddd0224261 (diff)
hst/fs: remove type method
Having a method that returns the canonical string representation of its type seemed like a much better idea for an implementation that never made it to staging. Remove it here and clean up marshal type assertions. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral.go')
-rw-r--r--hst/fsephemeral.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hst/fsephemeral.go b/hst/fsephemeral.go
index 209b615f..0ed50874 100644
--- a/hst/fsephemeral.go
+++ b/hst/fsephemeral.go
@@ -25,8 +25,7 @@ type FSEphemeral struct {
Perm os.FileMode `json:"perm,omitempty"`
}
-func (e *FSEphemeral) Type() string { return FilesystemEphemeral }
-func (e *FSEphemeral) Valid() bool { return e != nil && e.Dst != nil }
+func (e *FSEphemeral) Valid() bool { return e != nil && e.Dst != nil }
func (e *FSEphemeral) Target() *container.Absolute {
if !e.Valid() {