Expand description
Shared constants and utilities for the microsandbox project.
Modules§
- copy
- Sparse-aware fast copy with reflink fallback.
- log_
text - Text helpers for parsing/rendering captured log lines.
- size
- Byte-size types and conversion helpers.
- ttl_
reverse_ index - TTL-indexed reverse map from keys to members, with fast member-to-keys lookup.
- wake_
pipe - Cross-platform wake notification built on
pipe().
Constants§
- AGENTD_
BINARY - Guest agent binary name.
- BASE_
DIR_ NAME - Name of the microsandbox home directory (relative to user’s home).
- BIN_
SUBDIR - Subdirectory for helper binaries.
- CACHE_
SUBDIR - Subdirectory for OCI layer cache.
- CONFIG_
FILENAME - Global configuration filename.
- DB_
FILENAME - Database filename.
- DB_
SUBDIR - Subdirectory for the database.
- GITHUB_
ORG - GitHub organization.
- LIBKRUNFW_
ABI - libkrunfw ABI version (soname major). Keep in sync with justfile.
- LIBKRUNFW_
VERSION - libkrunfw release version. Keep in sync with justfile.
- LIB_
SUBDIR - Subdirectory for shared libraries (libkrunfw).
- LOGS_
SUBDIR - Subdirectory for logs.
- METRICS_
REGISTRY_ NAME_ FILENAME - Filename of the optional registry-name diagnostic file under
run/metrics. - METRICS_
RUN_ SUBDIR - Subdirectory under
runfor metrics-related diagnostic artifacts. - METRICS_
SHM_ PREFIX - Prefix used when constructing the POSIX shared-memory object name for the
live metrics registry. Combined with a stable hash of
GlobalConfig::home()so concurrentMSB_HOME-isolated environments do not collide. - MICROSANDBOX_
REPO - Main repository name.
- MSB_
BINARY - CLI binary name.
- PREBUILT_
VERSION - Version for downloading prebuilt release artifacts.
- RUN_
SUBDIR - Subdirectory for ephemeral runtime artifacts that should not be backed up.
- SANDBOXES_
SUBDIR - Subdirectory for per-sandbox state.
- SANDBOXFILE_
NAME - Project-local sandbox configuration filename.
- SECRETS_
SUBDIR - Subdirectory for secrets.
- SNAPSHOTS_
SUBDIR - Subdirectory for snapshot artifacts.
- SSH_
SUBDIR - Subdirectory for SSH keys.
- TLS_
SUBDIR - Subdirectory for TLS certificates.
- VOLUMES_
SUBDIR - Subdirectory for named volumes.
Functions§
- agentd_
download_ url - Returns the GitHub release download URL for the agentd binary.
- bundle_
download_ url - Returns the GitHub release download URL for the microsandbox bundle tarball.
- libkrunfw_
download_ url - Returns the GitHub release download URL for libkrunfw.
- libkrunfw_
filename - Returns the platform-specific libkrunfw filename.
- looks_
like_ local_ path_ text - Returns true when a user-provided text value should be interpreted as a local filesystem path rather than a named resource or OCI reference.
- resolve_
home - Resolve the microsandbox home directory.
- stable_
hash_ path - Derive a short, stable identifier from a path.