auth

package
v0.0.0-...-63319d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL