Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dstack-TEE/dstack
/ lock
Method
lock
gateway/src/main_service.rs:127–129 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
125
126
impl ProxyInner {
127
pub(crate) fn lock(&self) -> MutexGuard<'_, ProxyState> {
128
self.state.lock().or_panic(
"Failed to lock AppState"
)
129
}
130
131
pub async fn new(
132
options: ProxyOptions,
Callers
15
main
Function · 0.45
update_cert
Method · 0.45
get_proxy_state
Method · 0.45
status
Method · 0.45
exit
Method · 0.45
get_info
Method · 0.45
get_meta
Method · 0.45
get_global_connections
Method · 0.45
set_instance_port_policy
Method · 0.45
clear_instance_port_policy
Method · 0.45
get_instance_port_policy
Method · 0.45
do_register_cvm
Method · 0.45
Calls
no outgoing calls
Tested by
10
test_empty_config
Function · 0.36
test_port_policy_restrict_mode_allows_listed_only
Function · 0.36
test_port_policy_disabled_allows_all
Function · 0.36
test_port_policy_unknown_fails_closed
Function · 0.36
test_admin_override_takes_precedence
Function · 0.36
test_admin_override_can_open_what_instance_restricts
Function · 0.36
test_clear_admin_override_reverts_to_instance_policy
Function · 0.36
test_admin_override_unknown_instance_errors
Function · 0.36
test_admin_override_survives_compose_hash_change
Function · 0.36
test_config
Function · 0.36