agenttool

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPathBeLocked added in v1.5.0

func IsPathBeLocked(path string) bool

func IsTarCommandExist

func IsTarCommandExist() bool

func LockPath added in v1.5.0

func LockPath(path string) error

func Tar

func Tar(tarFile, tarDir string) error

Tar is the forth step of reource agent do

可选方案: a. tar 目标地址直接指向 NFS b. 在容器内制作 tar,移动至 NFS 经过测试,选用 a 速度更快

func UnLockPath added in v1.5.0

func UnLockPath(path string) error

func UnTar

func UnTar(tarFile, unTarDir string) error

func WaitingPathUnlock added in v1.5.0

func WaitingPathUnlock(path string, maxLimitSec int) error

WaitingPathUnlock check path is locked at first, then check every second until unlocked or time limited

Types

This section is empty.

Jump to

Keyboard shortcuts

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