Versions in this module Expand all Collapse all v0 v0.5.0 Jul 24, 2026 v0.4.0 Jul 22, 2026 v0.3.0 Jul 19, 2026 v0.2.0 Jul 19, 2026 Changes in this version + type Config struct + CommandLineEnv bool + Host string + HostKeyCallback ssh.HostKeyCallback + KeepAlive time.Duration + Password string + Port int + PrivateKeyPassphrase string + PrivateKeyPath string + Timeout time.Duration + UseAgent bool + User string + type Environment struct + func New(ctx context.Context, host string, opts ...Option) (*Environment, error) + func NewFromConfig(ctx context.Context, cfg *Config) (*Environment, error) + func (e *Environment) Capabilities() invoke.Capabilities + func (e *Environment) Close() error + func (e *Environment) Download(ctx context.Context, remotePath, localPath string, ...) error + func (e *Environment) LookPath(ctx context.Context, name string) (string, error) + func (e *Environment) OS() invoke.TargetOS + func (e *Environment) Start(ctx context.Context, cmd invoke.Command, stdio invoke.IO) (invoke.Process, error) + func (e *Environment) Upload(ctx context.Context, localPath, remotePath string, ...) error + type Option func(*Config) + func WithAgent() Option + func WithCommandLineEnv() Option + func WithHostKeyCallback(cb ssh.HostKeyCallback) Option + func WithInsecureIgnoreHostKey() Option + func WithKeepAlive(d time.Duration) Option + func WithKnownHosts(path string) Option + func WithPassword(password string) Option + func WithPort(port int) Option + func WithPrivateKey(path string) Option + func WithPrivateKeyPassphrase(passphrase string) Option + func WithTimeout(d time.Duration) Option + func WithUser(user string) Option