Documentation
¶
Rendered for darwin/amd64
Overview ¶
Package shimconfig defines the configuration types shared between the hypeman API server and the vz-shim subprocess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskConfig ¶
DiskConfig represents a disk attached to the VM.
type NetworkConfig ¶
type NetworkConfig struct {
MAC string `json:"mac"`
}
NetworkConfig represents a network interface.
type ShimConfig ¶
type ShimConfig struct {
// Compute resources
VCPUs int `json:"vcpus"`
MemoryBytes int64 `json:"memory_bytes"`
// Storage
Disks []DiskConfig `json:"disks"`
// Network
Networks []NetworkConfig `json:"networks"`
// Console
SerialLogPath string `json:"serial_log_path"`
// Boot configuration
KernelPath string `json:"kernel_path"`
InitrdPath string `json:"initrd_path"`
KernelArgs string `json:"kernel_args"`
// Socket paths (where shim should listen)
ControlSocket string `json:"control_socket"`
VsockSocket string `json:"vsock_socket"`
// Logging
LogPath string `json:"log_path"`
}
ShimConfig is the configuration passed from hypeman to the shim.
Click to show internal directories.
Click to hide internal directories.