Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccessKeyConfiguration = "hw_access_key" SecretKeyConfiguration = "hw_secret_key" ProjectIdConfiguration = "hw_project_id" SecurityTokenConfiguration = "hw_security_token" ProjectIdHeaderKey = "X-Project-Id" SecurityTokenHeaderKey = "X-Security-Token" )
Variables ¶
This section is empty.
Functions ¶
func CreateHWAuthWrapperByAuthParams ¶
func CreateHWAuthWrapperByAuthParams(params HWAuthParameters, rt http.RoundTripper) http.RoundTripper
CreateHWAuthWrapperByAuthParams to create Wrapper
Types ¶
type HWAuthParameters ¶
type HWAuthParameters struct { //AccessKey Huawei Cloud access key, could be temporary AccessKey string //SecretKey Huawei Cloud secret key, could be temporary SecretKey string //ProjectId Huawei Cloud ProjectId ProjectId string //SecurityToken Huawei Cloud Key, could be temporary SecurityToken string }
func (HWAuthParameters) HasRequiredAttributes ¶
func (p HWAuthParameters) HasRequiredAttributes() bool
func (HWAuthParameters) Valid ¶
func (p HWAuthParameters) Valid() error
Click to show internal directories.
Click to hide internal directories.