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

Method new

crates/openshell-supervisor-network/src/policy_local.rs:94–105  ·  view source on GitHub ↗
(
        current_policy: Option<ProtoSandboxPolicy>,
        gateway_endpoint: Option<String>,
        sandbox_name: Option<String>,
    )

Source from the content-addressed store, hash-verified

92
93impl PolicyLocalContext {
94 pub fn new(
95 current_policy: Option<ProtoSandboxPolicy>,
96 gateway_endpoint: Option<String>,
97 sandbox_name: Option<String>,
98 ) -> Self {
99 Self::with_log_dir(
100 current_policy,
101 gateway_endpoint,
102 sandbox_name,
103 PathBuf::from(LOG_DIR),
104 )
105 }
106
107 fn with_log_dir(
108 current_policy: Option<ProtoSandboxPolicy>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected