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)
}
type DefaultRemoteExecutor ¶
type DefaultRemoteExecutor struct { Client ClientInterface LazyClientDial func() // contains filtered or unexported fields }
type Executer ¶
func NewLocalExecuter ¶
func NewLocalExecuter() Executer
func NewRemoteExecutor ¶
This method creates executor based on ssh, it has concrete ssh reference
type SSHSession ¶
type SshClientWrapper ¶
type SshClientWrapper struct {
// contains filtered or unexported fields
}
Wrapper of ssh client to match client interface signature, since client.NewSession() does not use an interface
func NewClientWrapper ¶
func NewClientWrapper(client *ssh.Client) *SshClientWrapper
func (*SshClientWrapper) NewSession ¶
func (c *SshClientWrapper) NewSession() (SSHSession, error)
Click to show internal directories.
Click to hide internal directories.