Documentation
¶
Index ¶
- type SftpAgent
- func (agent *SftpAgent) Connect() (client *sftp.Client, err error)
- func (agent *SftpAgent) DownloadFile(remotePath, loclaPath string) (err error)
- func (agent *SftpAgent) IsExists(remotePath string) (exists bool, err error)
- func (agent *SftpAgent) ReadDirectoryInfo(remoteDir string) (fileInfoArray []fs.FileInfo, err error)
- func (agent *SftpAgent) ReadFileContent(remotePath string) (target []byte, err error)
- func (agent *SftpAgent) ReadFileInfo(remotePath string) (fileInfo fs.FileInfo, err error)
- func (agent *SftpAgent) RemoveAll(remotePath string) (err error)
- func (agent *SftpAgent) RemoveFile(remotePath string) (err error)
- func (agent *SftpAgent) UploadContent(content []byte, remotePath string) (err error)
- func (agent *SftpAgent) UploadDirectory(localPath, remotePath string) (err error)
- func (agent *SftpAgent) UploadFile(localPath, remotePath string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SftpAgent ¶
type SftpAgent struct {
// contains filtered or unexported fields
}
func NewSftpAgent ¶
func (*SftpAgent) DownloadFile ¶
func (*SftpAgent) ReadDirectoryInfo ¶
func (*SftpAgent) ReadFileContent ¶ added in v0.2.7
func (*SftpAgent) ReadFileInfo ¶
func (*SftpAgent) RemoveFile ¶
func (*SftpAgent) UploadContent ¶ added in v0.2.7
func (*SftpAgent) UploadDirectory ¶
func (*SftpAgent) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.