Documentation ¶
Overview ¶
Package filesystem provides a FUSE filesystem that can be used to mount a fake library to a particular filesystem path.
Typical Usage:
lib, err := library.New(...) if err != nil { ... } server, err := filesystem.Mount(lib, dir, nil) if err != nil { ... } // use the files mounted in `dir`. server.Unmount()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
Mount mounts the given library into `dir`. `options` can be used to supply additional FUSE mount options. If the default options are OK, then `nil` can safely be provided for `options`. The FUSE server runs in a separate goroutine. This function does not block. The `Unmount` method of the returned server can be used to unmount the filesystem. See the go-fuse docs for details.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.