7
0
gaore-common-sdk-go/sdk/auth/credentials/access_key_creditial.go
2020-08-05 17:01:10 +08:00

19 lines
386 B
Go

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