Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(c *gophercloud.ServiceClient) pagination.Pager
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.
Click to show internal directories.
Click to hide internal directories.