storage

package
v0.0.0-...-4cb4cf9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Units for expressing disk space when calling storage

Variables

This section is empty.

Functions

func CheckDiskSpace

func CheckDiskSpace(filepath string, quota int) (err error)

CheckDiskSpace checks if the number of 1K blocks available on a partition containing a filepath is less than the quota.

Types

This section is empty.

Jump to

Keyboard shortcuts

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