Documentation
¶
Index ¶
- type CommandResult
- type SSHClient
- func (s *SSHClient) Close() error
- func (s *SSHClient) Ping() error
- func (s *SSHClient) RunCommand(cmd string) (*CommandResult, error)
- func (s *SSHClient) RunCommands(commands []string) ([]*CommandResult, error)
- func (s *SSHClient) UploadDir(localDir, remoteDir string, ug string) error
- func (s *SSHClient) UploadFile(localPath, remotePath string, mode string) error
- type SSHConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
func NewSSHClient ¶
func (*SSHClient) RunCommand ¶
func (s *SSHClient) RunCommand(cmd string) (*CommandResult, error)
RunCommand 执行单个命令
func (*SSHClient) RunCommands ¶
func (s *SSHClient) RunCommands(commands []string) ([]*CommandResult, error)
Click to show internal directories.
Click to hide internal directories.