Skip to main content

Crate sdme

Crate sdme 

Source

Re-exports§

pub use mounts::BindConfig;
pub use mounts::EnvConfig;
pub use network::NetworkConfig;
pub use security::SecurityConfig;

Modules§

build
Build root filesystems from a Dockerfile-like configuration.
config
Internal API for managing sdme configuration.
containers
Internal API for container filesystem, state, and runtime management.
copy
Shared filesystem copy utilities.
devfd_shim
elf
import
Rootfs import logic: directory copy, tarball extraction, URL download, OCI image, registry pull, and QCOW2 support.
isolate
kube
Kubernetes Pod YAML support for sdme.
mounts
Bind mount and environment variable configuration for containers.
names
Container name generation from a Tupi-Guarani wordlist with collision avoidance.
network
Network configuration for containers.
oci
OCI container image support: layout parsing, registry pulling, app setup, and caching.
pod
Pod network namespace management.
rootfs
Internal API for managing root filesystems used as overlayfs lower layers.
security
Security configuration for containers.
system_check
systemd
Internal API for managing interactions with systemd and D-Bus.

Structs§

ResourceLimits
Resource limits that map to systemd cgroup directives.
State
SudoUser

Statics§

INTERRUPTED

Functions§

atomic_write
Write data to a file atomically via a temporary file and rename.
check_interrupted
confirm
Prompt the user for yes/no confirmation, returning Ok(true) for “y”.
confirm_default_yes
Prompt the user for yes/no confirmation, returning Ok(true) for “y” or empty input (Enter). Only “n”/“no” returns false.
install_interrupt_handler
parse_size
Parse a human-readable size string (e.g. “10G”, “512M”) into bytes.
read_line_interruptible
Read a line from stdin, returning ErrorKind::Interrupted if a signal interrupts the read.
reset_interrupt
Reset the interrupt flag and re-install the signal handler.
sudo_user
Returns info about the real user behind sudo, if applicable.
validate_name