add a bunch of methods to the client end
This commit is contained in:
parent
a5d237df2a
commit
5ab2cbd265
8 changed files with 236 additions and 17 deletions
17
request.go
17
request.go
|
|
@ -8,18 +8,32 @@ const (
|
|||
MethodInvalid Method = iota
|
||||
MethodOpenDir
|
||||
MethodGetAttr
|
||||
MethodStatFs
|
||||
MethodChmod
|
||||
MethodChown
|
||||
MethodTruncate
|
||||
MethodMknod
|
||||
MethodMkdir
|
||||
MethodUnlink
|
||||
MethodRmdir
|
||||
MethodSymlink
|
||||
MethodRename
|
||||
MethodLink
|
||||
MethodReadLink
|
||||
MethodAccess
|
||||
)
|
||||
|
||||
type Request struct {
|
||||
ID int `json:"id"`
|
||||
Method Method `json:"method"`
|
||||
Path string `json:"path"`
|
||||
Mode int32
|
||||
Mode uint32
|
||||
UID int32
|
||||
GID int32
|
||||
Size int32
|
||||
Dev int32
|
||||
Flags int32
|
||||
Offset int64
|
||||
NewPath string `json:"newpath,omitempty"`
|
||||
Attr string `json:"attr,omitempty"`
|
||||
Data []byte `json:"data,omitempty"`
|
||||
|
|
@ -38,4 +52,5 @@ type Response struct {
|
|||
Attrs []string `json:"attrs,omitempty"`
|
||||
Dirents []fuse.DirEntry `json:"dirents,omitempty"`
|
||||
LinkStr string `json:"linkstr,omitempty"`
|
||||
Statfs *fuse.StatfsOut `json:"statfs,omitempty"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue