MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / prepare_attestation

Method prepare_attestation

atomic-cli/src/service/mod.rs:1147–1167  ·  view source on GitHub ↗
(
        &self,
        request: pb::PrepareAttestationRequest,
    )

Source from the content-addressed store, hash-verified

1145
1146impl Service {
1147 pub fn prepare_attestation(
1148 &self,
1149 request: pb::PrepareAttestationRequest,
1150 ) -> CliResult<pb::PrepareAttestationResponse> {
1151 self.call(move |backend| async move {
1152 match backend {
1153 Backend::Local(state) => services_agent::AttestationImpl { state }
1154 .prepare_attestation(Request::new(request))
1155 .await
1156 .map(|response| response.into_inner()),
1157 Backend::Reactor(channel) => {
1158 let mut attestation =
1159 pb::attestation_service_client::AttestationServiceClient::new(channel);
1160 attestation
1161 .prepare_attestation(request)
1162 .await
1163 .map(|response| response.into_inner())
1164 }
1165 }
1166 })
1167 }
1168
1169 pub fn record_attestation(
1170 &self,

Callers 1

intent_attestFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected