gophercloud: Index | Files

package apiversions

import ""

Package apiversions provides information and interaction with the different API versions for the OpenStack Heat service. This functionality is not restricted to this particular version.


Package Files

doc.go requests.go results.go urls.go

func ListVersions Uses

func ListVersions(c *gophercloud.ServiceClient) pagination.Pager

ListVersions lists all the Neutron API versions available to end-users

type APIVersion Uses

type APIVersion struct {
    Status string             `mapstructure:"status"`
    ID     string             `mapstructure:"id"`
    Links  []gophercloud.Link `mapstructure:"links"`

APIVersion represents an API version for Neutron. It contains the status of the API, and its unique ID.

func ExtractAPIVersions Uses

func ExtractAPIVersions(page pagination.Page) ([]APIVersion, error)

ExtractAPIVersions takes a collection page, extracts all of the elements, and returns them a slice of APIVersion structs. It is effectively a cast.

type APIVersionPage Uses

type APIVersionPage struct {

APIVersionPage is the page returned by a pager when traversing over a collection of API versions.

func (APIVersionPage) IsEmpty Uses

func (r APIVersionPage) IsEmpty() (bool, error)

IsEmpty checks whether an APIVersionPage struct is empty.

Package apiversions imports 3 packages (graph). Updated 2019-05-10. Refresh now. Tools for package owners.