ssh

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitStatus

func ExitStatus(err error) (int, bool)

Types

type Option

type Option func(*SSHTerminal)

func SetExitMessage

func SetExitMessage(msg string) Option

func SetInitCmds

func SetInitCmds(initcmds string) Option

func SetKeyPath

func SetKeyPath(keypath string) Option

func SetPort

func SetPort(port string) Option

type SSHTerminal

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

func New

func New(ip, user, pass string, options ...Option) *SSHTerminal

func (*SSHTerminal) Close

func (t *SSHTerminal) Close() error

func (*SSHTerminal) Run

func (t *SSHTerminal) Run(cmd string) error

func (*SSHTerminal) Start

func (t *SSHTerminal) Start() error

Jump to

Keyboard shortcuts

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