Documentation
¶
Index ¶
- func GetDiskSize(path string) (datasize.ByteSize, error)
- func IsPathBeLocked(path string) bool
- func IsTarCommandExist() bool
- func LockPath(path string) error
- func Mv(sourceDir, destDir string) error
- func Tar(tarFile, tarDir string) error
- func UnLockPath(path string) error
- func UnTar(tarFile, unTarDir string) error
- func WaitingPathUnlock(path string, maxLimitSec int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiskSize ¶
GetDiskSize if dir recursion sum size, file return size directly. return size unit is Byte
func IsPathBeLocked ¶
func IsTarCommandExist ¶
func IsTarCommandExist() bool
func Tar ¶
Tar is the forth step of reource agent do
可选方案: a. tar 目标地址直接指向 NFS b. 在容器内制作 tar,移动至 NFS 经过测试,选用 a 速度更快
func UnLockPath ¶
func WaitingPathUnlock ¶
WaitingPathUnlock check path is locked at first, then check every second until unlocked or time limited
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.