package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: May 10, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package scp
@author: xwc1125
-
func RZ(ctx context.Context, client *ssh.Client, localPath string, remotePath string) error
-
func SZ(ctx context.Context, client *ssh.Client, remotePath, localPath string) error
-
func Scp(ctx context.Context, localToRemote bool, client *ssh.Client, localPath string, ...) error
RZ 上传文件
@param h 远程服务器信息
@param localPath 本地地址
@param remotePath 远程地址
SZ 下载文件
@param h 远程服务器信息
@param remotePath 远程地址
@param localPath 本地地址
Scp 进行scp处理
@param localToRemote 是否本地复制到远程服务器
@param h 远程服务器信息
@param localPath 本地地址
@param remotePath 远程地址
Source Files
¶
Click to show internal directories.
Click to hide internal directories.