github.com/mephux/docker@v1.6.0-rc5/pkg/system/stat.go (about) 1 package system 2 3 import ( 4 "syscall" 5 ) 6 7 type Stat_t struct { 8 mode uint32 9 uid uint32 10 gid uint32 11 rdev uint64 12 size int64 13 mtim syscall.Timespec 14 } 15 16 func (s Stat_t) Mode() uint32 { 17 return s.mode 18 } 19 20 func (s Stat_t) Uid() uint32 { 21 return s.uid 22 } 23 24 func (s Stat_t) Gid() uint32 { 25 return s.gid 26 } 27 28 func (s Stat_t) Rdev() uint64 { 29 return s.rdev 30 } 31 32 func (s Stat_t) Size() int64 { 33 return s.size 34 } 35 36 func (s Stat_t) Mtim() syscall.Timespec { 37 return s.mtim 38 } 39 40 func (s Stat_t) GetLastModification() syscall.Timespec { 41 return s.Mtim() 42 }