Documentation ¶
Index ¶
- func DiskUsage(path string) (*disk.UsageStat, error)
- func GetAllMemoryStats() (stats *memory.MemoryStats, err error)
- func GetMemoryUsage() (vmem *mem.VirtualMemoryStat, err error)
- func GetSwapDevices() (swapdvcs []*mem.SwapDevice, err error)
- func GetSwapUsage() (swap *mem.SwapMemoryStat, err error)
- func GetSystemInfo() (info *system.SystemStats, err error)
- func PrintDiskUsageByPath(path string) (uint64, error)
- func PrintPartitions()
- func ScanDirs(path string)
- type DiskOpRequest
- type DiskOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllMemoryStats ¶
func GetAllMemoryStats() (stats *memory.MemoryStats, err error)
func GetMemoryUsage ¶
func GetMemoryUsage() (vmem *mem.VirtualMemoryStat, err error)
func GetSwapDevices ¶
func GetSwapDevices() (swapdvcs []*mem.SwapDevice, err error)
func GetSwapUsage ¶
func GetSwapUsage() (swap *mem.SwapMemoryStat, err error)
func GetSystemInfo ¶
func GetSystemInfo() (info *system.SystemStats, err error)
func PrintDiskUsageByPath ¶
func PrintPartitions ¶
func PrintPartitions()
Types ¶
type DiskOpRequest ¶
type DiskOpRequest struct { Operation DiskOperation SourceDir string SearchGLOB string DestDir string IgnoreTypes []string IgnoreDirs []string IgnoreFiles []string }
func (DiskOpRequest) GetSourceDir ¶
func (d DiskOpRequest) GetSourceDir() string
func (DiskOpRequest) IsIgnored ¶
func (d DiskOpRequest) IsIgnored(path string) bool
func (DiskOpRequest) IsIgnoredFile ¶
func (d DiskOpRequest) IsIgnoredFile(path string) bool
func (DiskOpRequest) IsIgnoredType ¶
func (d DiskOpRequest) IsIgnoredType(path string) bool
func (DiskOpRequest) IsValid ¶
func (d DiskOpRequest) IsValid() bool
func (DiskOpRequest) String ¶
func (d DiskOpRequest) String() string
type DiskOperation ¶
type DiskOperation int64
const ( NOOP DiskOperation = iota Read COPY MOVE RENAME DELETE )
Click to show internal directories.
Click to hide internal directories.