Documentation ¶
Index ¶
- Variables
- func EncodeJSON(data interface{}) ([]byte, error)
- func S3Download(filePath, bucket, fileKey string) (string, error)
- func SendRequest(method, baseURL, path string, body interface{}, header map[string]string, ...) ([]byte, int, error)
- func SftpCreate(user string, passwd string, host string, port string) (*sftp.Client, error)
- func SftpReadAll(user string, passwd string, host string, port string, sPath string) ([]byte, error)
- type FTP
- type HTTP
- type SFTP
- type Tool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FTPDefaultPort = "21" FTPDefaultUsername = "anonymous" FTPDefaultPassword = "anonymous" )
FTP 默认参数
View Source
var ( URL string AccessKey string SecretKey string SSL bool )
s3参数
Functions ¶
func S3Download ¶
S3Download s3下载文件
func SendRequest ¶
func SendRequest(method, baseURL, path string, body interface{}, header map[string]string, cookie map[string]string, RegistryUserName, RegistryPwd string) ([]byte, int, error)
SendRequest 发送请求
func SftpCreate ¶
SftpCreate 创建sftp 客户端
Types ¶
Click to show internal directories.
Click to hide internal directories.