Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StsSignVersion sts sign version StsSignVersion = "1.0" // StsAPIVersion sts api version StsAPIVersion = "2015-04-01" // StsHost sts host StsHost = "https://sts.aliyuncs.com/" // TimeFormat time fomrat TimeFormat = "2006-01-02T15:04:05Z" // RespBodyFormat respone body format RespBodyFormat = "JSON" // PercentEncode '/' PercentEncode = "%2F" // HTTPGet http get method HTTPGet = "GET" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumedRoleUser ¶
AssumedRoleUser the user to AssumedRole
type Client ¶
type Client struct { AccessKeyId string AccessKeySecret string RoleArn string SessionName string Policy *Policy }
Client sts client
func NewClientWithPolicy ¶
func NewClientWithPolicy(accessKeyID, accessKeySecret, roleArn, sessionName string, policy *Policy) *Client
NewClientWithPolicy New STS Client With Policy
type Credentials ¶
type Credentials struct { AccessKeyId string AccessKeySecret string Expiration time.Time SecurityToken string }
Credentials the credentials obtained by AssumedRole, used for the peration of Alibaba Cloud service.
type PolicyStatement ¶
PolicyStatement policy statement
type Response ¶
type Response struct { Credentials Credentials AssumedRoleUser AssumedRoleUser RequestId string }
Response the response of AssumeRole
Click to show internal directories.
Click to hide internal directories.