Documentation ¶
Index ¶
Constants ¶
View Source
const API_URL = "https://ccs.api.qcloud.com/v2/index.php?"
View Source
const Monitor_API_URL = "https://monitor.api.qcloud.com/v2/index.php?"
View Source
const Repostiory_API_URL = "https://ccr.api.qcloud.com/v2/index.php?"
Variables ¶
View Source
var (
PubilcField = []string{"Action", "SecretId", "Region", "Timestamp", "Nonce"}
)
Functions ¶
func GenerateSignature ¶
generateSignature 生成最终的请求签名,使用HMAC-SHA1 key加密key,req请求字符串
func GenerateSignatureString ¶
generateSignature 生成请求签名字符串 field 请求字段集合 reqmap 待计算的请求map publicmap 公共请求map,调用public.PublicParam生成
func PublicParam ¶
PublicParam生成公共请求数据 包括 Action/SecretId/Region/Timestamp/Nonce
Types ¶
Click to show internal directories.
Click to hide internal directories.