Documentation ¶
Overview ¶
Package sts defines the STS service of BCE. It contains the model sub package to implement the concrete request and response of the GetSessionToken API.
Index ¶
Constants ¶
View Source
const DEFAULT_SERVICE_DOMAIN = "sts." + bce.DEFAULT_REGION + "." + bce.DEFAULT_DOMAIN
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of STS service is a kind of BceClient, so it derived from the BceClient and it only supports the GetSessionToken API. There is no other fields needed.
func NewClient ¶
NewClient make the STS service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.
func NewStsClient ¶ added in v0.9.22
func (*Client) AssumeRole ¶ added in v0.9.22
func (c *Client) AssumeRole(args *api.AssumeRoleArgs) (*api.Credential, error)
func (*Client) GetSessionToken ¶
Click to show internal directories.
Click to hide internal directories.