Documentation
¶
Overview ¶
Package flavors provides information and interaction with the flavor API resource for the Rackspace Cloud Servers service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFlavors ¶
func ExtractFlavors(page pagination.Page) ([]os.Flavor, error)
ExtractFlavors interprets a page of List results as Flavors.
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) os.GetResult
Get returns details about a single flavor, identity by ID.
func ListDetail ¶
func ListDetail(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager
ListDetail enumerates the server images available to your account.
Types ¶
type ListOpts ¶
type ListOpts struct {
// MinDisk and MinRAM, if provided, elide flavors that do not meet your criteria.
MinDisk int `q:"minDisk"`
MinRAM int `q:"minRam"`
// Marker specifies the ID of the last flavor in the previous page.
Marker string `q:"marker"`
// Limit instructs List to refrain from sending excessively large lists of flavors.
Limit int `q:"limit"`
}
ListOpts helps control the results returned by the List() function. For example, a flavor with a minDisk field of 10 will not be returned if you specify MinDisk set to 20.
func (ListOpts) ToFlavorListQuery ¶
ToFlavorListQuery formats a ListOpts into a query string.
Click to show internal directories.
Click to hide internal directories.