mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
Every variable the code reads or sets is now ZT_* with the same suffix, with no aliases for the old names. User-facing text, default CSR fields and error messages follow, as do the identifiers on the lines that changed. Three names keep their spelling because another program owns them: the C tunneler reads ZITI_LOG and ZITI_TIME_FORMAT, and the Go SDK reads ZITI_TRACE_ENABLED. Co-authored-by: Hanzo Dev <[email protected]>
26 lines
988 B
Go
26 lines
988 B
Go
package getzt
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
c "github.com/hanzozt/zt/v2/zt/constants"
|
|
)
|
|
|
|
func InstallZiti(targetVersion, targetOS, targetArch, binDir string, verbose bool) error {
|
|
fmt.Println("Attempting to install '" + c.ZT + "' version: " + targetVersion)
|
|
return FindVersionAndInstallGitHubRelease(
|
|
c.HanzoZTOrg, c.ZT, c.ZT, 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.HanzoZTOrg, 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)
|
|
}
|