Module defaults

Source
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.