forked from pachyderm/pachyderm
/
fuse.go
25 lines (22 loc) · 790 Bytes
/
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
package fuse
import (
pfsclient "github.com/pachyderm/pachyderm/src/client/pfs"
)
type Mounter interface {
// Mount mounts a repository available as a fuse filesystem at mountPoint.
// Mount blocks and will return once the volume is unmounted.
Mount(
mountPoint string,
shard *pfsclient.Shard,
commitMounts []*CommitMount, // nil means mount all commits
ready chan 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 pfsclient.APIClient) Mounter {
return newMounter(address, apiClient)
}