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

Function cmd_eventlog

dstack-util/src/main.rs:214–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214fn cmd_eventlog() -> Result<()> {
215 let event_logs = cc_eventlog::tdx::read_event_log().context("Failed to read event logs")?;
216 serde_json::to_writer_pretty(io::stdout(), &event_logs)
217 .context("Failed to write event logs")?;
218 Ok(())
219}
220
221fn hex_decode(hex_str: &str) -> Result<Vec<u8>> {
222 hex::decode(hex_str.trim_start_matches("0x")).context("Invalid hex string")

Callers 1

mainFunction · 0.85

Calls 1

read_event_logFunction · 0.85

Tested by

no test coverage detected