MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / host_identity

Function host_identity

packages/server/src/config.rs:117–121  ·  view source on GitHub ↗
(host_name: &str)

Source from the content-addressed store, hash-verified

115}
116
117fn host_identity(host_name: &str) -> String {
118 let source = machine_identity_source()
119 .unwrap_or_else(|| format!("hostname:{}", normalized_host_name(host_name)));
120 host_identity_from_source(&source)
121}
122
123fn normalized_host_name(host_name: &str) -> String {
124 host_name.trim().to_ascii_lowercase()

Callers 1

newMethod · 0.85

Calls 2

machine_identity_sourceFunction · 0.85

Tested by

no test coverage detected