aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fsbind.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/fsbind.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/fsbind.go')
-rw-r--r--hst/fsbind.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hst/fsbind.go b/hst/fsbind.go
index 18d9cf74..beceecb2 100644
--- a/hst/fsbind.go
+++ b/hst/fsbind.go
@@ -26,8 +26,7 @@ type FSBind struct {
Optional bool `json:"optional,omitempty"`
}
-func (b *FSBind) Type() string { return FilesystemBind }
-func (b *FSBind) Valid() bool { return b != nil && b.Src != nil }
+func (b *FSBind) Valid() bool { return b != nil && b.Src != nil }
func (b *FSBind) Target() *container.Absolute {
if !b.Valid() {