Documentation ¶
Index ¶
Constants ¶
View Source
const ( StsHost = "sts.api.qcloud.com" StsPath = "/v2/index.php" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleArgs ¶
type AssumeRoleResponse ¶
type AssumeRoleResponse struct { Response Data struct { Credentials struct { SessionToken string `json:"sessionToken"` TmpSecretId string `json:"tmpSecretId"` TmpSecretKey string `json:"tmpSecretKey"` } `json:"credentials"` ExpiredTime int `json:"expiredTime"` Expiration string `json:"expiration"` } `json:"data"` }
type Client ¶
func NewClientFromEnv ¶
func (*Client) AssumeRole ¶
func (client *Client) AssumeRole(args *AssumeRoleArgs) (*AssumeRoleResponse, error)
Click to show internal directories.
Click to hide internal directories.