Documentation ¶
Index ¶
- func CheckPermissionsToDir(dirpath string) bool
- func Contains[T comparable](slice []T, element T) bool
- func DownloadFile(output, url string) error
- func FileExists(path string) bool
- func FindBinary(path string) (binaryPath, binaryName string, err error)
- func GitHubStringToRepo(repoString string) (owner, repo, version string, err error)
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermissionsToDir ¶
CheckPermissionsToDir checks if instl can write to a directory
func Contains ¶ added in v1.11.0
func Contains[T comparable](slice []T, element T) bool
Contains checks if a slice contains an element
func DownloadFile ¶
DownloadFile downloads a file to tmp and displays a progressbar. The file will be moved to output directory when downloading is finished.
func FindBinary ¶
FindBinary tries to find a binary in the release asset.
func GitHubStringToRepo ¶
Types ¶
type WriteCounter ¶
type WriteCounter struct { Total uint64 // contains filtered or unexported fields }
WriteCounter counts the number of bytes written to it.
Click to show internal directories.
Click to hide internal directories.