Documentation ¶
Index ¶
- Variables
- func CallRestAPI(url string, jsonReq interface{}) ([]byte, error)
- func CheckFileIsExist(filename string) bool
- func ExecCmd(scriptFile, cmdString string) ([]byte, error)
- func ExecScript(scriptPath string) ([]byte, error)
- func GBK2UTF8(strGBK string) (strUTF8 string)
- func InitConsoleLog()
- func InitFileLog()
- func ListDir(dirPth string) (files []string, err error)
- func ListFiles(dirPth string, suffix string, onlyReturnFileName bool) (files []string, err error)
- func PingLoop(host string, pkgCnt int, timeout int) bool
- func ReportProgress(installProgress float64, sn, title, installLog string, host string) bool
- func ToJsonString(v interface{}) string
- func UTF82GBK(strUTF8 string) (strGBK string)
- type ISOTime
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logs.BeeLogger
Functions ¶
func CallRestAPI ¶
CallRestAPI 调用restful api
func CheckFileIsExist ¶
func InitConsoleLog ¶
func InitConsoleLog()
func InitFileLog ¶
func InitFileLog()
func ReportProgress ¶
ReportProgress 上报执行结果
func ToJsonString ¶
func ToJsonString(v interface{}) string
Types ¶
type ISOTime ¶
ISOTime 标准库Time的别名类型。用于格式化为ISO8601标准的时间(形如'2015-09-09 09:09:09')。
func UnixSecToISOTime ¶
UnixSecToISOTime UNIX秒转化成ISOTime类型
func (ISOTime) MarshalJSON ¶
MarshalJSON 序列化,实现json.Marshaller接口
func (ISOTime) MarshalYAML ¶
MarshalYAML 序列化成YAML
func (*ISOTime) UnmarshalJSON ¶
UnmarshalJSON 反序列化,实现json.Unmarshaler接口
Click to show internal directories.
Click to hide internal directories.