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

Interface PlatformBackend

guest-agent/src/backend.rs:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9use ra_tls::attestation::{QuoteContentType, VersionedAttestation};
10
11pub trait PlatformBackend: Send + Sync {
12 fn attestation_for_info(&self) -> Result<VersionedAttestation>;
13 fn certificate_attestation(&self, pubkey: &[u8]) -> Result<VersionedAttestation>;
14 fn quote_response(&self, report_data: [u8; 64], vm_config: &str) -> Result<GetQuoteResponse>;
15 fn attest_response(&self, report_data: [u8; 64]) -> Result<AttestResponse>;
16 fn emit_event(&self, event: &str, payload: &[u8]) -> Result<()>;
17}
18
19#[derive(Debug, Default)]
20pub struct RealPlatform;

Callers

nothing calls this directly

Implementers 3

main.rsguest-agent-simulator/src/main.rs
backend.rsguest-agent/src/backend.rs
setup_test_stateguest-agent/src/rpc_service.rs

Calls

no outgoing calls

Tested by

no test coverage detected