Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMoreHeaderUsingToken ¶
func BuildMoreHeaderUsingToken(c *golangsdk.ServiceClient, token string) map[string]string
BuildMoreHeaderUsingToken is a method to build a specified request header using given token.
Types ¶
type CreateOpts ¶
type CreateOpts struct { // Account name. Name string `json:"name" required:"true"` // Account password. Password string `json:"password" required:"true"` }
CreateOpts is the structure required by the Create method to create a token for connecting to the engine.
type CreateResp ¶
type CreateResp struct { // The obtained user token is valid for 12 hours. Token string `json:"token"` }
CreateResp is the structure that represents the response of the API request.
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*CreateResp, error)
Create is a method to create a token using given parameters.
Click to show internal directories.
Click to hide internal directories.