Documentation
¶
Index ¶
- Constants
- type Artifact
- type Builder
- type Config
- type Driver
- type VmmDriver
- func (driver *VmmDriver) CreateDisk(path, size string) error
- func (driver *VmmDriver) Flush() error
- func (driver *VmmDriver) SendKey(key rune, action bootcommand.KeyAction) error
- func (driver *VmmDriver) SendSpecial(special string, action bootcommand.KeyAction) error
- func (driver *VmmDriver) Start(name string, args ...string) error
- func (driver *VmmDriver) Stop(name string) error
Constants ¶
View Source
const BuilderId = "prep.vmm"
BuilderId references the unique ID of this builder.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact contains references to the things that a build has created.
func (*Artifact) BuilderId ¶
BuilderId returns the ID of the builder that is used to create this artifact.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is responsible for create a machine and generating an image.
type Config ¶
type Config struct {
common.PackerConfig `mapstructure:",squash"`
common.HTTPConfig `mapstructure:",squash"`
common.ISOConfig `mapstructure:",squash"`
bootcommand.BootConfig `mapstructure:",squash"`
VMName string `mapstructure:"vm_name"`
BiosFile string `mapstructure:"bios_file"`
DiskSize string `mapstructure:"disk_size"`
Format string `mapstructure:"format`
MemSize string `mapstructure:"mem_size"`
OutputDir string `mapstructure:"output_directory"`
// contains filtered or unexported fields
}
Config describes the configuration of this builder.
type Driver ¶
type Driver interface {
bootcommand.BCDriver
CreateDisk(path, size string) error
Start(name string, args ...string) error
Stop(name string) error
}
Driver describes a VMM driver.
type VmmDriver ¶
type VmmDriver struct {
// contains filtered or unexported fields
}
VmmDriver manages a vmm instance.
func (*VmmDriver) CreateDisk ¶
CreateDisk creates a new disk image.
func (*VmmDriver) SendKey ¶
func (driver *VmmDriver) SendKey(key rune, action bootcommand.KeyAction) error
SendKey sends a key press.
func (*VmmDriver) SendSpecial ¶
func (driver *VmmDriver) SendSpecial(special string, action bootcommand.KeyAction) error
SendSpecial sends a special character.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.