Versions in this module Expand all Collapse all v0 v0.1.1 Apr 19, 2026 v0.1.0 Apr 19, 2026 Changes in this version + const AmdUrl + const ArmUrl + const BinNamePlaceholder + var Script string + func GenerateScript(script string, params *Params) (string, error) + func Inject(opts InjectOptions) (bool, error) + type DownloadURLs struct + Amd string + Arm string + Base string + func NewDownloadURLs(baseUrl string) *DownloadURLs + type ExecFunc func(ctx context.Context, command string, stdin io.Reader, stdout io.Writer, ...) error + type InjectOptions struct + Ctx context.Context + Exec ExecFunc + LocalFile LocalFile + Log log.Logger + ScriptParams *Params + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Timeout time.Duration + type LocalFile func(arm bool) (io.ReadCloser, error) + type Params struct + AgentRemotePath string + Command string + DownloadURLs *DownloadURLs + ExistsCheck string + PreferAgentDownload bool + ShouldChmodPath bool + func (p *Params) ChmodPath() string + func (p *Params) InstallDir() string + func (p *Params) InstallFilename() string + func (p *Params) PreferDownload() string