package module
Version: v0.0.0-...-ac99189 Latest Latest

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

Go to latest
Published: Jul 7, 2021 License: Unlicense Imports: 1 Imported by: 29




This section is empty.


This section is empty.


This section is empty.


type DiskUsage

type DiskUsage struct {
	// contains filtered or unexported fields

DiskUsage contains usage data and provides user-friendly access methods

func NewDiskUsage

func NewDiskUsage(volumePath string) *DiskUsage

NewDiskUsages returns an object holding the disk usage of volumePath or nil in case of error (invalid path, etc)

func (*DiskUsage) Available

func (du *DiskUsage) Available() uint64

Available return total available bytes on file system to an unprivileged user

func (*DiskUsage) Free

func (du *DiskUsage) Free() uint64

Free returns total free bytes on file system

func (*DiskUsage) Size

func (du *DiskUsage) Size() uint64

Size returns total size of the file system

func (*DiskUsage) Usage

func (du *DiskUsage) Usage() float32

Usage returns percentage of use on the file system

func (*DiskUsage) Used

func (du *DiskUsage) Used() uint64

Used returns total bytes used in file system

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL