forked from pachyderm/pachyderm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fuse.go
34 lines (30 loc) · 1 KB
/
fuse.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package fuse
import "github.com/pachyderm/pachyderm/src/client"
// A Mounter mounts fuse filesystems.
type Mounter interface {
// Mount mounts a repository available as a fuse filesystem at mountPoint.
// Mount blocks and will return once the volume is unmounted.
MountAndCreate(
mountPoint string,
commitMounts []*CommitMount, // nil means mount all commits
ready chan bool,
debug bool,
// if oneMount is true, mount only one CommitMount
oneMount bool,
) error
Mount(
mountPoint string,
commitMounts []*CommitMount, // nil means mount all commits
ready chan bool,
debug bool,
oneMount bool,
) error
// Unmount unmounts a mounted filesystem (duh).
// There's nothing special about this unmount, it's just doing a syscall under the hood.
Unmount(mountPoint string) error
}
// NewMounter creates a new Mounter.
// Address can be left blank, it's used only for aesthetic purposes.
func NewMounter(address string, apiClient *client.APIClient) Mounter {
return newMounter(address, apiClient)
}