Help us shape the future of Go! Take the 2026 Go Developer Survey

images

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = fmt.Errorf("Images functionality not implemented.")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Image

type Image struct {
	Created  string
	Id       string
	MinDisk  int
	MinRam   int
	Name     string
	Progress int
	Status   string
	Updated  string
}

Image is used for JSON (un)marshalling. It provides a description of an OS image.

The Id field contains the image's unique identifier. For example, this identifier will be useful for specifying which operating system to install on a new server instance.

The MinDisk and MinRam fields specify the minimum resources a server must provide to be able to install the image.

The Name field provides a human-readable moniker for the OS image.

The Progress and Status fields indicate image-creation status. Any usable image will have 100% progress.

The Updated field indicates the last time this image was changed.

func GetImage

func GetImage(ir ImageResults) (Image, error)

func GetImages

func GetImages(lr ListResults) ([]Image, error)

type ImageResults

type ImageResults map[string]interface{}

type ListResults

type ListResults map[string]interface{}

func List

func List(c *Client) (ListResults, error)

Jump to

Keyboard shortcuts

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