Documentation ¶
Index ¶
- type SSH
- func (ss *SSH) Cmd(host string, cmd string) []byte
- func (ss *SSH) CmdAsync(host string, cmd string) error
- func (ss *SSH) CmdToString(host, cmd, spilt string) string
- func (ss *SSH) Connect(host string) (*ssh.Session, error)
- func (ss *SSH) Copy(host, localFilePath, remoteFilePath string)
- func (ss *SSH) CopyForMD5(host, localFilePath, remoteFilePath, md5 string) bool
- func (ss *SSH) Md5Sum(host, remoteFilePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSH ¶
func (*SSH) CmdToString ¶
CmdToString is in host exec cmd and replace to spilt str
func (*SSH) CopyForMD5 ¶ added in v1.4.1
Copy is
Click to show internal directories.
Click to hide internal directories.