Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2018 Changes in this version + type MultiCommandSession interface + Close func() + Run func(command string, timeoutMs int, terminators ...string) (string, error) + ShellPrompt func() string + System func() string + func NewReplayMultiCommandSession(shellPrompt, system string, commands *ReplayCommands) MultiCommandSession + type ReplayCommand struct + Error string + Index int + Stdin string + Stdout []string + type ReplayCommands struct + BaseDir string + Commands map[string]*ReplayCommand + Keys []string + func NewReplayCommands(basedir string) (*ReplayCommands, error) + func (c *ReplayCommands) Disable(source interface{}) (err error) + func (c *ReplayCommands) Enable(source interface{}) (err error) + func (c *ReplayCommands) Load() error + func (c *ReplayCommands) Next(stdin string) string + func (c *ReplayCommands) Register(stdin, stdout string) + func (c *ReplayCommands) Shell() string + func (c *ReplayCommands) Store() error + func (c *ReplayCommands) System() string + type Service interface + Client func() *ssh.Client + Close func() error + Download func(source string) ([]byte, error) + NewSession func() (*ssh.Session, error) + OpenMultiCommandSession func(config *SessionConfig) (MultiCommandSession, error) + OpenTunnel func(localAddress, remoteAddress string) error + Run func(command string) error + Upload func(destination string, content []byte) error + func NewReplayService(shellPrompt, system string, commands *ReplayCommands, ...) Service + func NewService(host string, port int, authConfig *cred.Config) (Service, error) + type SessionConfig struct + Columns int + EnvVariables map[string]string + Rows int + Shell string + Term string + type Tunnel struct + Connections []net.Conn + Local net.Listener + RemoteAddress string + func NewForwarding(client *ssh.Client, remoteAddress string, local net.Listener) *Tunnel + func (f *Tunnel) Close() error + func (f *Tunnel) Handle() error