Expand description
Exposes the ops_bridge runtime module.
§Examples
ⓘ
use pharos_native::runtime::ops_bridge;§Related
crate::runtimefor sibling modules in the same crate. Native operational helpers migrated from the runtime ops and helper surfaces.
The functions are deliberately data- and filesystem-only. They do not spawn shell commands, interpolate untrusted SQL, or write outside caller-selected roots.
Functions§
- append_
app_ common_ flags - Appends the shared app flags to an owned argv vector in stable order.
- append_
escaped_ sql_ char - Appends one SQL-literal character with the escaping required by SQLite and PostgreSQL.
- build_
app_ deploy_ check_ report_ local_ json - Builds a bounded deployment-check report from declarative metadata.
- build_
app_ doctor_ report_ local_ json - Builds a bounded drift report from two JSON documents.
- build_
app_ drift_ report_ local_ json - Builds app drift report local JSON.
- capture_
trimmed - Trims a captured command-like value while rejecting control characters.
- cleanup_
temp_ body_ file - Removes a temporary request body and clears its ownership slot.
- command_
exists - Checks whether an executable is available on PATH without invoking it.
- conninfo_
append - Appends one validated key/value pair to PostgreSQL connection information.
- conninfo_
append_ kv - Appends an escaped key/value pair to PostgreSQL conninfo text.
- cross_
deb_ packaging_ available - Returns whether a deployment packaging directory is present and usable.
- db_
check_ json - Reports whether a SQLite database path is readable and regular.
- default_
backend - Resolves an explicitly configured database backend.
- default_
environment - Returns the default native execution environment.
- environment_
valid - Validates a supported runtime environment name.
- http_
body_ limit - Resolves the configured HTTP body limit with a bounded default.
- identifier_
safe - Returns whether text is safe for an identifier position.
- long_
from_ value - Converts a JSON scalar into a bounded signed integer.
- match_
ops_ command - Matches the native operational command tuple exactly enough for dispatch.
- normalize_
base_ path - Normalizes an app-relative base path without allowing traversal.
- open_
libpq_ handle_ candidate - Returns whether a configured PostgreSQL adapter handle candidate is usable.
- output_
path_ check_ json - Checks one output path and returns its bounded JSON disposition.
- output_
path_ status - Returns a bounded JSON description of one output path.
- push_
argv_ value - Appends one owned argument while enforcing a fixed command-vector bound.
- resolve_
runtime_ path - Returns a path under a trusted root for a validated relative helper value.
- runtime_
script_ path - Fails closed for the retired shell runtime bridge; Rust dispatch owns behavior directly.
- shell_
runtime_ command_ capture - Fails closed for the retired shell runtime bridge; Rust dispatch owns behavior directly.
- spool_
request_ body_ to_ temp_ file - Spools a bounded request body to a caller-selected temporary path.
- sql_
literal_ escape - Escapes a value for a SQL string literal without constructing a query.
- write_
access_ log - Writes access log.
- write_
error_ log - Appends one bounded access-log line to a runtime-owned log file.
- write_
noindex_ markers_ recursive - Writes macOS-compatible no-index markers to a directory tree.
- write_
temp_ body_ file - Writes a bounded request body to a uniquely-created temporary file.