Documentation ¶
Index ¶
- func CopyReaderToFile(in io.Reader, dst string, mode os.FileMode) error
- func DownloadGitHubReleaseAsset(fullUrl string, filepath string) (err error)
- func FindVersionAndInstallGitHubRelease(zitiApp string, zitiAppGitHub string, targetOS, targetArch string, ...) error
- func GetLatestGitHubReleaseVersion(zitiApp string, verbose bool) (semver.Version, error)
- func InstallGitHubRelease(zitiApp string, release *GitHubReleasesData, binDir string, ...) error
- func InstallZiti(targetVersion, targetOS, targetArch, binDir string, verbose bool) error
- func InstallZitiEdgeTunnel(targetVersion, targetOS, targetArch, binDir string, verbose bool) error
- func InstallZrok(targetVersion, targetOS, targetArch, binDir string, verbose bool) error
- func NewClient() *resty.Client
- func UnTarGz(src, dest string, f func(path string) (string, bool)) error
- func Unzip(src, dest string, filter func(path string) (string, bool)) error
- type GitHubReleasesData
- func GetHighestVersionGitHubReleaseInfo(appName string, verbose bool) (*GitHubReleasesData, error)
- func GetHighestVersionRelease(appName string, releases []*GitHubReleasesData) (*GitHubReleasesData, error)
- func GetLatestGitHubReleaseAsset(appName string, appGitHub string, version string, verbose bool) (*GitHubReleasesData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyReaderToFile ¶ added in v0.29.0
func DownloadGitHubReleaseAsset ¶
DownloadGitHubReleaseAsset will download a file from the given GitHUb release area
func InstallGitHubRelease ¶
func InstallGitHubRelease(zitiApp string, release *GitHubReleasesData, binDir string, targetOS, targetArch, version string) error
func InstallZiti ¶ added in v0.29.0
func InstallZitiEdgeTunnel ¶
func InstallZrok ¶ added in v0.32.1
Types ¶
type GitHubReleasesData ¶
type GitHubReleasesData struct { Version string `json:"tag_name"` SemVer semver.Version Assets []struct { BrowserDownloadURL string `json:"browser_download_url"` } }
GitHubReleasesData is used to parse the '/releases/latest' response from GitHub
func GetHighestVersionGitHubReleaseInfo ¶
func GetHighestVersionGitHubReleaseInfo(appName string, verbose bool) (*GitHubReleasesData, error)
func GetHighestVersionRelease ¶
func GetHighestVersionRelease(appName string, releases []*GitHubReleasesData) (*GitHubReleasesData, error)
func (*GitHubReleasesData) GetDownloadUrl ¶
func (self *GitHubReleasesData) GetDownloadUrl(appName string, targetOS, targetArch string) (string, error)
Click to show internal directories.
Click to hide internal directories.