keystone

package
v3.0.0-...-1c69814 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: LGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ApiGroups   = "groups"
	ApiRegions  = "regions"
	ApiProjects = "projects"
	ApiUsers    = "users"
)

API URL parts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides a means to access the OpenStack Compute Service.

func New

func New(client client.Client) *Client

New creates a new Client.

func (*Client) ListDomains

func (c *Client) ListDomains() ([]Domain, error)

func (*Client) ListGroups

func (c *Client) ListGroups() ([]Group, error)

func (*Client) ListProjects

func (c *Client) ListProjects() ([]Project, error)

func (*Client) ListRegions

func (c *Client) ListRegions() ([]Region, error)

func (*Client) ListUsers

func (c *Client) ListUsers() ([]User, error)

type Domain

type Domain struct {
	Description string `json:"description"`
	Enabled     bool   `json:"enabled"`
	ID          string `json:"id"`
	Links       struct {
		Self string `json:"self"`
	} `json:"links"`
	Name string `json:"name"`
}

type DomainList

type DomainList struct {
	Domains []Domain `json:"domains"`
	Links   struct {
		Next     interface{} `json:"next"`
		Previous interface{} `json:"previous"`
		Self     string      `json:"self"`
	} `json:"links"`
}

type Group

type Group struct {
	Description string `json:"description"`
	DomainID    string `json:"domain_id"`
	ID          string `json:"id"`
	Links       struct {
		Self string `json:"self"`
	} `json:"links"`
	Name string `json:"name"`
}

type GroupList

type GroupList struct {
	Links struct {
		Self     string      `json:"self"`
		Previous interface{} `json:"previous"`
		Next     interface{} `json:"next"`
	} `json:"links"`
	Groups []Group `json:"groups"`
}

type Project

type Project struct {
	IsDomain    bool        `json:"is_domain"`
	Description interface{} `json:"description"`
	DomainID    string      `json:"domain_id"`
	Enabled     bool        `json:"enabled"`
	ID          string      `json:"id"`
	Links       struct {
		Self string `json:"self"`
	} `json:"links"`
	Name     string        `json:"name"`
	ParentID interface{}   `json:"parent_id"`
	Tags     []interface{} `json:"tags"`
}

type ProjectList

type ProjectList struct {
	Links struct {
		Next     interface{} `json:"next"`
		Previous interface{} `json:"previous"`
		Self     string      `json:"self"`
	} `json:"links"`

	Projects []Project `json:"projects"`
}

type Region

type Region struct {
	Description string `json:"description"`
	ID          string `json:"id"`
	Links       struct {
		Self string `json:"self"`
	} `json:"links"`
	ParentRegionID interface{} `json:"parent_region_id"`
}

type RegionList

type RegionList struct {
	Regions []Region `json:"regions"`
	Links   struct {
		Next     interface{} `json:"next"`
		Previous interface{} `json:"previous"`
		Self     string      `json:"self"`
	} `json:"links"`
}

type User

type User struct {
	DomainID string `json:"domain_id"`
	Enabled  bool   `json:"enabled"`
	ID       string `json:"id"`
	Links    struct {
		Self string `json:"self"`
	} `json:"links"`
	Name              string      `json:"name"`
	PasswordExpiresAt interface{} `json:"password_expires_at"`
}

type UserList

type UserList struct {
	Links struct {
		Next     interface{} `json:"next"`
		Previous interface{} `json:"previous"`
		Self     string      `json:"self"`
	} `json:"links"`
	Users []User `json:"users"`
}

Jump to

Keyboard shortcuts

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