Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boot ¶
type Boot struct { Kexec Kexec `toml:"kexec"` Firmware Firmware `toml:"firmware"` FBSD FBSD `toml:"fbsd"` }
Boot config
type Config ¶
type Config struct { Network Network `toml:"network"` VM VM `toml:"vm"` Path string // Path to the loaded configuration }
Config represents a hkmgr.toml config file
func (*Config) Defaults ¶ added in v0.0.5
Defaults sets default values for unset variables in the config.
func (*Config) UpdateRelativePaths ¶ added in v0.0.5
func (c *Config) UpdateRelativePaths()
UpdateRelativePaths finds relative paths in the config and turns them into fully qualified paths based on the config file path.
type FBSD ¶
type Kexec ¶
type NetConf ¶
type NetConf struct { IP string `toml:"ip"` MAC string `toml:"mac"` Device string `toml:"device"` Driver string `toml:"driver"` MemberOf string `toml:"memberOf"` }
NetConf is a VM network configuration
type NetTypes ¶
type Tap ¶
type VMConfig ¶
type VMConfig struct { Memory string `toml:"memory"` Cores int `toml:"cores"` UUID string `toml:"uuid"` SSHKey string `toml:"ssh_key"` ProvisionPre string `toml:"provision_pre"` ProvisionPost string `toml:"provision_post"` Before []string `toml:"before"` After []string `toml:"after"` Requires []string `toml:"requires"` RunDir string `toml:"run_dir"` Network []*NetConf `toml:"network"` Boot Boot `toml:"boot"` HDD []*HDD `toml:"hdd"` CDROM []*CDROM `toml:"cdrom"` PID int }
func (*VMConfig) Kill ¶ added in v0.0.3
Kill attempts to kill a VM via the pid file with the specified signal.
Click to show internal directories.
Click to hide internal directories.