(
&self,
request: pb::ListAttestationsRequest,
)
| 1213 | } |
| 1214 | |
| 1215 | pub fn list_attestations( |
| 1216 | &self, |
| 1217 | request: pb::ListAttestationsRequest, |
| 1218 | ) -> CliResult<pb::ListAttestationsResponse> { |
| 1219 | self.call(move |backend| async move { |
| 1220 | match backend { |
| 1221 | Backend::Local(state) => services_agent::AttestationImpl { state } |
| 1222 | .list_attestations(Request::new(request)) |
| 1223 | .await |
| 1224 | .map(|response| response.into_inner()), |
| 1225 | Backend::Reactor(channel) => { |
| 1226 | let mut attestation = |
| 1227 | pb::attestation_service_client::AttestationServiceClient::new(channel); |
| 1228 | attestation |
| 1229 | .list_attestations(request) |
| 1230 | .await |
| 1231 | .map(|response| response.into_inner()) |
| 1232 | } |
| 1233 | } |
| 1234 | }) |
| 1235 | } |
| 1236 | } |
| 1237 | |
| 1238 | // --------------------------------------------------------------------------- |
no test coverage detected