Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComputeClient ¶
GetComputeClient creates a GCE client with a 1 minute deadline.
Types ¶
type Instance ¶
type Instance struct { Name string Zone string Project string MachineType string ExternalIP string SshKey string SshUser string ComputeService *compute.Service }
Instance represents a GCE instance.
func CreateInstance ¶
CreateInstance creates a GCE instance with provided spec.
func (*Instance) DeleteInstance ¶
DeleteInstance deletes a GCE instance.
func (*Instance) RunCommand ¶
RunCommand runs a command on the GCE instance and returns the command result.
Click to show internal directories.
Click to hide internal directories.