Documentation ¶
Index ¶
- Constants
- func CreateDir(target string, mode int) error
- func FileExisted(filename string) bool
- func IsDir(path string) bool
- func Mounted(mountPath string) bool
- func RunCommand(cmd string) (string, error)
- func SentrySendError(errorInfo error)
- func ServerReachable(host, port string, timeout time.Duration) bool
- func Unmount(mountPath string) error
- func WaitTimeout(wg *sync.WaitGroup, timeout int) bool
- type NodeMeta
Constants ¶
View Source
const (
NodeMetaDataFile = "/host/etc/cds/node-meta"
)
Variables ¶
This section is empty.
Functions ¶
func FileExisted ¶
FileExisted checks if a file or directory exists
func SentrySendError ¶ added in v1.4.0
func SentrySendError(errorInfo error)
func ServerReachable ¶
ServerReachable tests whether a server is connection using TCP
Types ¶
Click to show internal directories.
Click to hide internal directories.