7
0
gaore-common-sdk-go/sdk/auth/credentials/access_key_creditial.go
2020-08-06 12:15:51 +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,
}
}