Documentation ¶
Index ¶
- Constants
- func AddVolume(volumeName string) (volume types.Volume, err error)
- func AnalyzeVolume(volume *types.Volume) (name string, size int64, updated time.Time, err error)
- func GetFiles(root string) ([]string, error)
- func GetFilesPathSize(path string) (filelist map[string]int64, modifiedTime map[string]time.Time, totalsize int64, ...)
- func IECByteFormat(num_in uint64) string
- func ListVolumes() (volumeList []*types.Volume, err error)
- func RemoveVolume(volumeName string) (err error)
- func SIByteFormat(num_in uint64) string
- func VolumeExpiriment()
- func VolumePath(volumeName string) (mountPath string, err error)
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 AnalyzeVolume ¶
func GetFiles ¶
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 IECByteFormat ¶
IECFormat prints bytes in the International Electrotechnical Commission format
func ListVolumes ¶
func RemoveVolume ¶
func SIByteFormat ¶
SIFormat prints bytes in the International System of Units format
func VolumeExpiriment ¶
func VolumeExpiriment()
func VolumePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.