api

package
v0.0.0-...-b3a00ce Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2014 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InstancesResource = "/api/instances"

Functions

func GetInstances

func GetInstances(serv *compute.Service, w http.ResponseWriter) error

func RegisterServiceHandlers

func RegisterServiceHandlers()

Types

type Instance

type Instance struct {
	Name        string `json:"name"`
	State       string `json:"state"`
	CpuUsage    int    `json:"cpu_usage"`
	MemoryUsage int    `json:"memory_usage"`
}

Jump to

Keyboard shortcuts

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