MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_cert_lock

Method get_cert_lock

gateway/src/kv/mod.rs:944–946  ·  view source on GitHub ↗

Get certificate renew lock for a domain

(&self, domain: &str)

Source from the content-addressed store, hash-verified

942
943 /// Get certificate renew lock for a domain
944 pub fn get_cert_lock(&self, domain: &str) -> Option<CertRenewLock> {
945 self.persistent.read().decode(&keys::cert_lock(domain))
946 }
947
948 /// Try to acquire certificate renew lock
949 /// Returns true if lock acquired, false if already locked by another node

Callers 1

try_acquire_cert_lockMethod · 0.80

Calls 2

cert_lockFunction · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected