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