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) CopyConfigFile(host, remoteFilePath string, localFilePathOrBytes interface{})
- func (ss *SSH) CopyForMD5(host, localFilePath, remoteFilePath, md5 string) bool
- func (ss *SSH) IsFileExist(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 ¶
CmdToString is in host exec cmd and replace to spilt str
func (*SSH) CopyConfigFile ¶
Copy is
func (*SSH) CopyForMD5 ¶
Copy is
func (*SSH) IsFileExist ¶
RemoteFileExist is
func (*SSH) LoggerFileSize ¶
WatchFileSize is
Click to show internal directories.
Click to hide internal directories.