MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / reload_from_proto

Method reload_from_proto

crates/openshell-supervisor-network/src/opa.rs:401–403  ·  view source on GitHub ↗

Reload policy from a proto `SandboxPolicy` message. Reuses the full `from_proto()` pipeline (proto-to-JSON conversion, L7 validation, access preset expansion) so the reload has identical validation guarantees as initial load. Atomically replaces the inner engine on success; on failure the previous engine is untouched (LKG).

(&self, proto: &ProtoSandboxPolicy)

Source from the content-addressed store, hash-verified

399 /// validation guarantees as initial load. Atomically replaces the inner
400 /// engine on success; on failure the previous engine is untouched (LKG).
401 pub fn reload_from_proto(&self, proto: &ProtoSandboxPolicy) -> Result<()> {
402 self.reload_from_proto_with_pid(proto, 0)
403 }
404
405 /// Reload policy from a proto with symlink resolution.
406 ///

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected