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

Function cmd_notify_host

dstack-util/src/main.rs:439–443  ·  view source on GitHub ↗
(args: HostNotifyArgs)

Source from the content-addressed store, hash-verified

437}
438
439async fn cmd_notify_host(args: HostNotifyArgs) -> Result<()> {
440 let client = HostApi::load_or_default(args.url)?;
441 client.notify(&args.event, &args.payload).await?;
442 Ok(())
443}
444
445fn sha256(data: &[u8]) -> [u8; 32] {
446 use sha2::Digest;

Callers 1

mainFunction · 0.85

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected