installer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(destinationPath string, url string) (string, error)

DownloadFile will download a url to a local file

func ExtractFiles

func ExtractFiles(archivePath, destination string, filesToExtract []string, patternToExtract string, stripPath bool) ([]string, error)

ExtractFiles will extract a list of files from given archive to a destination that must be a directory

if filesToExtract list is nil and patternToExtract is empty, all files will be extracted

if destination does not exist, a directory will be created

func WriteExtractedFile

func WriteExtractedFile(source archiver.File, destination string) error

WriteExtractedFile writes extracted file to destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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