Documentation ¶
Index ¶
- func ClearSignals(sgn chan os.Signal)
- func CopyFile(src, dst string) error
- func DoesFileExists(name string) (bool, error)
- func DownloadToFile(downloadURL, filePath string) error
- func ExtractTarGzFile(sourceFile, target string) error
- func GetAbsolutePath(relativePath string) string
- func GetDaysSinceRFC3339String(date string) (int, error)
- func GetLatestReleaseFromGitHub(repoName string) (*gitHubReleaseType, error)
- func GetPathToCurrentBinary() (string, error)
- func HasWritePermissionToFile(filePath string) (bool, error)
- func OpenURLInBrowser(url string)
- func RenderProgressSpinnerWithMessages(complete, quit chan bool, loadMessages, afterLoadMessages []string)
- func RunOnCtrlC(cleanupFn func()) chan os.Signal
- func SafeMoveFile(source, target string, showLogs bool) (err error)
- func ShowConfirmationPrompt(msg string) (bool, error)
- func VerifyLicenseJSON(pathToFile string) error
- func WaitAndOpenURL(url string, sgn chan bool, interval int)
- func WaitForResponsiveURL(url string, intervalSeconds int)
- type LicenseFileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSignals ¶
func DoesFileExists ¶
func DownloadToFile ¶
func ExtractTarGzFile ¶
func GetAbsolutePath ¶
func GetPathToCurrentBinary ¶
func OpenURLInBrowser ¶
func OpenURLInBrowser(url string)
func RunOnCtrlC ¶
func SafeMoveFile ¶
func ShowConfirmationPrompt ¶
func VerifyLicenseJSON ¶
func WaitAndOpenURL ¶
func WaitForResponsiveURL ¶
Ignores all error and waits for URL to be responsive by sending HEAD request every intervalSeconds
Types ¶
type LicenseFileType ¶
Click to show internal directories.
Click to hide internal directories.