Documentation ¶
Index ¶
- type Token
- type TokenResult
- func Create(c *edgecloud.ServiceClient, opts edgecloud.AuthOptionsBuilder) (r TokenResult)
- func RefreshECCloud(c *edgecloud.ServiceClient, opts edgecloud.TokenOptionsBuilder) (r TokenResult)
- func RefreshPlatform(c *edgecloud.ServiceClient, opts edgecloud.TokenOptionsBuilder) (r TokenResult)
- func SelectAccount(c *edgecloud.ServiceClient, clientID string) (r TokenResult)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenResult ¶
type TokenResult struct {
// contains filtered or unexported fields
}
TokenResult is the response from a Create request. Use ExtractToken() to interpret it as a Token.
func Create ¶
func Create(c *edgecloud.ServiceClient, opts edgecloud.AuthOptionsBuilder) (r TokenResult)
Create authenticates and either generates a new token.
func RefreshECCloud ¶
func RefreshECCloud(c *edgecloud.ServiceClient, opts edgecloud.TokenOptionsBuilder) (r TokenResult)
RefreshECCloud token with EdgeCloud API.
func RefreshPlatform ¶
func RefreshPlatform(c *edgecloud.ServiceClient, opts edgecloud.TokenOptionsBuilder) (r TokenResult)
RefreshPlatform token with EdgeCenter platform API.
func SelectAccount ¶
func SelectAccount(c *edgecloud.ServiceClient, clientID string) (r TokenResult)
SelectAccount select an account which you want to get access to.
func (TokenResult) ExtractAccessToken ¶
func (r TokenResult) ExtractAccessToken() (string, error)
func (TokenResult) ExtractInto ¶
func (r TokenResult) ExtractInto(v interface{}) error
func (TokenResult) ExtractRefreshToken ¶
func (r TokenResult) ExtractRefreshToken() (string, error)
func (TokenResult) ExtractTokens ¶
ExtractToken interprets a commonResult as a Token.
func (TokenResult) ExtractTokensPair ¶
func (r TokenResult) ExtractTokensPair() (string, string, error)
Click to show internal directories.
Click to hide internal directories.