Documentation
¶
Index ¶
- Variables
- type SSHClient
- func (c *SSHClient) Dial()
- func (c *SSHClient) Download(srcPath string, dstPath string, retry int, interval int) error
- func (c *SSHClient) NewSession(retry int, interval int) (*ssh.Session, error)
- func (c *SSHClient) NewSftpClient(retry int, interval int) (*sftp.Client, error)
- func (c *SSHClient) RunCmd(cmd string, retry int, interval int) (string, string, error)
- func (c *SSHClient) TryNewSession() *ssh.Session
- func (c *SSHClient) TryNewSftpClient() *sftp.Client
- func (c *SSHClient) Upload(srcPath string, dstPath string, retry int, interval int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSSHConnection = errors.New("maximum retries has been reached for SSH connection")
Functions ¶
This section is empty.
Types ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
func (*SSHClient) NewSession ¶
func (*SSHClient) NewSftpClient ¶
func (*SSHClient) TryNewSession ¶
func (*SSHClient) TryNewSftpClient ¶
Click to show internal directories.
Click to hide internal directories.