google

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRegion = "us-east1-b"

DefaultRegion is the preferred location for machines that don't have a user specified region preference.

Variables

View Source
var Zones = []string{"us-central1-a", "us-east1-b", "europe-west1-b"}

Zones is the list of supported GCE zones

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

The Cluster objects represents a connection to GCE.

func New

func New(namespace, zone string) (*Cluster, error)

New creates a GCE cluster.

Clusters are differentiated (namespace) by setting the description and filtering off of that.

func (*Cluster) Boot

func (clst *Cluster) Boot(bootSet []machine.Machine) error

Boot blocks while creating instances.

func (*Cluster) List

func (clst *Cluster) List() ([]machine.Machine, error)

List the current machines in the cluster.

func (*Cluster) SetACLs

func (clst *Cluster) SetACLs(acls []acl.ACL) error

SetACLs adds and removes acls in `clst` so that it conforms to `acls`.

func (*Cluster) Stop

func (clst *Cluster) Stop(machines []machine.Machine) error

Stop blocks while deleting the instances.

If an error occurs while deleting, it will finish the ones that have successfully started before returning.

func (*Cluster) UpdateFloatingIPs

func (clst *Cluster) UpdateFloatingIPs(machines []machine.Machine) error

UpdateFloatingIPs updates IPs of machines by recreating their network interfaces.

Jump to

Keyboard shortcuts

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