du

package
v0.0.0-...-fc8c377 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskUsage

type DiskUsage struct {
	// contains filtered or unexported fields
}

func NewDiskUsage

func NewDiskUsage(volumePath string) *DiskUsage

Returns an object holding the disk usage of volumePath This function assumes volumePath is a valid path

func (*DiskUsage) Available

func (this *DiskUsage) Available() uint64

Total available bytes on file system to an unpriveleged user

func (*DiskUsage) Free

func (this *DiskUsage) Free() uint64

Total free bytes on file system

func (*DiskUsage) Size

func (this *DiskUsage) Size() uint64

Total size of the file system

func (*DiskUsage) Usage

func (this *DiskUsage) Usage() float32

Percentage of use on the file system

func (*DiskUsage) Used

func (this *DiskUsage) Used() uint64

Total bytes used in file system

Jump to

Keyboard shortcuts

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