auth

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceClients

func ServiceClients(debug bool) (identityV3, limesV1 *gophercloud.ServiceClient)

ServiceClients authenticates against OpenStack and returns respective ServiceClients for Keystone and Limes.

Types

type Token

type Token struct {
	Domain struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"domain"`
	Project struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Domain struct {
			ID   string `json:"id"`
			Name string `json:"name"`
		} `json:"domain"`
	} `json:"project"`
}

Token contains domain and project information about an authorisation token.

func CurrentToken

func CurrentToken(identityClient *gophercloud.ServiceClient) (*Token, error)

CurrentToken returns the current auth token that was used to authenticate against an OpenStack cloud.

Jump to

Keyboard shortcuts

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