2020-08-08 15:09:58 +08:00
|
|
|
package credentials
|
|
|
|
|
|
|
|
type StdTokenCredential struct {
|
2020-08-08 17:53:47 +08:00
|
|
|
AccessKeyId string `json:"access_key_id" yaml:"access_key_id"`
|
|
|
|
AccessKeySecret string `json:"access_key_secret" yaml:"access_key_secret"`
|
|
|
|
AccessKeyFrom string `json:"access_key_from" yaml:"access_key_from"`
|
2020-08-08 15:09:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewStsTokenCredential(accessKeyId, accessKeySecret, accessFrom string) *StdTokenCredential {
|
|
|
|
return &StdTokenCredential{
|
|
|
|
AccessKeyId: accessKeyId,
|
|
|
|
AccessKeySecret: accessKeySecret,
|
|
|
|
AccessKeyFrom: accessFrom,
|
|
|
|
}
|
|
|
|
}
|