computeutil

package
v0.0.0-...-fe65b10 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package computeutil provides helpers around the Google Cloud Engine API.

Index

Constants

View Source
const (

	// ScopeCompute grants permissions to view and manage Compute Engine instance.
	ScopeCompute = "https://www.googleapis.com/auth/compute"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Name        string
	MachineType string
	Image       string
	Zone        string
	Metadata    map[string]string
	*raw.Instance
}

func GetInstance

func GetInstance(ctx context.Context, name string) (*Instance, error)

GetInstance retrieves an existing instance resource by name.

func NewInstance

func NewInstance(ctx context.Context, instance *Instance) (*Instance, error)

NewInstance creates a new instance.

func (*Instance) SerialPortOutput

func (i *Instance) SerialPortOutput(ctx context.Context) io.Reader

SerialPortOutput returns a Reader on the serial port output of a given instance name.

Jump to

Keyboard shortcuts

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