7
0
gaore-common-sdk-go/sdk/auth/credentials/access_key_credential.go
liangzy c2428de635 1.添加Debug信息
2.添加std_token (md5) 加密方式
2020-08-08 15:09:58 +08:00

22 lines
477 B
Go

package credentials
type BaseCredential struct {
AccessKeyId string
AccessKeySecret string
AccessKeyFrom string
}
type AccessKeyCredential struct {
AccessKeyId string
AccessKeySecret string
AccessKeyFrom string
}
func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential {
return &AccessKeyCredential{
AccessKeyId: baseCred.AccessKeyId,
AccessKeySecret: baseCred.AccessKeySecret,
AccessKeyFrom: baseCred.AccessKeyFrom,
}
}