Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + var BCE_AUTH_VERSION = "bce-auth-v1" + var DEFAULT_EXPIRE_SECONDS = 1800 + var DEFAULT_HEADERS_TO_SIGN = map[string]struct + var SIGN_HEADER_JOINER = ";" + var SIGN_JOINER = "\n" + type BceCredentials struct + AccessKeyId string + SecretAccessKey string + SessionToken string + func NewBceCredentials(ak, sk string) (*BceCredentials, error) + func NewSessionBceCredentials(ak, sk, token string) (*BceCredentials, error) + func (b *BceCredentials) String() string + type BceV1Signer struct + func (b *BceV1Signer) Sign(req *http.Request, cred *BceCredentials, opt *SignOptions) + type SignOptions struct + ExpireSeconds int + HeadersToSign map[string]struct{} + Timestamp int64 + func (opt *SignOptions) String() string + type Signer interface + Sign func(*http.Request, *BceCredentials, *SignOptions)