Versions in this module Expand all Collapse all v0 v0.5.1 Jan 2, 2014 v0.5.0 Dec 30, 2013 Changes in this version + const BuilderId + const DriverScopes + type Artifact struct + func (*Artifact) BuilderId() string + func (*Artifact) Files() []string + func (a *Artifact) Destroy() error + func (a *Artifact) Id() string + func (a *Artifact) String() string + type Builder struct + func (b *Builder) Cancel() + func (b *Builder) Prepare(raws ...interface{}) ([]string, error) + func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) + type Config struct + BucketName string + ClientSecretsFile string + ImageDescription string + ImageName string + MachineType string + Metadata map[string]string + Network string + Passphrase string + PrivateKeyFile string + ProjectId string + RawSSHTimeout string + RawStateTimeout string + SSHPort uint + SSHUsername string + SourceImage string + Tags []string + Zone string + func NewConfig(raws ...interface{}) (*Config, []string, error) + type Driver interface + CreateImage func(name, description, url string) <-chan error + DeleteImage func(name string) <-chan error + DeleteInstance func(zone, name string) (<-chan error, error) + GetNatIP func(zone, name string) (string, error) + RunInstance func(*InstanceConfig) (<-chan error, error) + WaitForInstance func(state, zone, name string) <-chan error + func NewDriverGCE(ui packer.Ui, projectId string, c *clientSecrets, key []byte) (Driver, error) + type DriverMock struct + CreateImageDesc string + CreateImageErrCh <-chan error + CreateImageName string + CreateImageURL string + DeleteImageErrCh <-chan error + DeleteImageName string + DeleteInstanceErr error + DeleteInstanceErrCh <-chan error + DeleteInstanceName string + DeleteInstanceZone string + GetNatIPErr error + GetNatIPName string + GetNatIPResult string + GetNatIPZone string + RunInstanceConfig *InstanceConfig + RunInstanceErr error + RunInstanceErrCh <-chan error + WaitForInstanceErrCh <-chan error + WaitForInstanceName string + WaitForInstanceState string + WaitForInstanceZone string + func (d *DriverMock) CreateImage(name, description, url string) <-chan error + func (d *DriverMock) DeleteImage(name string) <-chan error + func (d *DriverMock) DeleteInstance(zone, name string) (<-chan error, error) + func (d *DriverMock) GetNatIP(zone, name string) (string, error) + func (d *DriverMock) RunInstance(c *InstanceConfig) (<-chan error, error) + func (d *DriverMock) WaitForInstance(state, zone, name string) <-chan error + type InstanceConfig struct + Description string + Image string + MachineType string + Metadata map[string]string + Name string + Network string + Tags []string + Zone string + type StepCreateImage int + func (s *StepCreateImage) Cleanup(state multistep.StateBag) + func (s *StepCreateImage) Run(state multistep.StateBag) multistep.StepAction + type StepCreateInstance struct + func (s *StepCreateInstance) Cleanup(state multistep.StateBag) + func (s *StepCreateInstance) Run(state multistep.StateBag) multistep.StepAction + type StepCreateSSHKey int + func (s *StepCreateSSHKey) Cleanup(state multistep.StateBag) + func (s *StepCreateSSHKey) Run(state multistep.StateBag) multistep.StepAction + type StepInstanceInfo int + func (s *StepInstanceInfo) Cleanup(state multistep.StateBag) + func (s *StepInstanceInfo) Run(state multistep.StateBag) multistep.StepAction + type StepRegisterImage int + func (s *StepRegisterImage) Cleanup(state multistep.StateBag) + func (s *StepRegisterImage) Run(state multistep.StateBag) multistep.StepAction + type StepUpdateGsutil int + func (s *StepUpdateGsutil) Cleanup(state multistep.StateBag) + func (s *StepUpdateGsutil) Run(state multistep.StateBag) multistep.StepAction + type StepUploadImage int + func (s *StepUploadImage) Cleanup(state multistep.StateBag) + func (s *StepUploadImage) Run(state multistep.StateBag) multistep.StepAction