 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRootDisk ¶
IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/"
Types ¶
type Info ¶
type Info struct {
	Total  uint64
	Free   uint64
	Files  uint64
	Ffree  uint64
	FSType string
	// Usage is calculated per tenant.
	Usage uint64
}
    Info stat fs struct is container which holds following values Total - total size of the volume / disk Free - free size of the volume / disk Files - total inodes available Ffree - free inodes available FSType - file system type
type Performance ¶
type Performance struct {
	Path       string  `json:"path"`
	Error      string  `json:"error,omitempty"`
	WriteSpeed float64 `json:"writeSpeed"`
	ReadSpeed  float64 `json:"readSpeed"`
}
    Performance holds informantion about read and write speed of a disk
func GetPerformance ¶
func GetPerformance(path string) Performance
GetPerformance returns given disk's read and write performance
 Click to show internal directories. 
   Click to hide internal directories.