compute

package
v0.0.0-...-bd764f5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package compute contains wrappers around the GCE compute API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInstanceMetadataItem

func BuildInstanceMetadataItem(key, value string) *api.MetadataItems

BuildInstanceMetadataItem create an metadata item

Types

type Instance

type Instance struct {
	*api.Instance
	Client        daisyCompute.Client
	Project, Zone string
}

Instance is a compute instance.

func CreateInstance

func CreateInstance(client daisyCompute.Client, project, zone string, i *api.Instance) (*Instance, error)

CreateInstance creates a compute instance.

func (*Instance) Cleanup

func (i *Instance) Cleanup()

Cleanup deletes the Instance.

func (*Instance) WaitForSerialOutput

func (i *Instance) WaitForSerialOutput(match string, port int64, interval, timeout time.Duration) error

WaitForSerialOutput waits to a string match on a serial port.

Jump to

Keyboard shortcuts

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