Documentation ¶
Index ¶
- func FormatDisk(diskPath string, filesystemType string) error
- func GetDiskUsage(path string) (used uint64, size uint64, err error)
- func IsDiskMounted(diskPath string) (bool, error)
- func ListDisks() ([]lsblk.BlockDevice, error)
- func ListDisksRoute(w http.ResponseWriter, req *http.Request)
- func ListMounts() ([]mount.MountPoint, error)
- func ListMountsRoute(w http.ResponseWriter, req *http.Request)
- func MountDisk(diskPath string, mountPath string) error
- func UnmountDisk(mountPath string) error
- type BlockDevice
- type DiskInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDisk ¶
func ListDisks ¶
func ListDisks() ([]lsblk.BlockDevice, error)
func ListDisksRoute ¶
func ListDisksRoute(w http.ResponseWriter, req *http.Request)
func ListMounts ¶
func ListMounts() ([]mount.MountPoint, error)
ListMounts lists all the mount points on the system
func ListMountsRoute ¶
func ListMountsRoute(w http.ResponseWriter, req *http.Request)
Types ¶
type BlockDevice ¶
type BlockDevice struct { lsblk.BlockDevice RealChildren []*BlockDevice Parent *BlockDevice }
Click to show internal directories.
Click to hide internal directories.