install

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 ExtractUnTar(filePath, targetPath string, files ...interface{}) error

func ExtractUnZip

func ExtractUnZip(filePath, targetPath string, rmRootDir bool, files ...interface{}) error

func Install

func Install(c *command.Config) error

func UnBz2ToTar

func UnBz2ToTar(name string, callback func(totalLength, processLength int64)) (string, error)

释放bz2文件到tar

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL