You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
504 B

  1. package credentials
  2. type StdTokenCredential struct {
  3. AccessKeyId string `json:"access_key_id" yaml:"access_key_id"`
  4. AccessKeySecret string `json:"access_key_secret" yaml:"access_key_secret"`
  5. AccessKeyFrom string `json:"access_key_from" yaml:"access_key_from"`
  6. }
  7. func NewStsTokenCredential(accessKeyId, accessKeySecret, accessFrom string) *StdTokenCredential {
  8. return &StdTokenCredential{
  9. AccessKeyId: accessKeyId,
  10. AccessKeySecret: accessKeySecret,
  11. AccessKeyFrom: accessFrom,
  12. }
  13. }