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

Method prepare_attestation

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

Source from the content-addressed store, hash-verified

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

Callers 1

intent_attestFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected