Documentation
¶
Index ¶
- type Conn
- func (c *Conn) Close()
- func (c *Conn) GetCmdOutput(cmd string) string
- func (c *Conn) GetOutput() string
- func (c *Conn) IssueCmd(cmd, re string) string
- func (c *Conn) Send(cmd string)
- func (c *Conn) SendCmd(cmd string)
- func (c *Conn) SetLogFH(fh *os.File)
- func (c *Conn) SetStdPrompt(p *regexp.Regexp)
- func (c *Conn) StripEcho(cmd, s string) string
- func (c *Conn) StripStdPrompt(s string) string
- func (c *Conn) TryPrompt() bool
- func (c *Conn) WaitLogin(prompt string) string
- func (c *Conn) WaitShort(prompt string) string
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 (*Conn) GetCmdOutput ¶
func (*Conn) SetStdPrompt ¶
func (*Conn) StripStdPrompt ¶
Click to show internal directories.
Click to hide internal directories.