fs

package
v0.0.0-...-cb82286 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPath = errors.New("path is missing")

Functions

This section is empty.

Types

type FS

type FS struct {
	Total uint64
	Free  uint64
	Used  uint64
	Path  string
	F     fetchFunc
}

func New

func New(path string) (*FS, error)

func (*FS) Fetch

func (f *FS) Fetch() error

Fetch updates the FS struct woth new values

func (*FS) FreeSpaceInGibibytes

func (f *FS) FreeSpaceInGibibytes() float64

func (*FS) FreeSpaceInKibibytes

func (f *FS) FreeSpaceInKibibytes() float64

func (*FS) FreeSpaceInMebibytes

func (f *FS) FreeSpaceInMebibytes() float64

func (*FS) TotalSpaceInGibibytes

func (f *FS) TotalSpaceInGibibytes() float64

func (*FS) TotalSpaceInKibibytes

func (f *FS) TotalSpaceInKibibytes() float64

func (*FS) TotalSpaceInMebibytes

func (f *FS) TotalSpaceInMebibytes() float64

func (*FS) UsedSpaceInGibibytes

func (f *FS) UsedSpaceInGibibytes() float64

func (*FS) UsedSpaceInKibibytes

func (f *FS) UsedSpaceInKibibytes() float64

func (*FS) UsedSpaceInMebibytes

func (f *FS) UsedSpaceInMebibytes() float64

Jump to

Keyboard shortcuts

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