package images
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/images"
Package images provides information and interaction with the image API resource for the Rackspace Cloud Servers service.
+build fixtures
Index ¶
- Constants
- Variables
- func ExtractImages(page pagination.Page) ([]os.Image, error)
- func Get(client *gophercloud.ServiceClient, id string) os.GetResult
- func ListDetail(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager
Constants ¶
const GetOutput = "" /* 1687 byte string literal not displayed */
GetOutput is an example response from an /images request.
const ListOutput = "" /* 3474 byte string literal not displayed */
ListOutput is an example response from an /images/detail request.
Variables ¶
var ArchImage = os.Image{ ID: "30aa010e-080e-4d4b-a7f9-09fc55b07d69", Name: "Arch 2014.10 (PVHVM)", Created: "2014-10-01T15:49:02Z", Updated: "2014-10-01T19:37:58Z", MinDisk: 20, MinRAM: 512, Progress: 100, Status: "ACTIVE", }
ArchImage is the first Image structure that should be parsed from ListOutput.
ExpectedImageSlice is the collection of images that should be parsed from ListOutput, in order.
var UbuntuImage = os.Image{ ID: "e19a734c-c7e6-443a-830c-242209c4d65d", Name: "Ubuntu 14.04 LTS (Trusty Tahr)", Created: "2014-10-01T12:58:11Z", Updated: "2014-10-01T15:51:44Z", MinDisk: 20, MinRAM: 512, Progress: 100, Status: "ACTIVE", }
UbuntuImage is the second Image structure that should be parsed from ListOutput and the only image that should be extracted from GetOutput.
Functions ¶
func ExtractImages ¶
func ExtractImages(page pagination.Page) ([]os.Image, error)
ExtractImages interprets a page as a collection of server images.
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) os.GetResult
Get acquires additional detail about a specific image by ID.
func ListDetail ¶
func ListDetail(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager
ListDetail enumerates the available server images.
Source Files ¶
delegate.go doc.go fixtures.go
- Version
- v0.9.1
- Published
- Jan 23, 2015
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.