-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.go
63 lines (54 loc) · 1018 Bytes
/
requests.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
57
58
59
60
61
62
63
package resonatefuse
import (
"os"
"time"
)
type CreateHook func(*CreateRequest) error
type CreateRequest struct {
Path string
Name string
Mode os.FileMode
}
type WriteHook func(*WriteRequest) error
type WriteRequest struct {
Path string
Data []byte
Offset int64
}
type RemoveHook func(*RemoveRequest) error
type RemoveRequest struct {
Path string
Name string
}
type RenameHook func(*RenameRequest) error
type RenameRequest struct {
Path string
OldName string
NewName string
NewDir string
}
type MkdirHook func(*MkdirRequest) error
type MkdirRequest struct {
Path string
Name string
Mode os.FileMode
}
type LinkHook func(*LinkRequest) error
type LinkRequest struct {
Path string
NewName string
Old string
}
type SymlinkHook func(*SymlinkRequest) error
type SymlinkRequest struct {
Path string
Target string
NewName string
}
type SetattrHook func(*SetattrRequest) error
type SetattrRequest struct {
Path string
Mode os.FileMode
Atime time.Time
Mtime time.Time
}