google

package
v0.0.0-...-6dffcca Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Google

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

Google implements a driver for Google Compute Engine.

func NewDriver

func NewDriver(context *base.Context, region string) *Google

NewDriver returns an initialized Google driver.

func (*Google) AfterFirstNode

func (g *Google) AfterFirstNode() error

AfterFirstNode runs any steps needed after the first node was created. The cloud compute HTTP load balancer setup is really convoluted: https://cloud.google.com/compute/docs/load-balancing/http/#fundamentals Things we create (children must be created before their parents): - firewall rule - global forwarding rule

  • HTTP proxy
  • URL map
  • backend service
  • health check
  • instance group

func (*Google) Context

func (g *Google) Context() *base.Context

Context returns the base context.

func (*Google) DockerMachineCreateArgs

func (g *Google) DockerMachineCreateArgs() []string

DockerMachineCreateArgs returns the list of driver-specific arguments to pass to 'docker-machine create' TODO(marc): there are many other flags, see 'docker-machine help create'

func (*Google) DockerMachineDriver

func (g *Google) DockerMachineDriver() string

DockerMachineDriver returns the name of the docker-machine driver.

func (*Google) GetNodeConfig

func (g *Google) GetNodeConfig(name string) (*drivers.HostConfig, error)

GetNodeConfig takes a node name and reads its docker-machine config.

func (*Google) Init

func (g *Google) Init() error

Init creates and and initializes the compute client.

func (*Google) PrintStatus

func (g *Google) PrintStatus()

PrintStatus prints the load balancer address to stdout.

func (*Google) StartNode

func (g *Google) StartNode(name string, cfg *drivers.HostConfig) error

StartNode adds the node to the load balancer.

func (*Google) StopNode

func (g *Google) StopNode(name string, cfg *drivers.HostConfig) error

StopNode removes the node from the load balancer.

Jump to

Keyboard shortcuts

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