Documentation ¶
Index ¶
- func InstanceIPs(inst *compute.Instance) (intIP, extIP string)
- type API
- func (a *API) Client() *http.Client
- func (a *API) CreateImage(name, source string, overwrite bool) error
- func (a *API) CreateInstance(userdata string, keys []*agent.Key) (*compute.Instance, error)
- func (a *API) ListImages(prefix string) ([]string, error)
- func (a *API) ListInstances(prefix string) ([]*compute.Instance, error)
- func (a *API) TerminateInstance(name string) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceIPs ¶
func InstanceIPs(inst *compute.Instance) (intIP, extIP string)
Taken from: https://github.com/golang/build/blob/master/buildlet/gce.go
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateImage ¶
CreateImage creates an image on GCE and and wait for completion. If overwrite is true, an existing image will be overwritten if it exists.
func (*API) CreateInstance ¶
CreateInstance creates a Google Compute Engine instance.
func (*API) ListInstances ¶
func (*API) TerminateInstance ¶
Click to show internal directories.
Click to hide internal directories.