Documentation ¶
Index ¶
- func NewSftpClient(mc *common.Machine) (*sftp.Client, error)
- func SftpCat(fullPath string, mc *common.Machine)
- func SftpCopy(srcFullPath, destFullPath string, mc *common.Machine) error
- func SftpCreateDir(fullPath string, mc *common.Machine) error
- func SftpCreateFile(fullPath string, mc *common.Machine) error
- func SftpDownloadLocal(fullPath string, mc *common.Machine)
- func SftpFetchFile(fullPath string, mc *common.Machine) (*sftp.File, os.FileInfo, error)
- func SftpFetchFileToResponse(fullPath string, mc *common.Machine, w http.ResponseWriter, r *http.Request) error
- func SftpFetchToArchive(dirPath string, filenames []string, ar archiver.Writer, extension string, ...) error
- func SftpLs(dirPath string, mc *common.Machine) ([]*Ls, *LsMeta, error)
- func SftpRename(oldFullPath, newFullPath string, mc *common.Machine) error
- func SftpRmDir(fullPath string, mc *common.Machine) error
- func SftpRmFile(fullPath string, mc *common.Machine) error
- func SftpUpFile(file *os.File, desDir string, mc *common.Machine) error
- func SftpUpFileHeader(header *multipart.FileHeader, desDir string, mc *common.Machine)
- func SftpUpRequest(desDir string, r *http.Request, w http.ResponseWriter, mc *common.Machine) error
- type Ls
- type LsMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SftpDownloadLocal ¶
func SftpFetchFile ¶
func SftpFetchFileToResponse ¶
func SftpFetchToArchive ¶
func SftpUpFileHeader ¶
func SftpUpFileHeader(header *multipart.FileHeader, desDir string, mc *common.Machine)
func SftpUpRequest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.