Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BucketKey is the name of the bucket where mounts are stored BucketKey = "mounts" // EntryKey is the name of the entry where the list of mounts are stored EntryKey = "mounts" )
Functions ¶
This section is empty.
Types ¶
type Mounts ¶
Mounts is a struct that can be used to access the mounts on this system
func New ¶
New will create a new Mounts struct based on the given bolt database. It offers methods to add/remove and list all mounts registered with Sledgehammer
func (*Mounts) Add ¶
Add will add the given path as a mount to Sledgehammer. Tools will then be able to access files under this path while they are running
Click to show internal directories.
Click to hide internal directories.