Documentation ¶
Overview ¶
©INFINI, All Rights Reserved. * mail: contact#infini.ltd
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDataFile ¶
Types ¶
type DiskFs ¶
type DiskFs struct { Name string `json:"name"` Type DiskFsType `json:"type"` Size uint64 `json:"size"` CreateTime time.Time `json:"create_time"` Children []*DiskFs `json:"children"` }
DiskFs represents a file or directory.
func ListDiskFs ¶
type DiskFsType ¶
type DiskFsType int
DiskFsType represents the type of a file system.
const ( FileFs DiskFsType = iota DirectoryFs )
type DiskStatus ¶
type DiskStatus struct { All uint64 `json:"all"` Used uint64 `json:"used"` Free uint64 `json:"free"` Available uint64 `json:"available"` //available = free - reserved filesystem blocks(for root) }
func DiskPartitionUsage ¶
func DiskPartitionUsage(path string) (disk DiskStatus)
disk usage of path/disk
Click to show internal directories.
Click to hide internal directories.