Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aliyun ¶
type Aliyun struct {
// contains filtered or unexported fields
}
Aliyun ..
func (*Aliyun) Auth ¶
func (t *Aliyun) Auth() (response *sts.AssumeRoleResponse, err error)
Auth 申请临时用户授权,获取临时的AccessKeyId,AccessKeySecret以及安全的Token
func (*Aliyun) Token ¶
func (t *Aliyun) Token(accessKeyId, accessKeySecret, safeToken string) (signInToken string, err error)
Token 通过临时用户信息获取有效期为三小时的用户登录Token http://signin.aliyun.com/federation?Action=GetSigninToken
&AccessKeyId=<STS 返回的临时 AccessKeyId> &AccessKeySecret=<STS 返回的临时 AccessKeySecret> &SecurityToken=<STS 返回的安全 Token> &TicketType=mini
Click to show internal directories.
Click to hide internal directories.