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
Click to show internal directories.
Click to hide internal directories.