Documentation ¶
Index ¶
- func FormatDisk(diskPath string, filesystemType string) error
- func GetDiskSize(name string) (uint64, error)
- func GetDiskUsage(path string) (uint64, error)
- func IsDiskMounted(diskPath string) (bool, 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 DiskInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDisk ¶
func GetDiskSize ¶
func GetDiskUsage ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.