getziti

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyReaderToFile added in v0.29.0

func CopyReaderToFile(in io.Reader, dst string, mode os.FileMode) error

func DownloadGitHubReleaseAsset

func DownloadGitHubReleaseAsset(fullUrl string, filepath string) (err error)

DownloadGitHubReleaseAsset will download a file from the given GitHUb release area

func FindVersionAndInstallGitHubRelease

func FindVersionAndInstallGitHubRelease(zitiApp string, zitiAppGitHub string, targetOS, targetArch string, binDir string, version string, verbose bool) error

func GetLatestGitHubReleaseVersion

func GetLatestGitHubReleaseVersion(zitiApp string, verbose bool) (semver.Version, error)

func InstallGitHubRelease

func InstallGitHubRelease(zitiApp string, release *GitHubReleasesData, binDir string, targetOS, targetArch, version string) error

func InstallZiti added in v0.29.0

func InstallZiti(targetVersion, targetOS, targetArch, binDir string, verbose bool) error

func InstallZitiEdgeTunnel

func InstallZitiEdgeTunnel(targetVersion, targetOS, targetArch, binDir string, verbose bool) error

func InstallZrok added in v0.32.1

func InstallZrok(targetVersion, targetOS, targetArch, binDir string, verbose bool) error

func NewClient

func NewClient() *resty.Client

func UnTarGz added in v0.29.0

func UnTarGz(src, dest string, f func(path string) (string, bool)) error

func Unzip

func Unzip(src, dest string, filter func(path string) (string, bool)) error

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 GetLatestGitHubReleaseAsset

func GetLatestGitHubReleaseAsset(appName string, appGitHub string, version string, verbose bool) (*GitHubReleasesData, error)

func (*GitHubReleasesData) GetDownloadUrl

func (self *GitHubReleasesData) GetDownloadUrl(appName string, targetOS, targetArch string) (string, error)

Jump to

Keyboard shortcuts

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