c2428de635
2.添加std_token (md5) 加密方式
16 lines
360 B
Go
16 lines
360 B
Go
package credentials
|
|
|
|
type StdTokenCredential struct {
|
|
AccessKeyId string
|
|
AccessKeySecret string
|
|
AccessKeyFrom string
|
|
}
|
|
|
|
func NewStsTokenCredential(accessKeyId, accessKeySecret, accessFrom string) *StdTokenCredential {
|
|
return &StdTokenCredential{
|
|
AccessKeyId: accessKeyId,
|
|
AccessKeySecret: accessKeySecret,
|
|
AccessKeyFrom: accessFrom,
|
|
}
|
|
}
|