Documentation ¶
Index ¶
- func DownloadFile(url string, localPath string, callback func(totalLength, processLength int64)) error
- func ExtractFiles(keyName, sourcePath string, di *downloadInfo, ...) error
- func ExtractUnTar(filePath, targetPath string, files ...interface{}) error
- func ExtractUnZip(filePath, targetPath string, rmRootDir bool, files ...interface{}) error
- func Install(c *command.Config) error
- func UnBz2ToTar(name string, callback func(totalLength, processLength int64)) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(url string, localPath string, callback func(totalLength, processLength int64)) error
DownloadFile 下载文件
如果文件存在大小一样不再下载
func ExtractFiles ¶
func ExtractFiles(keyName, sourcePath string, di *downloadInfo, extractOSConfig map[string]interface{}) error
提取文件
func ExtractUnTar ¶
func ExtractUnZip ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.