Documentation
¶
Index ¶
- func DownloadFileFromURL(url string) (string, error)
- func ExtractArchive(toolName, toolVersion, archivePath string) (string, error)
- func GetCWD() (string, error)
- func MoveBinaryToToolCache(toolName, toolVersion, binaryPath string) (string, error)
- func MoveFolderToToolCache(toolName, toolVersion, toolFolderPath string, binaries []string) (string, error)
- type MachineInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFileFromURL ¶
Given a URL path to a file, downloads it to a cached location on disk
func ExtractArchive ¶
extracts an arbitrary archive to a folder on disk
func MoveBinaryToToolCache ¶
Given info about a specific tool that's been successfully downloaded and extracted, updates its chmod permissions and moves it to the correct cache location
func MoveFolderToToolCache ¶
func MoveFolderToToolCache(toolName, toolVersion, toolFolderPath string, binaries []string) (string, error)
some tools aren't good at operating as a single, standalone binary. that's where this function can be used: to copy all of the extracted contents to the tool cache. it requires a few more pieces to define, namely, the folder that needs to be moved, as well as an array of binary files that all need to have their execution permissions updated to 0755
Types ¶
type MachineInfo ¶
func GetMachineInfo ¶
func GetMachineInfo() *MachineInfo
Determines information about the machine where glipglop is currently executing