extensions

package
v1.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List returns a Pager which allows you to iterate over the full collection of extensions. It does not accept query parameters.

func ListExtensionURL

func ListExtensionURL(c *gophercloud.ServiceClient) string

ListExtensionURL generates the URL for the extensions resource collection.

Types

type Extension

type Extension struct {
	Updated     string             `json:"updated"`
	Name        string             `json:"name"`
	Links       []gophercloud.Link `json:"links"`
	Namespace   string             `json:"namespace"`
	Alias       string             `json:"alias"`
	Description string             `json:"description"`
}

Extension is a struct that represents an OpenStack extension.

func ExtractExtensions

func ExtractExtensions(r pagination.Page) ([]Extension, error)

ExtractExtensions accepts a Page struct, specifically an ExtensionPage struct, and extracts the elements into a slice of Extension structs. In other words, a generic collection is mapped into a relevant slice.

type ExtensionPage

type ExtensionPage struct {
	pagination.SinglePageBase
}

ExtensionPage is the page returned by a pager when traversing over a collection of extensions.

func (ExtensionPage) IsEmpty

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

IsEmpty checks whether an ExtensionPage struct is empty.

Directories

Path Synopsis
common extensions unit tests
common extensions unit tests

Jump to

Keyboard shortcuts

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