Documentation
¶
Index ¶
- func Generate(installSpec *spec.InstallSpec) ([]byte, error)
- func GenerateRunner(installSpec *spec.InstallSpec, targetVersion string) ([]byte, error)
- func GenerateWithScriptType(installSpec *spec.InstallSpec, targetVersion, scriptType string) ([]byte, error)
- func GenerateWithVersion(installSpec *spec.InstallSpec, targetVersion string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(installSpec *spec.InstallSpec) ([]byte, error)
Generate creates the installer shell script content based on the InstallSpec. The generated script will dynamically determine OS, Arch, and Version at runtime.
func GenerateRunner ¶ added in v0.6.0
func GenerateRunner(installSpec *spec.InstallSpec, targetVersion string) ([]byte, error)
GenerateRunner creates a runner shell script that downloads and runs the binary without installing
func GenerateWithScriptType ¶ added in v0.6.0
func GenerateWithScriptType(installSpec *spec.InstallSpec, targetVersion, scriptType string) ([]byte, error)
GenerateWithScriptType creates a shell script based on the specified script type
func GenerateWithVersion ¶ added in v0.0.12
func GenerateWithVersion(installSpec *spec.InstallSpec, targetVersion string) ([]byte, error)
GenerateWithVersion creates the installer shell script content based on the InstallSpec. If targetVersion is specified, the script will be generated for that specific version only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.