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

Method new

crates/openshell-core/src/config.rs:569–588  ·  view source on GitHub ↗

Create a new config with optional TLS.

(tls: Option<TlsConfig>)

Source from the content-addressed store, hash-verified

567impl Config {
568 /// Create a new config with optional TLS.
569 pub fn new(tls: Option<TlsConfig>) -> Self {
570 Self {
571 bind_address: default_bind_address(),
572 health_bind_address: None,
573 metrics_bind_address: None,
574 log_level: default_log_level(),
575 tls,
576 oidc: None,
577 auth: GatewayAuthConfig::default(),
578 mtls_auth: MtlsAuthConfig::default(),
579 gateway_jwt: None,
580 database_url: String::new(),
581 compute_drivers: vec![],
582 compute_driver_endpoints: BTreeMap::new(),
583 ssh_session_ttl_secs: default_ssh_session_ttl_secs(),
584 grpc_rate_limit_requests: None,
585 grpc_rate_limit_window_secs: None,
586 service_routing: ServiceRoutingConfig::default(),
587 }
588 }
589
590 /// Create a new configuration with the given bind address.
591 #[must_use]

Callers

nothing calls this directly

Calls 3

default_bind_addressFunction · 0.85
default_log_levelFunction · 0.85

Tested by

no test coverage detected