Documentation ¶
Index ¶
- type CliSsh
- func (c *CliSsh) Close() error
- func (c *CliSsh) Connect() error
- func (c *CliSsh) DownloadFile(remoteFile, localPath string) error
- func (c *CliSsh) DownloadFileOrDir(remotePath, localPath string) error
- func (c *CliSsh) Run(cmd string) (string, error)
- func (c *CliSsh) RunCmdS(cmds []string) error
- func (c *CliSsh) SessionRequestPty() (*ssh.Session, error)
- func (c *CliSsh) UploadFile(localFile, remotePath string, sameLevel bool) error
- func (c *CliSsh) UploadFileOrDir(localPath, remotePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliSsh ¶
type CliSsh struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
func (*CliSsh) DownloadFile ¶
func (*CliSsh) DownloadFileOrDir ¶
func (*CliSsh) UploadFile ¶
func (*CliSsh) UploadFileOrDir ¶
Click to show internal directories.
Click to hide internal directories.