internal

package
v0.0.0-...-a0a0b31 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileFromURL

func DownloadFileFromURL(url string) (string, error)

Given a URL path to a file, downloads it to a cached location on disk

func ExtractArchive

func ExtractArchive(toolName, toolVersion, archivePath string) (string, error)

extracts an arbitrary archive to a folder on disk

func GetCWD

func GetCWD() (string, error)

gets the CWD for the process

func MoveBinaryToToolCache

func MoveBinaryToToolCache(toolName, toolVersion, binaryPath string) (string, error)

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

type MachineInfo struct {
	Arch        string
	OS          string
	Unsupported bool
}

func GetMachineInfo

func GetMachineInfo() *MachineInfo

Determines information about the machine where glipglop is currently executing

Jump to

Keyboard shortcuts

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