Documentation ¶
Index ¶
- type Google
- func (g *Google) AfterFirstNode() error
- func (g *Google) Context() *base.Context
- func (g *Google) DockerMachineCreateArgs() []string
- func (g *Google) DockerMachineDriver() string
- func (g *Google) GetNodeConfig(name string) (*drivers.HostConfig, error)
- func (g *Google) Init() error
- func (g *Google) PrintStatus()
- func (g *Google) StartNode(name string, cfg *drivers.HostConfig) error
- func (g *Google) StopNode(name string, cfg *drivers.HostConfig) error
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 (*Google) AfterFirstNode ¶
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) DockerMachineCreateArgs ¶
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 ¶
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) PrintStatus ¶
func (g *Google) PrintStatus()
PrintStatus prints the load balancer address to stdout.