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,
|
||
|
}
|
||
|
}
|