Hyper.Cfg.Dirs (Hyper v0.1.0)

Copy Markdown View Source

The node's work directory and every directory derived from it.

work_dir is the single configurable root (config.toml-only, shared with the setuid helper); everything else is a fixed sub-path so the node and helper agree on layout without a second key to keep in sync.

Summary

Functions

Per-VM chroot directories (<work_dir>/jails).

Where a node-downloaded firecracker installs (<work_dir>/redist/firecracker).

Read-only image layer store. Delegates to Hyper.Cfg.Img.store/0.

Node-downloaded binaries (<work_dir>/redist).

Per-VM copy-on-write writable layers (<work_dir>/scratch).

Per-VM control/gRPC sockets (<work_dir>/socks).

Where the default umoci installs (<work_dir>/redist/umoci).

Where guest kernels install (<work_dir>/redist/vmlinux).

Root work directory for this node. config.toml work_dir, default /srv/hyper.

Functions

chroot_base()

@spec chroot_base() :: Path.t()

Per-VM chroot directories (<work_dir>/jails).

firecracker_install_dir()

@spec firecracker_install_dir() :: Path.t()

Where a node-downloaded firecracker installs (<work_dir>/redist/firecracker).

layer_dir()

@spec layer_dir() :: Path.t()

Read-only image layer store. Delegates to Hyper.Cfg.Img.store/0.

redist_dir()

@spec redist_dir() :: Path.t()

Node-downloaded binaries (<work_dir>/redist).

scratch_dir()

@spec scratch_dir() :: Path.t()

Per-VM copy-on-write writable layers (<work_dir>/scratch).

socket_dir()

@spec socket_dir() :: Path.t()

Per-VM control/gRPC sockets (<work_dir>/socks).

umoci_install_dir()

@spec umoci_install_dir() :: Path.t()

Where the default umoci installs (<work_dir>/redist/umoci).

vmlinux_install_dir()

@spec vmlinux_install_dir() :: Path.t()

Where guest kernels install (<work_dir>/redist/vmlinux).

work_dir()

@spec work_dir() :: Path.t()

Root work directory for this node. config.toml work_dir, default /srv/hyper.