forked from fjballest/clive
/
ops.go
62 lines (50 loc) · 1.33 KB
/
ops.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
package zx
// part of zx.Tree; see the def. there.
type Namer interface {
Name() string
}
// part of zx.Tree; see the def. there.
type Stater interface {
Stat(path string) chan Dir
}
// part of zx.Tree; see the def. there.
type Closer interface {
Close(e error)
}
// part of zx.Tree; see the def. there.
type Getter interface {
Get(path string, off, count int64, pred string) <-chan []byte
}
// part of zx.Tree; see the def. there.
type TreeFinder interface {
Find(rid, fpred, spref, dpref string, depth int) <-chan Dir
}
// part of zx.Tree; see the def. there.
type TreeFindGeter interface {
FindGet(rid, fpred, spref, dpref string, depth int) <-chan DirData
}
// part of zx.RWTree; see the def. there.
type Putter interface {
Put(path string, d Dir, off int64, dc <-chan []byte, pred string) chan Dir
}
// part of zx.RWTree; see the def. there.
type Mkdirer interface {
Mkdir(path string, d Dir) chan error
}
// part of zx.RWTree; see the def. there.
type Mover interface {
Move(from, to string) chan error
}
// part of zx.RWTree; see the def. there.
type Remover interface {
Remove(path string) chan error
RemoveAll(path string) chan error
}
// part of zx.RWTree; see the def. there.
type Wstater interface {
Wstat(path string, d Dir) chan error
}
type Debugger interface {
// Return a pointer to the debug flag
Debug() *bool
}