You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
628 B
16 lines
628 B
// Package cos 腾讯云对象存储服务 COS(Cloud Object Storage) Go SDK, 封装了 V5 版本的 XML API。
|
|
// 在项目的 example 目录下有各个 API 的使用示例 。
|
|
//
|
|
// Authentication
|
|
//
|
|
// 默认所有 API 都是匿名访问. 如果想添加认证信息的话,可以通过自定义一个 http.Client 来添加认证信息.
|
|
// 比如, 使用内置的 AuthorizationTransport 来为请求增加 Authorization Header 签名信息:
|
|
//
|
|
// client := cos.NewClient(b, &http.Client{
|
|
// Transport: &cos.AuthorizationTransport{
|
|
// SecretID: "COS_SECRETID",
|
|
// SecretKey: "COS_SECRETKEY",
|
|
// },
|
|
// })
|
|
|
|
package cos
|