helper

package
v0.0.0-...-fc2da35 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendExports

func AppendExports(line string) error

func AvailableBrick

func AvailableBrick() (string, error)

func ExportsExist

func ExportsExist(line string) (bool, error)

func MoveFile

func MoveFile(sourcePath string, destPath string) error
func Symlink(sourcePath string, destPath string) error

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 https://github.com/ricochet2200/go-disk-usage/blob/master/du/diskusage.go

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