Versions in this module Expand all Collapse all v0 v0.2.0 Aug 29, 2026 v0.1.0 Aug 29, 2026 Changes in this version + const DefaultRunTimeout + const DefaultTimeout + func FirstLine(s string) string + func ProbedTools() []string + func ShellQuote(s string) string + type AuthMethod string + const AuthAgent + const AuthAuto + const AuthKey + const AuthPassword + type Capabilities struct + Home string + Host string + PHPVersion string + Shell string + Tools map[string]Tool + Uname string + User string + func Probe(ctx context.Context, client *Client) (*Capabilities, error) + func (c *Capabilities) Has(tool string) bool + func (c *Capabilities) Summary() string + func (c *Capabilities) Target() string + type Client struct + Config Config + func Dial(ctx context.Context, cfg Config, p Prompter) (*Client, error) + func (c *Client) Close() error + func (c *Client) RemoteIP() string + func (c *Client) Run(ctx context.Context, cmd string) (Result, error) + func (c *Client) Stream(ctx context.Context, cmd string, w io.Writer) (Result, error) + func (c *Client) StreamPipe(ctx context.Context, cmd string, stdin io.Reader, w io.Writer) (Result, error) + type Config struct + Auth AuthMethod + Host string + KeyPath string + Port int + Timeout time.Duration + User string + func (c Config) Addr() string + func (c Config) Resolve() (Config, error) + type Prompter interface + ConfirmHostKey func(host, keyType, fingerprint string) (bool, error) + Password func(prompt string) (string, error) + type Result struct + ExitCode int + Stderr string + Stdout string + type Tool struct + Found bool + Name string + Path string + Version string