Module path

Source
Expand description

microsandbox_utils::path is a module containing path utilities for the microsandbox project.

Enums§

SupportedPathType
The type of a supported path.

Constants§

EXTRACTED_LAYER_SUFFIX
The suffix added to extracted layer directories
INSTALLS_SUBDIR
The directory where installed sandboxes are stored
LAYERS_SUBDIR
The directory where global image layers are stored
LOG_SUBDIR
The directory where project logs are stored
LOG_SUFFIX
The suffix for log files
MICROSANDBOX_CONFIG_FILENAME
The microsandbox config file name.
MICROSANDBOX_ENV_DIR
The directory name for microsandbox’s project-specific data
MICROSANDBOX_HOME_DIR
The directory name for microsandbox’s global data
NAMESPACES_SUBDIR
The directory where namespaces are stored
OCI_DB_FILENAME
The filename for the global OCI database
PATCH_SUBDIR
The directory where project patch layers are stored
PORTAL_PORTS_FILE
The file where sandbox portal ports are stored
RW_SUBDIR
The directory where project read-write layers are stored
SANDBOX_DB_FILENAME
The filename for the project active sandbox database
SANDBOX_DIR
The directory on the microvm where sandbox scripts are stored
SCRIPTS_DIR
The directory on the microvm where sandbox scripts are stored
SERVER_KEY_FILE
The server secret key file
SERVER_PID_FILE
The PID file for the server
SHELL_SCRIPT_NAME
The shell script name.
SUPERVISOR_LOG_FILENAME
The filename for the supervisor’s log file
XDG_BIN_DIR
The bin subdirectory for microsandbox
XDG_LIB_DIR
The lib subdirectory for microsandbox

Statics§

XDG_HOME_DIR
The XDG home directory

Functions§

normalize_path
Normalizes a path string for volume mount comparison.
resolve_env_path
Resolves the path to a file, checking both environment variable and default locations.