Versions in this module Expand all Collapse all v1 v1.4.3 Jul 16, 2026 Changes in this version + func BuildRemoteInstallCommandWithMode(user string, script Script, env []EnvOverride, preset string, ...) (string, error) + func BuildRemoteInstallInLXCCommand(user string, vmid int, script Script, nonInteractive bool) (string, error) + func BuildRemoteInstallInLXCCommandWithEnv(user string, vmid int, script Script, env []EnvOverride, preset string, ...) (string, error) + func InstallScriptInLXCWithOptions(ctx context.Context, opts InstallOptions, vmid int) (int, error) type Script + SourceType string + Target string + func NormalizeScript(script Script) Script + func (s Script) SupportsGuestInstall() bool + func (s Script) SupportsNodeInstall() bool v1.4.2 Jul 3, 2026 Changes in this version + const GitHubAPIRepo + const GitHubRepo + const MetadataPocketBaseAPI + const MetadataPocketBaseBase + const RawGitHubDevRepo + const RawGitHubRepo + const ScriptCacheKeyPrefix + const ScriptListCacheKey + const ScriptListTTL + const ScriptMetadataListCacheKey + const ScriptMetadataTTL + func AllowedEnvOverrideNames() []string + func BuildInstallScriptCommand(scriptURL string) string + func BuildInstallScriptCommandWithEnv(scriptURL string, env []EnvOverride) (string, error) + func BuildInstallScriptCommandWithEnvAndPreset(scriptURL string, env []EnvOverride, preset string) (string, error) + func BuildRemoteInstallCommand(user string, script Script, env []EnvOverride, preset string) (string, error) + func InstallScript(user, nodeIP string, script Script) (int, error) + func InstallScriptInLXC(user, nodeIP string, vmid int, script Script) (int, error) + func InstallScriptWithOptions(ctx context.Context, opts InstallOptions) (int, error) + func IsSensitiveEnvOverride(name string) bool + func RawRepoForScript(script Script) string + func RawScriptURL(script Script) string + func ScriptURLExists(script Script) (bool, error) + func ShellQuote(s string) string + func ShellSingleQuote(s string) string + func ValidateConnection(user, nodeIP string) error + func ValidateEnvOverride(override EnvOverride) error + func ValidateInstallPreset(preset string) error + func WrapRemoteCommandWithBash(cmd string) string + type EnvOverride struct + Name string + Value string + func ParseEnvOverride(raw string) (EnvOverride, error) + func RedactEnvOverrides(env []EnvOverride) []EnvOverride + type GitHubContent struct + DownloadURL string + Name string + Path string + Type string + func GetScriptMetadataFiles() ([]GitHubContent, error) + type InstallOptions struct + Env []EnvOverride + Host string + JumpHost config.SSHJumpHost + Keyfile string + NonInteractive bool + Preset string + Script Script + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + User string + type Script struct + Categories []string + ConfigPath string + DateCreated string + Description string + Documentation string + InterfacePort int + IsDeleted bool + IsDev bool + IsDisabled bool + Logo string + Name string + Privileged bool + ScriptPath string + Slug string + Type string + Updateable bool + Website string + func FetchScripts() ([]Script, error) + func FindScript(scripts []Script, nameOrSlug string) (Script, error) + func GetScriptMetadata(metadataURL string) (*Script, error) + func GetScriptsByCategory(category string) ([]Script, error) + func SearchScripts(scripts []Script, query string) []Script + type ScriptCategory struct + Description string + Name string + Path string + func GetScriptCategories() []ScriptCategory