Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + const ConfigDir + func FindAll() (map[string]Process, error) + type Boot struct + Args string + Initrd string + Kernel string + type CPU uint8 + func (c CPU) String() string + type Client struct + func NewClient(unix string) *Client + func (c *Client) Inspect(ctx context.Context) (VMData, error) + func (c *Client) Pause(ctx context.Context) error + func (c *Client) Resume(ctx context.Context) error + func (c *Client) Shutdown(ctx context.Context) error + type Config struct + CPU CPU + HTEnabled bool + Mem MemMib + type Console struct + ListenAddress net.IPNet + Namespace string + VmAddress net.IPNet + type Disk struct + ID string + Path string + ReadOnly bool + RootDevice bool + func (d Disk) String() string + type Disks []Disk + type Interface struct + Console *Console + ID string + Mac string + Tap string + type InterfaceType string + const InterfaceMacvtap + const InterfaceTAP + type Interfaces []Interface + type LegacyMonitor struct + func (m *LegacyMonitor) Monitor(ctx context.Context) + type Machine struct + Boot Boot + Config Config + Devices []string + Disks Disks + FS []VirtioFS + ID string + Interfaces Interfaces + NoKeepAlive bool + func MachineFromFile(n string) (*Machine, error) + func (m *Machine) Run(ctx context.Context, socket, logs string) (pkg.MachineInfo, error) + func (m *Machine) Save(n string) error + type MemMib uint64 + func (m MemMib) String() string + type Module struct + func NewVMModule(cl zbus.Client, root, config string) (*Module, error) + func (m *Module) Delete(name string) error + func (m *Module) Exists(id string) bool + func (m *Module) Inspect(name string) (pkg.VMInfo, error) + func (m *Module) List() ([]string, error) + func (m *Module) Lock(name string, lock bool) error + func (m *Module) Logs(name string) (string, error) + func (m *Module) Metrics() (pkg.MachineMetrics, error) + func (m *Module) Monitor(ctx context.Context) + func (m *Module) Run(vm pkg.VM) (pkg.MachineInfo, error) + func (m *Module) StreamCreate(name string, stream pkg.Stream) error + func (m *Module) StreamDelete(id string) error + type Process struct + Args []string + Pid int + func Find(name string) (Process, error) + func (p *Process) GetParam(arg string) ([]string, bool) + type VMData struct + CPU CPU + Memory MemMib + PTYPath string + type VirtioFS struct + Path string + Tag string