spacetracker

package
v0.0.0-...-d5261e2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

the package for catch min free space left on device after tracking started

Index

Constants

View Source
const (
	B  = 1
	KB = 1024 * B
	MB = 1024 * KB
	GB = 1024 * MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceTracker

type SpaceTracker struct {
	StartSpace    uint64
	MinSpaceBytes uint64
	// contains filtered or unexported fields
}

func NewSpaceTracker

func NewSpaceTracker(period time.Duration) *SpaceTracker

func (*SpaceTracker) MinSpaceMB

func (t *SpaceTracker) MinSpaceMB() int

func (*SpaceTracker) PrintReport

func (t *SpaceTracker) PrintReport()

func (*SpaceTracker) UsedSpaceMB

func (t *SpaceTracker) UsedSpaceMB() int

Jump to

Keyboard shortcuts

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