google

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Provider

type Provider struct {
	client.Client
	// contains filtered or unexported fields
}

The Provider objects represents a connection to GCE.

func New

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

New creates a GCE client.

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

func (*Provider) Boot

func (prvdr *Provider) Boot(bootSet []db.Machine) ([]string, error)

Boot blocks while creating instances.

func (*Provider) Cleanup

func (prvdr *Provider) Cleanup() error

Cleanup removes unnecessary detritus from this provider. It's intended to be called when there are no VMs running or expected to be running soon.

func (*Provider) List

func (prvdr *Provider) List() ([]db.Machine, error)

List the current machines in the cluster.

func (*Provider) SetACLs

func (prvdr *Provider) SetACLs(acls []acl.ACL) error

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

func (*Provider) Stop

func (prvdr *Provider) Stop(machines []db.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 (*Provider) UpdateFloatingIPs

func (prvdr *Provider) UpdateFloatingIPs(machines []db.Machine) error

UpdateFloatingIPs updates IPs of machines by recreating their network interfaces.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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