sshsftp

package
v0.0.0-...-2ec961a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) InitCon

func (this *SFTPClient) InitCon() (*sftp.Client, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL