iso

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MPL-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootConfig

type BootConfig struct {
	BootCommand []string `mapstructure:"boot_command"`
	RawBootWait string   `mapstructure:"boot_wait"` // example: "1m30s"; default: "10s"
	// contains filtered or unexported fields
}

func (*BootConfig) Prepare

func (c *BootConfig) Prepare() []error

type Builder

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

func (*Builder) Cancel

func (b *Builder) Cancel()

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) ([]string, error)

func (*Builder) Run

func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)

type CDRomConfig

type CDRomConfig struct {
	ISOPaths []string `mapstructure:"iso_paths"`
}

type Config

type Config struct {
	packerCommon.PackerConfig `mapstructure:",squash"`

	common.ConnectConfig      `mapstructure:",squash"`
	CreateConfig              `mapstructure:",squash"`
	common.LocationConfig     `mapstructure:",squash"`
	common.HardwareConfig     `mapstructure:",squash"`
	common.ConfigParamsConfig `mapstructure:",squash"`

	CDRomConfig           `mapstructure:",squash"`
	FloppyConfig          `mapstructure:",squash"`
	common.RunConfig      `mapstructure:",squash"`
	BootConfig            `mapstructure:",squash"`
	Comm                  communicator.Config `mapstructure:",squash"`
	common.ShutdownConfig `mapstructure:",squash"`

	CreateSnapshot    bool `mapstructure:"create_snapshot"`
	ConvertToTemplate bool `mapstructure:"convert_to_template"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(raws ...interface{}) (*Config, []string, error)

type CreateConfig

type CreateConfig struct {
	Version     uint   `mapstructure:"vm_version"`
	GuestOSType string `mapstructure:"guest_os_type"`

	DiskControllerType  string `mapstructure:"disk_controller_type"`
	DiskSize            int64  `mapstructure:"disk_size"`
	DiskThinProvisioned bool   `mapstructure:"disk_thin_provisioned"`

	Network       string `mapstructure:"network"`
	NetworkCard   string `mapstructure:"network_card"`
	USBController bool   `mapstructure:"usb_controller"`
}

func (*CreateConfig) Prepare

func (c *CreateConfig) Prepare() []error

type FloppyConfig

type FloppyConfig struct {
	FloppyIMGPath     string   `mapstructure:"floppy_img_path"`
	FloppyFiles       []string `mapstructure:"floppy_files"`
	FloppyDirectories []string `mapstructure:"floppy_dirs"`
}

type StepAddCDRom

type StepAddCDRom struct {
	Config *CDRomConfig
}

func (*StepAddCDRom) Cleanup

func (s *StepAddCDRom) Cleanup(state multistep.StateBag)

func (*StepAddCDRom) Run

type StepAddFloppy

type StepAddFloppy struct {
	Config    *FloppyConfig
	Datastore string
	Host      string
}

func (*StepAddFloppy) Cleanup

func (s *StepAddFloppy) Cleanup(state multistep.StateBag)

func (*StepAddFloppy) Run

type StepBootCommand

type StepBootCommand struct {
	Config *BootConfig
}

func (*StepBootCommand) Cleanup

func (s *StepBootCommand) Cleanup(state multistep.StateBag)

func (*StepBootCommand) Run

type StepCreateVM

type StepCreateVM struct {
	Config   *CreateConfig
	Location *common.LocationConfig
}

func (*StepCreateVM) Cleanup

func (s *StepCreateVM) Cleanup(state multistep.StateBag)

func (*StepCreateVM) Run

type StepRemoveCDRom

type StepRemoveCDRom struct{}

func (*StepRemoveCDRom) Cleanup

func (s *StepRemoveCDRom) Cleanup(state multistep.StateBag)

func (*StepRemoveCDRom) Run

type StepRemoveFloppy

type StepRemoveFloppy struct {
	Datastore string
	Host      string
}

func (*StepRemoveFloppy) Cleanup

func (s *StepRemoveFloppy) Cleanup(state multistep.StateBag)

func (*StepRemoveFloppy) Run

Jump to

Keyboard shortcuts

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