Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractExtensionsInto ¶
func ExtractExtensionsInto(r pagination.Page, v interface{}) error
func List ¶
func List(c *gcorecloud.ServiceClient) pagination.Pager
Types ¶
type Extension ¶
type Extension struct { Name string `json:"name"` Alias string `json:"alias"` Links []string `json:"links"` Description string `json:"description"` Updated gcorecloud.JSONRFC3339Z `json:"updated"` }
Extension represents a neutron extension.
func ExtractExtensions ¶
func ExtractExtensions(r pagination.Page) ([]Extension, error)
ExtractExtension accepts a Page struct, specifically a ExtensionPage struct, and extracts the elements into a slice of Extension structs. In other words, a generic collection is mapped into a relevant slice.
func ListAll ¶
func ListAll(c *gcorecloud.ServiceClient) ([]Extension, error)
type ExtensionPage ¶
type ExtensionPage struct {
pagination.LinkedPageBase
}
ExtensionPage is the page returned by a pager when traversing over a collection of networks.
func (ExtensionPage) IsEmpty ¶
func (r ExtensionPage) IsEmpty() (bool, error)
IsEmpty checks whether a ExtensionPage struct is empty.
func (ExtensionPage) NextPageURL ¶
func (r ExtensionPage) NextPageURL() (string, error)
NextPageURL is invoked when a paginated collection of networks has reached the end of a page and the pager seeks to traverse over a new one. In order to do this, it needs to construct the next page's URL.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as a Extension.
func Get ¶
func Get(c *gcorecloud.ServiceClient, alias string) (r GetResult)
Get retrieves a specific extension based on its alias.
func (GetResult) Extract ¶
Extract is a function that accepts a result and extracts a network resource.
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error