Documentation ¶
Index ¶
- type SFTPClient
- func (this *SFTPClient) Close()
- func (this *SFTPClient) Connect()
- func (this *SFTPClient) InitCon() (*sftp.Client, error)
- func (this *SFTPClient) SetParam(user, password, host string, port int) *SFTPClient
- func (this *SFTPClient) UploadDirectory(localPath string, remotePath string)
- func (this *SFTPClient) UploadFile(localFilePath string, remotePath string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SFTPClient ¶
type SFTPClient struct {
User, Password, Host string
Is_ready, Port int
// contains filtered or unexported fields
}
func NewSFTPClient ¶
func NewSFTPClient() *SFTPClient
func (*SFTPClient) Close ¶
func (this *SFTPClient) Close()
func (*SFTPClient) Connect ¶
func (this *SFTPClient) Connect()
func (*SFTPClient) SetParam ¶
func (this *SFTPClient) SetParam(user, password, host string, port int) *SFTPClient
func (*SFTPClient) UploadDirectory ¶
func (this *SFTPClient) UploadDirectory(localPath string, remotePath string)
func (*SFTPClient) UploadFile ¶
func (this *SFTPClient) UploadFile(localFilePath string, remotePath string) bool
Click to show internal directories.
Click to hide internal directories.