c2428de635
2.添加std_token (md5) 加密方式
22 lines
477 B
Go
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,
|
|
}
|
|
}
|