Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliYun ¶
type AliYun struct {
// contains filtered or unexported fields
}
AliYun 阿里云
func NewAliYun ¶
func NewAliYun(config *AliYunConfig) (*AliYun, error)
NewAliYun 初始化 https://help.aliyun.com/document_detail/32144.html https://github.com/aliyun/aliyun-oss-go-sdk
func (*AliYun) PutLocalFile ¶
PutLocalFile 上传本地文件 @param localFile 本地文件路径 @param filePath 文件路径 @param fileName 文件名称
type AliYunConfig ¶
type AliYunConfig struct { AccessKeyId string // 账号信息 AccessKeySecret string // 账号信息 Endpoint string // 地域节点 外网访问 test3 EndpointEcs string // 地域节点 ECS 的经典网络访问(内网) test1 EndpointAccelerate string // 地域节点 传输加速域名(全地域上传下载加速 test4 BucketName string // 存储空间名称 }
AliYunConfig 阿里云配置
type Baidu ¶
type Baidu struct { AccessKey string SecretAccessKey string Endpoint string BucketName string // contains filtered or unexported fields }
Baidu 百度云
type Qiniu ¶
type Qiniu struct { AccessKey string SecretKey string BucketName string // contains filtered or unexported fields }
Qiniu 七牛云
func NewQiniu ¶
NewQiniu 初始化 https://developer.qiniu.com/kodo/1238/go https://github.com/qiniu/go-sdk
type Tencent ¶
type Tencent struct { SecretID string // 用户的 SecretId SecretKey string // 用户的 SecretKey BucketName string // 存储桶名称 Regions string // 所属地域 // contains filtered or unexported fields }
Tencent 腾讯云
Click to show internal directories.
Click to hide internal directories.