Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRegion = base.RegionApSingapore ServiceVersion20180101 = "2018-01-01" ServiceName = "sts" )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 5 * time.Second, Host: "open.byteplusapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "AssumeRole": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"AssumeRole"}, "Version": []string{ServiceVersion20180101}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type AssumeRoleRequest ¶
type AssumeRoleResp ¶
type AssumeRoleResp struct { ResponseMetadata base.ResponseMetadata Result *AssumeRoleResult `json:",omitempty"` }
AssumeRole
type AssumeRoleResult ¶
type AssumeRoleResult struct { Credentials *Credentials AssumedRoleUser *AssumeRoleUser }
type AssumeRoleUser ¶
type Credentials ¶
type STS ¶
IAM .
func (*STS) AssumeRole ¶
func (p *STS) AssumeRole(req *AssumeRoleRequest) (*AssumeRoleResp, int, error)
func (*STS) GetServiceInfo ¶
func (p *STS) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
Click to show internal directories.
Click to hide internal directories.