forked from security/hakurei
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>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user