Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderServiceAk = "X-Service-AK" HeaderServiceShaAKSK = "X-Service-ShaAKSK" HeaderServiceProject = "X-Service-Project" )
Headers for ak/sk auth
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignRequest ¶
SignRequest inject auth related header and sign this request so that this request can access to huawei cloud
func GetShaAKSKSignFunc ¶
func GetShaAKSKSignFunc(ak, sk, project string) (SignRequest, error)
GetShaAKSKSignFunc sets and initializes the ak/sk auth func
func GetSignFunc ¶
func GetSignFunc(ak, sk, project string) (SignRequest, error)
GetSignFunc sets and initializes the ak/sk auth func
Click to show internal directories.
Click to hide internal directories.