Versions in this module Expand all Collapse all v1 v1.2.0 May 15, 2020 Changes in this version + const NormExpiredDuration + type CredentialData struct + Credentials struct{ ... } + ExpiredTime int + func GetTkeCredential() (*CredentialData, error) + type NormCredential struct + func GetNormCredentialInstance() *NormCredential + func NewNormCredential(expiredDuration time.Duration, refresher Refresher) (NormCredential, error) + func (normCred *NormCredential) GetCredential() (string, string, string, bool, error) + func (normCred *NormCredential) GetSecretId() (string, error) + func (normCred *NormCredential) GetSecretKey() (string, error) + type NormRefresher struct + func NewNormRefresher(expiredDuration time.Duration) (NormRefresher, error) + func (nr NormRefresher) Refresh() (secretId string, secretKey string, token string, expiredAt int, err error) + type NormResponse struct + Code int + Data CredentialData + Msg string + Password string + Version string + type Refresher interface + Refresh func() (string, string, string, int, error)