volume

package
v0.0.0-...-7445724 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FiveGB  int64 = 5000000000 // Base10 - 1000
	FiveGiB int64 = 5368709000 // Base2 - 1024
)

We will use the FiveGiB limit for dynamic transfer limit

Variables

This section is empty.

Functions

func AddVolume

func AddVolume(volumeName string) (volume types.Volume, err error)

func AnalyzeVolume

func AnalyzeVolume(volume *types.Volume) (name string, size int64, updated time.Time, err error)

func GetFiles

func GetFiles(root string) ([]string, error)

Returns the names of the subdirectories (including their paths) that match the specified search pattern in the specified directory. func GetDirectories(root, pattern string) ([]string, error) {

func GetFilesPathSize

func GetFilesPathSize(path string) (filelist map[string]int64, modifiedTime map[string]time.Time, totalsize int64, err error)

func IECByteFormat

func IECByteFormat(num_in uint64) string

IECFormat prints bytes in the International Electrotechnical Commission format

func ListVolumes

func ListVolumes() (volumeList []*types.Volume, err error)

func RemoveVolume

func RemoveVolume(volumeName string) (err error)

func SIByteFormat

func SIByteFormat(num_in uint64) string

SIFormat prints bytes in the International System of Units format

func VolumeExpiriment

func VolumeExpiriment()

func VolumePath

func VolumePath(volumeName string) (mountPath string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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