(
&self,
request: pb::VerifyAttestationRequest,
)
| 1189 | } |
| 1190 | |
| 1191 | pub fn verify_attestation( |
| 1192 | &self, |
| 1193 | request: pb::VerifyAttestationRequest, |
| 1194 | ) -> CliResult<pb::VerifyAttestationResponse> { |
| 1195 | self.call(move |backend| async move { |
| 1196 | match backend { |
| 1197 | Backend::Local(state) => services_agent::AttestationImpl { state } |
| 1198 | .verify_attestation(Request::new(request)) |
| 1199 | .await |
| 1200 | .map(|response| response.into_inner()), |
| 1201 | Backend::Reactor(channel) => { |
| 1202 | let mut attestation = |
| 1203 | pb::attestation_service_client::AttestationServiceClient::new(channel); |
| 1204 | attestation |
| 1205 | .verify_attestation(request) |
| 1206 | .await |
| 1207 | .map(|response| response.into_inner()) |
| 1208 | } |
| 1209 | } |
| 1210 | }) |
| 1211 | } |
| 1212 | |
| 1213 | pub fn list_attestations( |
| 1214 | &self, |
no test coverage detected