ssh

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 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 SSHExecutor

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

func NewExecutor

func NewExecutor(target string, c *ssh.ClientConfig) *SSHExecutor

func (SSHExecutor) ExecFunc

func (sshe SSHExecutor) ExecFunc() (nescript.ExecFunc, error)

type SSHProcess

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

Process represents a single instance of the script running or completed on the local device.

func (*SSHProcess) Close

func (p *SSHProcess) Close()

func (*SSHProcess) Kill

func (p *SSHProcess) Kill() error

func (*SSHProcess) Result

func (p *SSHProcess) Result() (*nescript.Result, error)

func (*SSHProcess) Signal

func (p *SSHProcess) Signal(s os.Signal) error

func (*SSHProcess) Write

func (p *SSHProcess) Write(input string) error

Jump to

Keyboard shortcuts

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