fs

package
v0.0.0-...-88438cf Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

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

func New

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

func (*FS) Fetch

func (f *FS) Fetch(path string) 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