status

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

©INFINI, All Rights Reserved. * mail: contact#infini.ltd

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDataFile

func DeleteDataFile(path string) error

func DirSize

func DirSize(path string) (uint64, error)

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

func ListDiskFs(path string) ([]*DiskFs, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL