ssh

package
v0.0.0-...-a5efb98 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner represents ssh runner

func New

func New(host string, config *ssh.ClientConfig, opts ...runner.Option) *Runner

New creates a new runner

func (*Runner) Close

func (r *Runner) Close() (err error)

func (*Runner) PID

func (r *Runner) PID() int

PID returns process id

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, command string, options ...runner.Option) (string, int, error)

Run runs supplied command

Jump to

Keyboard shortcuts

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