package
0.0.0-20241127024213-8406435ce349
Repository: https://github.com/crackeer/go-cmd.git
Documentation: pkg.go.dev
# Functions
DecryptFile 使用AES算法解密文件
@param inputFile @param outputFile @param key @return error.
AesEncryptFile
@param inputFile @param outputFile @param key @return error.
AllGetParams ..
AllHeader
@param ctx @return map.
AllParams
@param ctx @return map.
AllPostParams ..
Base64Decode
@param value @return string.
BuildQueryRaws
@param query @return string @return []interface{}.
CreateData
@param db @param table @param data @return error.
CreateTarFile ..
DefaultProgressBarKeeper
@param total @param message @return *ProgressBarKeeper @return error.
DeleteDataByID
@param db @param table @param id @return error.
DeleteMapSliceKeys
@param list @param keys @return []map.
DiffMapSlice
@param oldFields @param newFields @param keys @return []map.
DoResponseJSON
@return gin.HandlerFunc.
DownloadTo
@param urlString @param target @return error.
EncodeResourceCode
@param customID @param teamID @param resourceType @return string @return error.
ExecDockerSave ..
execGitCloneCommand
@param workDir @param gitURL @param branch @param codeFolder @return error.
execShCommand
@param workDir @param shFile @param envs @return error.
ExecSQLiteSQL
@param db @param sql @return error.
ExtractSomeString
@param value @param matchFunc @return []string.
ExtractTarFile
@param tarFile @param destDir @return error.
ExtractURL
@param value @param matchFunc @return []string.
Failure ..
FileExists
@param filename @return bool.
No description provided by the author
No description provided by the author
No description provided by the author
GetCreateTableSQL
@param gormDB @param table @return string.
GetDeviceSN
@return string.
No description provided by the author
GetFileMD5
@param pathName @return string @return error.
GetFiles
@param folder @return []string.
GetFilesMap
@param fileDir @return map.
GetGormDB
@param database @return *gorm.DB @return error.
No description provided by the author
No description provided by the author
GetInt64ValFromMap
@param container @param key @return int64.
getJSONResponse
@param ctx @return *JSONResponse @return bool.
No description provided by the author
No description provided by the author
No description provided by the author
GetMySQLTableFields
@param gormDB @param table @return []TableDesc.
GetMySQLTables
@param gormDB @return []string.
No description provided by the author
No description provided by the author
GetPxeServiceVersion
@return string.
GetSQLiteTables
@param db @return []string.
GetStringValFromMap
@param container @param key @return string.
HMACSha1
@param key @param message @return string.
JsonDecode
@param raws @param dest @return error.
No description provided by the author
MakeTmpWorkDir
@param tag @return string.
MakeVarLogDir MakeVarLog
@param tag @return string.
MakeVarLogFile
@param tag @return string.
MD5 ...
Mount
@param args @return error.
OTAFailure
@param ctx @param code @param message.
OTASuccess
@param ctx @param data.
Query
@param ctx @param arge @return string.
QueryAllParams
@param ctx @return map.
QueryList
@param db @param table @param where @return []map[string]interface{} @return error.
ReadConfig
@param dest @return error.
ReadCSV @param fileName @return [][]string @return error.
ReadCSVWithHeader @param fileName @return []map[string]interface{} @return error.
ReadFileAs
@param path @param v @return error.
ResponseJSON ..
RunCommand
@param ctx @param cmd @return error.
RunDD @param file
@param args @return []byte @return error.
RunXXD ..
SetResponse ..
Sha1Sum
@param raws @return string.
SplitArgs @param args @return []string.
Success ..
TarWriteFile ..
TarWriteFiles ..
No description provided by the author
UnMount
@param node @return error.
Unzip ..
UpdateDataByID ..
Zip
@param srcDir @param dest @return error.
# Constants
No description provided by the author
CodeSuccess.
MessageEmptyResponse.
MessageSuccess.
# Structs
JSONResspone.
ProgressBarKeeper.
PxeServiceVersion.
TableDesc.