identity

package
v0.0.0-...-a83d163 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoUpdate

func AutoUpdate(period int, logger *log.Logger)

AutoUpdate will check each period that token is still valid if not it will update it

func DoAuth

func DoAuth() error

DoAuth do the auth

Types

type OsVersion

type OsVersion struct {
	ID        string    `json:"id"`      // id of this version (v3.0, v2.0 ...)
	Status    string    `json:"status"`  // status of this version (stable, testing,...)
	Updated   time.Time `json:"updated"` // last update
	MediaType []struct {
		Base string `json:"base"`
		Type string `json:"type"`
	} `json:"media-types"`
	Links []struct {
		Href string `json:"href"` // status of this version (stable, testing,...)
		Rel  string `json:"rel"`  // status of this version (stable, testing,...)
	} `json:"links"` // status of this version (stable, testing,...)
}

OsVersion represents an openstack version

func GetVersions

func GetVersions() ([]OsVersion, error)

GetVersions return supported openstack vesrions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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