github.com/wlan0/docker@v1.5.0/pkg/system/stat.go (about)

     1  package system
     2  
     3  import (
     4  	"syscall"
     5  )
     6  
     7  type Stat 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) Mode() uint32 {
    17  	return s.mode
    18  }
    19  
    20  func (s Stat) Uid() uint32 {
    21  	return s.uid
    22  }
    23  
    24  func (s Stat) Gid() uint32 {
    25  	return s.gid
    26  }
    27  
    28  func (s Stat) Rdev() uint64 {
    29  	return s.rdev
    30  }
    31  
    32  func (s Stat) Size() int64 {
    33  	return s.size
    34  }
    35  
    36  func (s Stat) Mtim() syscall.Timespec {
    37  	return s.mtim
    38  }
    39  
    40  func (s Stat) GetLastModification() syscall.Timespec {
    41  	return s.Mtim()
    42  }