Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "1.0.16"
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(ctx context.Context, config *AliYunConfig) (*AliYun, error)
NewAliYun 初始化 https://help.aliyun.com/document_detail/32144.html
type AliYunConfig ¶
type AliYunConfig struct { AccessKeyId string // 账号信息 AccessKeySecret string // 账号信息 Endpoint string // 地域节点 BucketName string // 存储空间名称 }
AliYunConfig 阿里云配置
type Baidu ¶
type Baidu struct { AccessKey string SecretAccessKey string Endpoint string BucketName string // contains filtered or unexported fields }
Baidu 百度云
type FileInfo ¶
type FileInfo struct { Path string `json:"path"` // 文件路径 Name string `json:"name"` // 文件名称 Url string `json:"url"` // 文件地址 }
FileInfo 上传文件的信息
type Huaweicloud ¶
type Huaweicloud struct { AccessKey string SecretKey string Endpoint string BucketName string // contains filtered or unexported fields }
Huaweicloud 华为云
func NewHuaweicloud ¶
func NewHuaweicloud(ctx context.Context, accessKey string, secretKey string, endpoint string, bucketName string) *Huaweicloud
NewHuaweicloud 初始化 https://support.huaweicloud.com/sdk-go-devg-obs/obs_33_0001.html
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
type Tencent ¶
type Tencent struct { SecretID string // 用户的 SecretId SecretKey string // 用户的 SecretKey BucketName string // 存储桶名称 Regions string // 所属地域 // contains filtered or unexported fields }
Tencent 腾讯云
func NewTencent ¶
NewTencent 初始化 https://cloud.tencent.com/document/product/436/31215
Click to show internal directories.
Click to hide internal directories.