Documentation ¶
Index ¶
- func GetAvailableSize(dir string) (availableSize int64, err error)
- func GetDirSize(path string) (size int64, err error)
- func GetMountPoint(dir string) (mountPoint string, err error)
- func GetTotalSize(dir string) (totalSize int64, err error)
- func GetUserFSQuotaUsage(path string, uid, gid uint32) (byteUsed uint64, err error)
- func Mount(source string, mountPoint string, fsType string, flags uintptr, opts string) error
- func OverlayMount(mountPoint string, lowerDirs []string, workDir, upperDir string) error
- func SetUserFSQuota(path string, limit uint64, uid, gid uint32) (err error)
- func Umount(mountPoint string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableSize ¶
GetAvailableSize returns the amount of memory used by the partition.
func GetDirSize ¶
GetDirSize returns the size of directory.
func GetMountPoint ¶
GetMountPoint returns mount point for directory.
func GetTotalSize ¶
GetTotalSize returns total partition size.
func GetUserFSQuotaUsage ¶
GetUserFSQuotaUsage gets file system user usage.
func OverlayMount ¶
OverlayMount creates mount point and mount overlay FS to it.
func SetUserFSQuota ¶
SetUserFSQuota sets file system quota for user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.