-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.go
56 lines (40 loc) · 1.27 KB
/
main.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package main
import (
"context"
"github.com/rexray/gocsi"
"github.com/rexray/csi-vfs/provider"
"github.com/rexray/csi-vfs/service"
)
// main is ignored when this package is built as a go plug-in
func main() {
gocsi.Run(
context.Background(),
service.Name,
"A Virtual Filesystem (VFS) Container Storage Interface (CSI) "+
"Storage Plug-in (SP)",
usage,
provider.New())
}
const usage = ` X_CSI_VFS_BINDFS
Specifies the path to bindfs, a program that provides bind mounting
via FUSE on operating systems that do not natively support bind
mounts.
The default value is bindfs.
X_CSI_VFS_DATA
The path to the SP's data directory.
The default value is $HOME/.csi-vfs.
X_CSI_VFS_DEV
The path to the SP's device directory.
The default value is $X_CSI_VFS_DATA/dev.
X_CSI_VFS_MNT
The path to the SP's mount directory.
The default value is $X_CSI_VFS_DATA/mnt.
X_CSI_VFS_VOL
The path to the SP's volume directory.
The default value is $X_CSI_VFS_DATA/vol.
X_CSI_VFS_VOL_GLOB
The file glob pattern used to list the files inside the
directory $X_CSI_VFS_VOL. Matching files are considered
volumes.
The default value is *.
`