Jiri Simsa | 5293dcb | 2014-05-10 09:56:38 -0700 | [diff] [blame] | 1 | package inspector |
2 | |||||
3 | type Details struct { | ||||
4 | Name string | ||||
5 | Size int64 | ||||
6 | Mode uint32 | ||||
7 | // TODO: add native time format to the idl+vom | ||||
8 | // Seconds since the start of the Unix epoch | ||||
9 | ModUnixSecs int64 | ||||
10 | // Nanoseconds in the current second | ||||
11 | ModNano int32 | ||||
12 | IsDir bool | ||||
13 | } | ||||
14 | |||||
15 | type Inspector interface { | ||||
16 | Ls(Glob string) stream<_, string> error | ||||
17 | LsDetails(Glob string) stream<_, Details> error | ||||
18 | } |