7
0
gaore-common-sdk-go/sdk/auth/credentials/sts_token_credential.go

16 lines
360 B
Go
Raw Normal View History

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