Documentation
¶
Overview ¶
Package remote provides an SSH-based executor for running commands on remote macOS hosts. It shells out to the system ssh binary to leverage the user's existing SSH config and agent.
Index ¶
- Constants
- type Runner
- func (r *Runner) LimaShell(ctx context.Context, vmName, command string) (string, error)
- func (r *Runner) LimaShellSudo(ctx context.Context, vmName, command string) (string, error)
- func (r *Runner) Run(ctx context.Context, command string) (string, error)
- func (r *Runner) RunShell(ctx context.Context, script string) (string, error)
Constants ¶
View Source
const DefaultMaxRetries = 3
DefaultMaxRetries is the default number of retries for transient SSH failures.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
Runner executes commands on a remote host via SSH.
func NewRunnerWithOpts ¶
NewRunnerWithOpts creates a runner with custom SSH options.
func (*Runner) LimaShellSudo ¶
LimaShellSudo executes a command as root inside a Lima VM on the remote host.
Click to show internal directories.
Click to hide internal directories.