Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + const BuilderId + const LOCK_EX — darwin/amd64, js/wasm, linux/amd64 + const LOCK_NB — darwin/amd64, js/wasm, linux/amd64 + const LOCK_UN — darwin/amd64, js/wasm, linux/amd64 + func AvailableDevice() (string, error) + func RunLocalCommands(commands []string, wrappedCommand CommandWrapper, ctx interpolate.Context, ...) error + func ShellCommand(command string) *exec.Cmd + 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 Cleanup interface + CleanupFunc func(multistep.StateBag) error + type CommandWrapper func(string) (string, error) + type Communicator struct + Chroot string + CmdWrapper CommandWrapper + func (c *Communicator) Download(src string, w io.Writer) error + func (c *Communicator) DownloadDir(src string, dst string, exclude []string) error + func (c *Communicator) Start(cmd *packer.RemoteCmd) error + func (c *Communicator) Upload(dst string, r io.Reader, fi *os.FileInfo) error + func (c *Communicator) UploadDir(dst string, src string, exclude []string) error + type Config struct + ChrootMounts [][]string + CommandWrapper string + CopyFiles []string + DevicePath string + FromScratch bool + MountOptions []string + MountPartition string + MountPath string + NVMEDevicePath string + PostMountCommands []string + PreMountCommands []string + RootDeviceName string + RootVolumeSize int64 + RootVolumeTags awscommon.TagMap + RootVolumeType string + SourceAmi string + SourceAmiFilter awscommon.AmiFilterOptions + type StepAttachVolume struct + func (s *StepAttachVolume) Cleanup(state multistep.StateBag) + func (s *StepAttachVolume) CleanupFunc(state multistep.StateBag) error + func (s *StepAttachVolume) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepCheckRootDevice struct + func (s *StepCheckRootDevice) Cleanup(multistep.StateBag) + func (s *StepCheckRootDevice) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepChrootProvision struct + func (s *StepChrootProvision) Cleanup(state multistep.StateBag) + func (s *StepChrootProvision) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepCopyFiles struct + func (s *StepCopyFiles) Cleanup(state multistep.StateBag) + func (s *StepCopyFiles) CleanupFunc(state multistep.StateBag) error + func (s *StepCopyFiles) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepCreateVolume struct + Ctx interpolate.Context + RootVolumeSize int64 + RootVolumeTags awscommon.TagMap + RootVolumeType string + func (s *StepCreateVolume) Cleanup(state multistep.StateBag) + func (s *StepCreateVolume) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepEarlyCleanup struct + func (s *StepEarlyCleanup) Cleanup(state multistep.StateBag) + func (s *StepEarlyCleanup) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepEarlyUnflock struct + func (s *StepEarlyUnflock) Cleanup(state multistep.StateBag) + func (s *StepEarlyUnflock) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepFlock struct + func (s *StepFlock) Cleanup(state multistep.StateBag) + func (s *StepFlock) CleanupFunc(state multistep.StateBag) error + func (s *StepFlock) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepInstanceInfo struct + func (s *StepInstanceInfo) Cleanup(multistep.StateBag) + func (s *StepInstanceInfo) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepMountDevice struct + MountOptions []string + MountPartition string + func (s *StepMountDevice) Cleanup(state multistep.StateBag) + func (s *StepMountDevice) CleanupFunc(state multistep.StateBag) error + func (s *StepMountDevice) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepMountExtra struct + func (s *StepMountExtra) Cleanup(state multistep.StateBag) + func (s *StepMountExtra) CleanupFunc(state multistep.StateBag) error + func (s *StepMountExtra) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepPostMountCommands struct + Commands []string + func (s *StepPostMountCommands) Cleanup(state multistep.StateBag) + func (s *StepPostMountCommands) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepPreMountCommands struct + Commands []string + func (s *StepPreMountCommands) Cleanup(state multistep.StateBag) + func (s *StepPreMountCommands) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepPrepareDevice struct + func (s *StepPrepareDevice) Cleanup(state multistep.StateBag) + func (s *StepPrepareDevice) Run(_ context.Context, state multistep.StateBag) multistep.StepAction + type StepRegisterAMI struct + EnableAMIENASupport *bool + EnableAMISriovNetSupport bool + RootVolumeSize int64 + func (s *StepRegisterAMI) Cleanup(state multistep.StateBag) + func (s *StepRegisterAMI) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction + type StepSnapshot struct + func (s *StepSnapshot) Cleanup(state multistep.StateBag) + func (s *StepSnapshot) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction