Documentation
¶
Index ¶
Constants ¶
View Source
const (
// BridgeName is the name of the network bridge used for VMs
BridgeName = "sshvm-br0"
)
Variables ¶
This section is empty.
Functions ¶
func GetFirecrackerBinary ¶
func GetFirecrackerBinary() []byte
GetFirecrackerBinary returns the embedded firecracker binary
func GetVmlinuxBinary ¶
func GetVmlinuxBinary() []byte
GetVmlinuxBinary returns the embedded vmlinux kernel
Types ¶
type IPPool ¶
type IPPool struct {
// contains filtered or unexported fields
}
IPPool manages allocation of IP addresses for VMs
func (*IPPool) IsAllocated ¶
IsAllocated checks if an IP address is allocated
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the lifecycle of Firecracker VMs
func NewManager ¶
func NewManager(config *internal.Config, logger logrus.FieldLogger, firecrackerBinary []byte, vmlinuxBinary []byte) (*Manager, error)
NewManager creates a new VM manager
func (*Manager) GetActiveVMCount ¶
GetActiveVMCount returns the current number of active VMs
func (*Manager) GetOrCreateVM ¶
GetOrCreateVM gets an existing VM or creates a new one if it doesn't exist
Click to show internal directories.
Click to hide internal directories.