Versions in this module Expand all Collapse all v0 v0.0.5 Jan 11, 2022 Changes in this version + func Reconnect(cli *Cli) error + type Cli struct + IP string + Password string + Port int + SftpCient *sftp.Client + SshClient *ssh.Client + Username string + func NewCli(ip string, username string, password string, port ...int) (*Cli, error) + func (cli Cli) Download(req SftpReq) []SftpRecord + func (cli Cli) Run(command string) SshRecord + func (cli Cli) Upload(req SftpReq) []SftpRecord + type SftpRecord struct + Err error + LocalPath string + RemotePath string + type SftpReq struct + LocalPath string + Overwrite bool + RemotePath string + type SshRecord struct + Command string + Err error + Result string