console

package
v0.0.0-...-a06f38c Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Timeout      time.Duration
	ShortTimeout time.Duration
	// contains filtered or unexported fields
}

func GetSSHConn

func GetSSHConn(spocFile, user string, cfg *program.Config, logLogin *os.File) (
	*Conn, error)

func (*Conn) Close

func (c *Conn) Close()

func (*Conn) GetCmdOutput

func (c *Conn) GetCmdOutput(cmd string) string

func (*Conn) GetOutput

func (c *Conn) GetOutput() string

func (*Conn) IssueCmd

func (c *Conn) IssueCmd(cmd, re string) string

func (*Conn) Send

func (c *Conn) Send(cmd string)

func (*Conn) SendCmd

func (c *Conn) SendCmd(cmd string)

func (*Conn) SetLogFH

func (c *Conn) SetLogFH(fh *os.File)

func (*Conn) SetStdPrompt

func (c *Conn) SetStdPrompt(p *regexp.Regexp)

func (*Conn) StripEcho

func (c *Conn) StripEcho(cmd, s string) string

func (*Conn) StripStdPrompt

func (c *Conn) StripStdPrompt(s string) string

func (*Conn) TryPrompt

func (c *Conn) TryPrompt() bool

func (*Conn) WaitLogin

func (c *Conn) WaitLogin(prompt string) string

func (*Conn) WaitShort

func (c *Conn) WaitShort(prompt string) string

Jump to

Keyboard shortcuts

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