apiversions

package
v0.0.0-...-e621b23 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListVersions

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

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

Types

type APIVersion

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

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

func ExtractAPIVersions

func ExtractAPIVersions(r 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

type APIVersionPage struct {
	pagination.SinglePageBase
}

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

func (APIVersionPage) IsEmpty

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

IsEmpty checks whether an APIVersionPage struct is empty.

Directories

Path Synopsis
orchestration_apiversions_v1
orchestration_apiversions_v1

Jump to

Keyboard shortcuts

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