mirror of
https://github.com/hanzozt/zt.git
synced 2026-11-03 05:01:58 +00:00
25 lines
999 B
Go
25 lines
999 B
Go
package getziti
|
|
|
|
import (
|
|
"fmt"
|
|
c "github.com/openziti/ziti/ziti/constants"
|
|
)
|
|
|
|
func InstallZiti(targetVersion, targetOS, targetArch, binDir string, verbose bool) error {
|
|
fmt.Println("Attempting to install '" + c.ZITI + "' version: " + targetVersion)
|
|
return FindVersionAndInstallGitHubRelease(
|
|
c.OpenZitiOrg, c.ZITI, c.ZITI, targetOS, targetArch, binDir, targetVersion, verbose)
|
|
}
|
|
|
|
func InstallZrok(targetVersion, targetOS, targetArch, binDir string, verbose bool) error {
|
|
fmt.Println("Attempting to install '" + c.ZROK + "' version: " + targetVersion)
|
|
return FindVersionAndInstallGitHubRelease(
|
|
c.OpenZitiOrg, c.ZROK, c.ZROK, targetOS, targetArch, binDir, targetVersion, verbose)
|
|
}
|
|
|
|
func InstallCaddy(targetVersion, targetOS, targetArch, binDir string, verbose bool) error {
|
|
fmt.Println("Attempting to install '" + c.Caddy + "' version: " + targetVersion)
|
|
return FindVersionAndInstallGitHubRelease(
|
|
c.CaddyOrg, c.Caddy, c.Caddy, targetOS, targetArch, binDir, targetVersion, verbose)
|
|
}
|