Expand description
Default values and constants used throughout the microsandbox project.
This module provides default configuration values, paths, and other constants that are used by various components of the microsandbox system.
§Examples
use microsandbox_utils::defaults::{DEFAULT_NUM_VCPUS, DEFAULT_MEMORY_MIB};
// Use default values for VM configuration
let vcpus = DEFAULT_NUM_VCPUS;
let memory = DEFAULT_MEMORY_MIB;
Constants§
- DEFAULT_
CONFIG - The default configuration file content
- DEFAULT_
LOG_ MAX_ SIZE - The default maximum log file size (10MB)
- DEFAULT_
MEMORY_ MIB - The default amount of memory in MiB to use for the MicroVm.
- DEFAULT_
NUM_ VCPUS - The default number of vCPUs to use for the MicroVm.
- DEFAULT_
OCI_ REFERENCE_ REPO_ NAMESPACE - The default OCI reference repository namespace.
- DEFAULT_
OCI_ REFERENCE_ TAG - The default OCI reference tag.
- DEFAULT_
OCI_ REGISTRY - The default OCI registry domain.
- DEFAULT_
PORTAL_ GUEST_ PORT - The default microsandbox-portal port.
- DEFAULT_
SERVER_ HOST - The default localhost address.
- DEFAULT_
SERVER_ NAMESPACE - The default namespace for the sandbox server.
- DEFAULT_
SERVER_ PORT - The default microsandbox-server port.
- DEFAULT_
SHELL - The default shell to use for the sandbox.
- DEFAULT_
WORKDIR - The default working directory for the sandbox.
Statics§
- DEFAULT_
MICROSANDBOX_ HOME - The path where all microsandbox global data is stored.
- DEFAULT_
MSBRUN_ EXE_ PATH - The default path to the msbrun binary.
- DEFAULT_
MSBSERVER_ EXE_ PATH - The default path to the msbserver binary.