flavors

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2015 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

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

func (opts ListOpts) ToFlavorListQuery() (string, error)

ToFlavorListQuery formats a ListOpts into a query string.

Source Files

Jump to

Keyboard shortcuts

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