sshrunner

package
v0.1.0-beta.26 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User     string
	Host     string
	Port     int
	Identity string
}

type Result

type Result struct {
	Stdout   string
	Stderr   string
	ExitCode int
}

func Run

func Run(ctx context.Context, cfg Config, remoteCommand string) (Result, error)

func RunStreaming

func RunStreaming(
	ctx context.Context,
	cfg Config,
	remoteCommand string,
	stdout, stderr io.Writer,
) (Result, error)

Jump to

Keyboard shortcuts

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