package disk
import "github.com/shirou/gopsutil/disk"
Index ¶
- Constants
- Variables
- func IOCounters() (map[string]IOCountersStat, error)
- type IOCountersStat
- type PartitionStat
- type UsageStat
- type Win32_PerfFormattedData
Constants ¶
const WaitMSec = 500
Variables ¶
var ( FileFileCompression = int64(16) // 0x00000010 FileReadOnlyVolume = int64(524288) // 0x00080000 )
Functions ¶
func IOCounters ¶
func IOCounters() (map[string]IOCountersStat, error)
Types ¶
type IOCountersStat ¶
type IOCountersStat struct { ReadCount uint64 `json:"readCount"` WriteCount uint64 `json:"writeCount"` ReadBytes uint64 `json:"readBytes"` WriteBytes uint64 `json:"writeBytes"` ReadTime uint64 `json:"readTime"` WriteTime uint64 `json:"writeTime"` Name string `json:"name"` IoTime uint64 `json:"ioTime"` SerialNumber string `json:"serialNumber"` }
func (IOCountersStat) String ¶
func (d IOCountersStat) String() string
type PartitionStat ¶
type PartitionStat struct { Device string `json:"device"` Mountpoint string `json:"mountpoint"` Fstype string `json:"fstype"` Opts string `json:"opts"` }
func Partitions ¶
func Partitions(all bool) ([]PartitionStat, error)
func (PartitionStat) String ¶
func (d PartitionStat) String() string
type UsageStat ¶
type UsageStat struct { Path string `json:"path"` Fstype string `json:"fstype"` Total uint64 `json:"total"` Free uint64 `json:"free"` Used uint64 `json:"used"` UsedPercent float64 `json:"usedPercent"` InodesTotal uint64 `json:"inodesTotal"` InodesUsed uint64 `json:"inodesUsed"` InodesFree uint64 `json:"inodesFree"` InodesUsedPercent float64 `json:"inodesUsedPercent"` }
func Usage ¶
func (UsageStat) String ¶
type Win32_PerfFormattedData ¶
type Win32_PerfFormattedData struct { Name string AvgDiskBytesPerRead uint64 AvgDiskBytesPerWrite uint64 AvgDiskReadQueueLength uint64 AvgDiskWriteQueueLength uint64 AvgDisksecPerRead uint64 AvgDisksecPerWrite uint64 }
Source Files ¶
- Version
- v2.0.0+incompatible
- Published
- Apr 7, 2016
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 19 hours ago –
Tools for package owners.