Documentation ¶
Index ¶
- func ExeCommand(command string) (string, bool)
- func GetSubsection(first, second []string) (sub []string)
- func GetValidTargetGroupSub(src string) string
- func GetValidZookeeperPath(src string) string
- func Md5SumForFile(filename string) (string, error)
- func ReplaceFile(oldFile, curFile string) error
- func TrimSpecialChar(src string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExeCommand ¶
ExeCommand execute shell command, command like: haproxy -f config.cfg -c haproxy -f haproxy.cfg -p haproxy.pid -sf $(cat haproxy.pid)
func GetSubsection ¶
GetSubsection return slice come from first - second
func GetValidTargetGroupSub ¶
GetValidTargetGroupSub 去除/等特殊字符,/转换为-,targetGroup名字特殊字符只能是-
func GetValidZookeeperPath ¶
GetValidZookeeperPath 去除/等特殊字符,/转换为_
func Md5SumForFile ¶
Md5SumForFile calculate md5sum of file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.