Versions in this module Expand all Collapse all v1 v1.0.4 Apr 13, 2022 Changes in this version + const BuilderId + const KeyLeftShift + func VNCPassword() string + type Artifact struct + func (*Artifact) BuilderId() string + func (*Artifact) Id() string + func (a *Artifact) Destroy() error + func (a *Artifact) Files() []string + func (a *Artifact) State(name string) interface{} + func (a *Artifact) String() string + type Builder struct + func (b *Builder) ConfigSpec() hcldec.ObjectSpec + func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) + func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) (packersdk.Artifact, error) + type CommConfig struct + Comm communicator.Config + HostPortMax int + HostPortMin int + SSHHostPortMax int + SSHHostPortMin int + SkipNatMapping bool + func (c *CommConfig) Prepare(ctx *interpolate.Context) (warnings []string, errs []error) + type Config struct + Accelerator string + AdditionalDiskSize []string + CDROMInterface string + CommConfig CommConfig + CpuCount int + DetectZeroes string + DiskCache string + DiskCompression bool + DiskDiscard string + DiskImage bool + DiskInterface string + DiskSize string + Display string + Firmware string + Format string + Headless bool + ISOSkipCache bool + MachineType string + MemorySize int + NetBridge string + NetDevice string + OutputDir string + PFlash bool + QMPEnable bool + QMPSocketPath string + QemuArgs [][]string + QemuBinary string + QemuImgArgs QemuImgArgs + RunOnce bool + SkipCompaction bool + SkipResizeDisk bool + UseBackingFile bool + UseDefaultDisplay bool + VMName string + VNCBindAddress string + VNCPortMax int + VNCPortMin int + VNCUsePassword bool + func (*Config) FlatMapstructure() interface{ ... } + func (c *Config) Prepare(raws ...interface{}) ([]string, error) + type Driver interface + Copy func(string, string) error + Qemu func(qemuArgs ...string) error + QemuImg func(...string) error + Stop func() error + Verify func() error + Version func() (string, error) + WaitForShutdown func(<-chan struct{}) bool + type DriverCancelCallback func(state multistep.StateBag) bool + type DriverMock struct + CopyCalled bool + CopyErr error + QemuCalls [][]string + QemuErrs []error + QemuImgCalled bool + QemuImgCalls []string + QemuImgErrs []error + StopCalled bool + StopErr error + VerifyCalled bool + VerifyErr error + VersionCalled bool + VersionErr error + VersionResult string + WaitForShutdownCalled bool + WaitForShutdownState bool + func (d *DriverMock) Copy(source, dst string) error + func (d *DriverMock) Qemu(args ...string) error + func (d *DriverMock) QemuImg(args ...string) error + func (d *DriverMock) Stop() error + func (d *DriverMock) Verify() error + func (d *DriverMock) Version() (string, error) + func (d *DriverMock) WaitForShutdown(cancelCh <-chan struct{}) bool + type FlatConfig struct + Accelerator *string + AdditionalDiskSize []string + BootCommand []string + BootGroupInterval *string + BootKeyInterval *string + BootWait *string + CDContent map[string]string + CDFiles []string + CDLabel *string + CDROMInterface *string + CpuCount *int + DetectZeroes *string + DisableVNC *bool + DiskCache *string + DiskCompression *bool + DiskDiscard *string + DiskImage *bool + DiskInterface *string + DiskSize *string + Display *string + Firmware *string + FloppyContent map[string]string + FloppyDirectories []string + FloppyFiles []string + FloppyLabel *string + Format *string + HTTPAddress *string + HTTPContent map[string]string + HTTPDir *string + HTTPInterface *string + HTTPPortMax *int + HTTPPortMin *int + Headless *bool + HostPortMax *int + HostPortMin *int + ISOChecksum *string + ISOSkipCache *bool + ISOUrls []string + MachineType *string + MemorySize *int + NetBridge *string + NetDevice *string + OutputDir *string + PFlash *bool + PackerBuildName *string + PackerBuilderType *string + PackerCoreVersion *string + PackerDebug *bool + PackerForce *bool + PackerOnError *string + PackerSensitiveVars []string + PackerUserVars map[string]string + PauseBeforeConnect *string + QMPEnable *bool + QMPSocketPath *string + QemuArgs [][]string + QemuBinary *string + QemuImgArgs *FlatQemuImgArgs + RawSingleISOUrl *string + RunOnce *bool + SSHAgentAuth *bool + SSHBastionAgentAuth *bool + SSHBastionCertificateFile *string + SSHBastionHost *string + SSHBastionInteractive *bool + SSHBastionPassword *string + SSHBastionPort *int + SSHBastionPrivateKeyFile *string + SSHBastionUsername *string + SSHCertificateFile *string + SSHCiphers []string + SSHClearAuthorizedKeys *bool + SSHDisableAgentForwarding *bool + SSHFileTransferMethod *string + SSHHandshakeAttempts *int + SSHHost *string + SSHHostPortMax *int + SSHHostPortMin *int + SSHKEXAlgos []string + SSHKeepAliveInterval *string + SSHKeyPairName *string + SSHLocalTunnels []string + SSHPassword *string + SSHPort *int + SSHPrivateKey []byte + SSHPrivateKeyFile *string + SSHProxyHost *string + SSHProxyPassword *string + SSHProxyPort *int + SSHProxyUsername *string + SSHPty *bool + SSHPublicKey []byte + SSHReadWriteTimeout *string + SSHRemoteTunnels []string + SSHTemporaryKeyPairBits *int + SSHTemporaryKeyPairName *string + SSHTemporaryKeyPairType *string + SSHTimeout *string + SSHUsername *string + SSHWaitTimeout *string + ShutdownCommand *string + ShutdownTimeout *string + SkipCompaction *bool + SkipNatMapping *bool + SkipResizeDisk *bool + TargetExtension *string + TargetPath *string + Type *string + UseBackingFile *bool + UseDefaultDisplay *bool + VMName *string + VNCBindAddress *string + VNCPortMax *int + VNCPortMin *int + VNCUsePassword *bool + WinRMHost *string + WinRMInsecure *bool + WinRMNoProxy *bool + WinRMPassword *string + WinRMPort *int + WinRMTimeout *string + WinRMUseNTLM *bool + WinRMUseSSL *bool + WinRMUser *string + func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec + type FlatQemuImgArgs struct + Convert []string + Create []string + Resize []string + func (*FlatQemuImgArgs) HCL2Spec() map[string]hcldec.Spec + type QemuDriver struct + QemuImgPath string + QemuPath string + func (d *QemuDriver) Copy(sourceName, targetName string) error + func (d *QemuDriver) Qemu(qemuArgs ...string) error + func (d *QemuDriver) QemuImg(args ...string) error + func (d *QemuDriver) Stop() error + func (d *QemuDriver) Verify() error + func (d *QemuDriver) Version() (string, error) + func (d *QemuDriver) WaitForShutdown(cancelCh <-chan struct{}) bool + type QemuImgArgs struct + Convert []string + Create []string + Resize []string + func (*QemuImgArgs) FlatMapstructure() interface{ ... }