Help us shape the future of Go! Take the 2026 Go Developer Survey

ssh

package
v1.1.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, provider *SSHProvider, command string, streams Streams) error

func Init

func Init(ctx context.Context, provider *SSHProvider, streams Streams) error

Types

type SSHProvider

type SSHProvider struct {
	Config           *options.Options
	WorkingDirectory string
}

func NewProvider

func NewProvider() (*SSHProvider, error)

type Streams added in v1.1.45

type Streams struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

Streams keeps protocol bytes separate from diagnostics. Non-file Stdin closers transfer ownership to the transport and must unblock concurrent Read on Close. Other non-file readers must be finite buffers; caller-owned files remain open. The transport must be the only reader of supplied stdin until it returns.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL