Documentation ¶
Index ¶
- type SSH
- func (ss *SSH) Cmd(host string, cmd string) []byte
- func (ss *SSH) CmdToString(host, cmd 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) IsFilExist(host, remoteFilePath string) bool
- func (ss *SSH) LoggerFileSize(host, filename string, size int)
- 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 ¶
func (*SSH) CopyForMD5 ¶ added in v1.4.1
Copy is
func (*SSH) IsFilExist ¶
RemoteFilExist is
func (*SSH) LoggerFileSize ¶
WatchFileSize is
Click to show internal directories.
Click to hide internal directories.