Files
zeekayandHanzo Dev cd4e9a11bb Rename the environment contract to ZT_
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]>
2026-09-23 00:57:09 -07:00

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)
}