Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
type ClientInterface interface {
NewSession() (SSHSession, error)
}
ClientInterface -
type DefaultRemoteExecutor ¶
type DefaultRemoteExecutor struct { Client ClientInterface LazyClientDial func() // contains filtered or unexported fields }
DefaultRemoteExecutor -
type Executer ¶
Executer -
func NewRemoteExecutor ¶
NewRemoteExecutor - This method creates executor based on ssh, it has concrete ssh reference
type SSHSession ¶
type SSHSession interface { Start(cmd string) error Wait() error StdoutPipe() (io.Reader, error) Close() error }
SSHSession -
type SshClientWrapper ¶
type SshClientWrapper struct {
// contains filtered or unexported fields
}
SshClientWrapper - of ssh client to match client interface signature, since client.NewSession() does not use an interface
func NewClientWrapper ¶
func NewClientWrapper(client *ssh.Client) *SshClientWrapper
NewClientWrapper -
func (*SshClientWrapper) NewSession ¶
func (c *SshClientWrapper) NewSession() (SSHSession, error)
NewSession -
Click to show internal directories.
Click to hide internal directories.