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

Method new

crates/openshell-cli/src/tls.rs:48–58  ·  view source on GitHub ↗
(ca: Option<PathBuf>, cert: Option<PathBuf>, key: Option<PathBuf>)

Source from the content-addressed store, hash-verified

46
47impl TlsOptions {
48 pub fn new(ca: Option<PathBuf>, cert: Option<PathBuf>, key: Option<PathBuf>) -> Self {
49 Self {
50 ca,
51 cert,
52 key,
53 gateway_name: None,
54 edge_token: None,
55 oidc_token: None,
56 gateway_insecure: false,
57 }
58 }
59
60 pub fn has_any(&self) -> bool {
61 self.ca.is_some() || self.cert.is_some() || self.key.is_some()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected